Documentation
Feedback
Guides
API Reference

API Reference
Filter By
Post
Get
Put
Delete
Patch

Orders API

Each purchase a customer makes in your store generates an order on VTEX. With the Orders API, you can view orders statuses and manage multiple aspects involved in order fulfillment, such as financial transactions, invoicing, shipping, and subscriptions. You can also modify orders and make configurations to allow or forbid marketplaces and sellers to change or cancel orders.

Order integration

To automate actions related to order processing, you can integrate orders with systems like ERP (Enterprise Resource Planning) and WMS (Warehouse Management System) using Feed and Hook.

Orders API Index

Orders

Order modifications

Invoice

Tracking

Conversation

Payment

Feed v2 (deprecated)

Feed v3

Order hook

User orders

Change seller

Common parameters

Parameter name Description Type
{{accountName}} Name of the VTEX account. Used as part of the URL. Server variable.
{{environment}} Environment to use. Used as part of the URL. The default value is vtexcommercestable. Server variable.
X-VTEX-API-AppKey Unique identifier of the API key. Authentication header. Must be used together with X-VTEX-API-AppToken. Not necessary when using VtexIdclientAutCookie.
X-VTEX-API-AppToken Secret token of the API key. Authentication header. Must be used together with X-VTEX-API-AppKey. Not necessary when using VtexIdclientAutCookie.
VtexIdclientAutCookie User token, valid for 24 hours. Authentication header. Not necessary when using X-VTEX-API-AppKey and X-VTEX-API-AppToken.

Endpoints

Orders

SummaryMethodPath
Get orderGET/api/oms/pvt/orders/{orderId}
Get orders by order group IDGET/api/oms/pvt/orders/order-group/{orderGroup}
List ordersGET/api/oms/pvt/orders
Start handling orderPOST/api/oms/pvt/orders/{orderId}/start-handling
Cancel orderPOST/api/oms/pvt/orders/{orderId}/cancel
Register modifications on orderPOST/api/oms/pvt/orders/{orderId}/changes
Add log in ordersPOST/api/oms/pvt/orders/{orderId}/interactions

Order modifications

SummaryMethodPath
Get order modifications summaryGET/api/orders/pvt/document/{orderId}/change-summary
Create order modificationsPATCH/api/order-system/orders/{changeOrderId}/changes
Get order modifications historyGET/api/order-system/orders/{changeOrderId}/changes
Get order modifications detailsGET/api/order-system/orders/{changeOrderId}/changes/{changeRequestId}
Preview order modificationsPOST/api/order-system/orders/{changeOrderId}/changes/preview
Retry order modificationsPOST/api/order-system/orders/{changeOrderId}/changes/{changeRequestId}/retry
Cancel order modificationsPOST/api/order-system/orders/{changeOrderId}/changes/{changeRequestId}/cancel
Update Order modifications settingsPUT/api/order-system/orders/changes/settings
Get Order modifications settingsGET/api/order-system/orders/changes/settings

Invoice

SummaryMethodPath
Order invoice notificationPOST/api/oms/pvt/orders/{orderId}/invoice
Update order's partial invoice (send tracking number)PATCH/api/oms/pvt/orders/{orderId}/invoice/{invoiceNumber}

Tracking

SummaryMethodPath
Update order tracking statusPUT/api/oms/pvt/orders/{orderId}/invoice/{invoiceNumber}/tracking

Conversation

SummaryMethodPath
Retrieve order conversationGET/api/oms/pvt/orders/{orderId}/conversation-message

Payment

SummaryMethodPath
Retrieve payment transactionGET/api/oms/pvt/orders/{orderId}/payment-transaction
Send payment notificationPOST/api/oms/pvt/orders/{orderId}/payments/{paymentId}/payment-notification

Feed v2 (deprecated)

SummaryMethodPath
Get feed order statusGET/api/oms/pvt/feed/orders/status

Feed v3

SummaryMethodPath
Get feed configurationGET/api/orders/feed/config
Create or update feed configurationPOST/api/orders/feed/config
Delete feed configurationDELETE/api/orders/feed/config
Retrieve feed itemsGET/api/orders/feed
Commit feed itemsPOST/api/orders/feed
Test JSONata expressionPOST/api/orders/expressions/jsonata

Order hook

SummaryMethodPath
Get hook configurationGET/api/orders/hook/config
Create or update hook configurationPOST/api/orders/hook/config
Delete hook configurationDELETE/api/orders/hook/config

User orders

SummaryMethodPath
Retrieve user's ordersGET/api/oms/user/orders
Retrieve user order detailsGET/api/oms/user/orders/{orderId}

Change seller

SummaryMethodPath
Get window to change sellerGET/api/checkout/pvt/configuration/window-to-change-seller
Update window to change sellerPOST/api/checkout/pvt/configuration/window-to-change-seller

Loading API specification...