ManagementTerminal ordersTerminal orders company level

Cancel an order

POST
/companies/{companyId}/terminalOrders/{orderId}/cancel

Cancels the terminal products order identified in the path. Cancelling is only possible while the order has the status Placed. To cancel an order, make a POST call without a request body. The response returns the full order details, but with the status changed to Cancelled.

To make this request, your API credential must have the following role:

  • Management API—Terminal ordering read and write

In the live environment, requests to this endpoint are subject to rate limits.

Authorization

AuthorizationBasic <token>

In: header

Path Parameters

companyId*string

The unique identifier of the company account.

orderId*string

The unique identifier of the order.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/companies/string/terminalOrders/string/cancel"

Example response after cancelling an order for terminal products

{  "id": "5265677890100681",  "customerOrderReference": "YOUR_REFERENCE",  "status": "Cancelled",  "shippingLocation": {    "id": "S2-232A6D2967356F424F4369432B3F486B6A6D",    "name": "YOUR_COMPANY HQ - POS Ops",    "contact": {      "firstName": "Paul",      "lastName": "Green",      "email": "Paul.Green@company.com"    },    "address": {      "streetAddress": "Simon Carmiggeltstraat",      "streetAddress2": "6-50",      "postalCode": "1011 DJ",      "city": "Amsterdam",      "country": "Netherlands"    }  },  "billingEntity": {    "id": "Company.YOUR_COMPANY",    "name": "YOUR_COMPANY",    "taxId": "NL1234567890",    "email": "Paul.Green@company.com",    "address": {      "streetAddress": "Simon Carmiggeltstraat 6-50",      "postalCode": "1011 DJ",      "city": "Amsterdam",      "country": "Netherlands"    }  },  "orderDate": "2022-01-20T14:12:33Z",  "items": [    {      "id": "TBOX-V400m-684-EU",      "name": "V400m Package",      "quantity": 1    },    {      "id": "PART-175746-EU",      "name": "Adyen Test Card",      "quantity": 1    }  ]}