For the complete documentation index, see llms.txt. This page is also available as Markdown.

Order

Search orders using a multitude of filters

get
Query parameters
ApproveStatusstring · enumOptional

Choose the desired status like WAITING, OK, FRAUD, INVALIDDATA

Possible values:
NewerstringOptional

Needed timestamp. If not provided, will return by default the data for last 7 days.

Statusstring · enumOptional

Order status. Some of the available options are COMPLETE, PENDING, CANCELED, REFUND

Possible values:
StartDatestringOptional

Start date in format Y-m-d. Will overwrite Newer if provided.

EndDatestringOptional

End date in format Y-m-d.

PartnerOrdersbooleanOptional

Decide if it will also include partner orders

ExternalRefNostringOptional

The external reference number of the order

IncludeTestOrdersstringOptional

Should test orders be included in the result Values YES - test orders are included NO - test orders are not included ONLY - only the test orders are included

PagestringOptional

Needed page

LimitintegerOptional

Number of results per page

Responses
get
/orders/
201

Created

Get order reference by sale id

get
Query parameters
SaleIdintegerRequired

Unique code that identifies a sale

Responses
200

Get order reference by sale id

application/json
stringOptionalExample: 11582176
get
/orders/0/sale/

Get order reference by invoice id

get
Query parameters
InvoiceIdstringRequired

Unique code that identifies an invoice

Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
200

Get order reference by invoice id

application/json
stringOptionalExample: 11582176
get
/orders/0/invoice/

Retrieve an order by reference

get
Path parameters
OrderReferencestringRequired

Reference number for approved/paid orders.

Example: 12345678
Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
200

OK

application/json
get
/orders/{OrderReference}/
200

OK

Cancel a purchase order

delete

Cancel order with purchase order type

Path parameters
OrderReferencestringRequired

Reference number for purchase order type orders.

Example: 12345678
Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
200

OK

application/json
delete
/orders/{OrderReference}/

Order form upload

post
Path parameters
OrderReferencestringRequired

Unique, system-generated order identifier.

Example: 734881310
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Body
FileNamestringOptional
ClientTimestringOptional
FilestringOptional
Responses
200

OK

application/json
post
/orders/{OrderReference}/upload

Last updated

Was this helpful?