orders/ endpoint provides you with an interface for managing order data in our shop system. With this interface, you can retrieve order data, delete it, and update its status.
Supported methods
List of all supported methods.| Command/info | Endpoints | GET | PUT | POST | DELETE |
|---|---|---|---|---|---|
| Orders | orders/ |
Data fields of an order
| Name | Type | Meaning |
|---|---|---|
| createdAt | String | Time the order was placed (ISO 8601 format, UTC). |
| updatedAt | String | Time of the last modification (ISO 8601 format, UTC). Only included in the list view. |
| payedAt | String | Time of payment (ISO 8601 format, UTC). Only included in the list view. |
| isImported | Boolean | Indicates whether the order was imported. Only included in the list view. |
| deleted | Boolean | Indicates whether the order has been deleted. |
| deliveryStatus | Object | Information about shipment |
| id | String | Unique ID of the order. |
| paymentStatus | Integer | Payment status (e.g. open, paid, failed) Possible values: 0 = Pending1 = Finished 2 = Error3 = Redirected4 = CanceledByUser5 = Rejected6 = CanceledByAdmin7 = Refunded8 = RefundedPartially |
| processingStatus | Integer | Order processing status Possible values: 0 = New1 = Finished2 = Deleted 3 = Canceled |
| verificationStatus | Integer | Status of order authenticity (e.g. genuine, test order) Possible values: 0 = Default1 = Test2 = Fake |
| verificationComment | Object | Comment about the order verification. Optionally contains the fields title (String) and comment (String). |
| subshopId | String | ID of the subshop through which the order was completed. |
| data.general.dateTime | String | Order time according to metadata (ISO 8601 format, UTC). |
| data.general.orderId | String | Unique ID of the order. |
| data.general.sessionId | String | ID of the session in which the order was completed. |
| data.general.shopId | String | Technical name of the shop. |
| data.general.shopLanguage | String | Language of the shop during the order. |
| data.general.subshopId | String | Subshop ID from metadata (redundant with the field above). |
| data.general.testMode | Boolean | Indicates whether the order was created in test mode. |
| data.customer.accountId | Integer | ID of the customer account that placed the order. |
| data.customer.accountType | String | Type of the customer account. Possible values: "new""registered""guest" |
| data.customer.customerNumber | String | Customer number (if assigned). |
| data.customer.deviceType | Integer | Device type of the customer at checkout. 1 – Desktop, 2 – Mobile, 3 – Tablet. |
| data.customer.email | String | Email address of the customer. |
| data.customer.ipAddress | String | IP address of the customer at the time of the order. |
| data.customer.platformType | Integer | Platform type of the customer. 1 – Web, 2 – App. |
| data.shippingAddress | Object (Address) | Shipping address |
| data.billAddress | Object (Address) | Billing address |
| data.order.currencyIso | String | ISO code of the currency (e.g. EUR). |
| data.order.currencySymbol | String | Currency symbol (e.g. €). |
| data.order.defaultTaxRate | String | Default VAT rate. |
| data.order.delivererId | String | ID of the shipping service provider. |
| data.order.delivererOrderText | String | Display name of the shipping service provider. |
| data.order.deliveryCost | String | Shipping cost (gross). |
| data.order.deliveryTaxRate | String | VAT rate on shipping. |
| data.order.paymentId | String | ID of the chosen payment method. |
| data.order.paymentOrderText | String | Display name of the payment method. |
| data.order.priceType | String | Price specification: “gross” or “net”. |
| data.order.referer | String | Origin URL of the order. |
| data.order.subreferer | String | Additional origin information. |
| data.order.subtotal | String | Subtotal of the products. |
| data.order.tax | String | Total amount of taxes. |
| data.order.total | String | Total amount of the order (incl. shipping and discounts). |
| data.order.totalCommission | String | Total commission. |
| data.order.totalDiscount | String | Total discount amount. |
| data.order.totalVoucher | String | Total redeemed voucher value. |
| data.order.totalWeight | number | Total weight of the order. |
| data.orderList.item[].basketId | String | ID of the basket entry. |
| data.orderList.item[].discount | String | Discount on this item. |
| data.orderList.item[].extraFields | Object | User-defined fields of the basket item. |
| data.orderList.item[].isAutoBasket | Boolean | Item automatically placed in the basket. |
| data.orderList.item[].isChangeable | Boolean | Basket item can be changed. |
| data.orderList.item[].isRemovable | Boolean | Basket item can be removed. |
| data.orderList.item[].isVisible | Boolean | Indicates whether the automatically added item is visible in the basket. |
| data.orderList.item[].itemNumber | String | Item number. |
| data.orderList.item[].name | String | Item name. |
| data.orderList.item[].orgPrice | String | Original price (before discount). |
| data.orderList.item[].price | String | Price per unit. |
| data.orderList.item[].productId | String | Product ID. |
| data.orderList.item[].quantity | String | Ordered quantity. |
| data.orderList.item[].singleTotal | String | Total price of this item (quantity × price). |
| data.orderList.item[].taxId | String | Tax ID. |
| data.orderList.item[].taxRate | String | VAT rate. |
| data.orderList.item[].total | String | Final price of this item (incl. discount, etc.). |
| data.orderList.item[].variantId | String | Variant ID. |
| data.orderList.item[].variantSelection[] | Object[] | Variant selection of the item. |
| data.orderList.item[].variantSelection[].attributeId | String | Name of the variant attribute (e.g. “Size”). |
| data.orderList.item[].variantSelection[].optionId | String | Selected option (e.g. “M”). |
| data.orderList.item[].weight | Float | Weight of the item. |
| data.freeFields | Object | User-defined fields of the order |
| data.vouchers[].id | String | Voucher code. |
| data.vouchers[].name | String | Name of the voucher. |
| data.vouchers[].charge | String | ID of the voucher charge. |
| data.vouchers[].value | String | Original voucher value. |
| data.vouchers[].rest | String | Remaining value of the voucher after redemption. |
| data.vouchers[].taxId | String | Tax ID for voucher. |
| data.vouchers[].taxRate | Float | Tax rate for voucher. |
Example
Using the methods
GET orders
This method returns a list of all orders from the admin interface of the shop.Example
Response
Filter fields
createdAt, updatedAt, payedAt, id, subshopId, accountId, processingStatus, paymentStatus, verificationStatus, deleted
Sort fields
createdAt, updatedAt, id, processingStatus, paymentStatus, subshopId
Error codes
| Error | Type | Reason |
|---|---|---|
| 401 Unauthorized | Not authorized: you are not logged in or do not have the required permissions to read users. | |
| 400 Bad Request | ”invalidValue” | |
| 400 Bad Request | ”unknownDataField” | A filter or sort field is invalid. |
| 400 Bad Request | ”unknownOperation” | A filter type is invalid. |
| 400 Bad Request | ”invalidCharacters” | size is not an integer.A filter value is invalid. |
| 400 Bad Request | ”syntaxError” | sort contains more than one or no ”:“. |
| 503 Service Unavailable | ”internalError” | Not all orders could be decrypted. |
GET orders/{orderId}
This method retrieves the details of a single order by its unique order ID.Example
Response
Error codes
| Error | Type | Reason |
|---|---|---|
| 401 Unauthorized | You are not an administrator and do not have permission to read order data. | |
| 404 Not Found | The order was not found. | |
| 400 Bad Request | ”missing” | orderId is missing. |
| 503 Service Unavailable | ”internalError” | The order could not be loaded or decrypted. |
PUT orders/{orderId}
This method updates an existing order by its unique order ID. All fields are optional. ThedeliveryStatus field should be an object serialized as a string. The fields verificationComment (String) and verificationTitle (String) are only evaluated when the verificationStatus is changed.
Whenever the verification status is changed, a log entry with log level Info and message ID order.updateVerificationStatusSuccess is automatically created.
Values for processingStatus:
0 = New1 = Finished2 = Deleted3 = Canceled
Values for verificationStatus:
0 = Default1 = Test2 = Fake\
Example
Request body
Response
On success, the updated order is returned (same format as for GET orders/{orderId}).Error codes
| Error | Type | Reason |
|---|---|---|
| 401 Unauthorized | Not authorized: you are not logged in or do not have the required permissions to read users. | |
| 400 Bad Request | Request body could not be loaded. Updating failed. | |
| 400 Bad Request | ”unknownDataField” | An attempt was made to update an unknown field. Allowed fields: processingStatus, verificationStatus, deliveryStatus, verificationComment, verificationTitle. |
| 400 Bad Request | ”invalidFormat” | processingStatus is not a number. verificationStatus is not a number. deliveryStatus, verificationComment, or verificationTitle is not a string. |
| 400 Bad Request | ”invalidValue” | processingStatus ∉ [0;3] verificationStatus ∉ [0;2] |
| 400 Bad Request | ”illegalOperation” | |
| 404 Not Found | ||
| 503 Service Unavailable | ”internalError” | The order could not be reloaded after the update. |
DELETE orders/{orderId}
This method deletes an existing order by its unique order ID.Example
Response
Error codes
| Error | Type | Reason |
|---|---|---|
| 401 Unauthorized | You are not an administrator and do not have permission to delete order data. | |
| 400 Bad Request | ”missing” | orderId is missing. |
| 404 Not Found | The order was not found. | |
| 503 Service Unavailable | ”internalError” | The order could not be loaded or decrypted. |
