v1
latestOpenAPI 3.0.02026-07-14641139.1 KBList orders
Retrieves a list of orders according to the filters described below.
This endpoint returns masked order data.
This should not be used for integrations. Use the orders Feed or hook for this purpose.
This endpoint returns only orders that already have been indexed, which takes aproximately four minutes. Because of this, the data retrieved may present inconsistencies. To get live up to date information and build order integrations use the orders Feed or hook.
Check the new Orders onboarding guide. We created this guide to improve the onboarding experience for developers at VTEX. It assembles all documentation on our Developer Portal about Orders and is organized by focusing on the developer's journey.
Do not use request for integrations
This endpoint returns only orders that already have been indexed, which takes aproximately four minutes. Because of this, the data retrieved may present inconsistencies or become unavailable in periods of peak order volume. In other words, order integrations built with the List orders endpoint are not reliable and will not be supported. To get live up to date information and build order integrations use the orders Feed or hook.
Throtling
Each account can make up to 5000 requests per minute.
Request parameters allowed
| Attribute | Type | Description |
|---|---|---|
| orderBy | string | Order Field and Order Type concatenated orderBy={{OrderField}},{{OrderType}} |
| OrderField | string | Order Field expected values: creationDate,orderId,items,totalValue and origin |
| OrderType | string | Order Type expected values: asc and desc |
Sorting Examples
CreationDate:
`/api/oms/pvt/orders?orderBy=creationDate,desc`
OrderID:
`/api/oms/pvt/orders?orderBy=orderId,desc`
Items:
`/api/oms/pvt/orders?orderBy=items,asc`
TotalValue:
`/api/oms/pvt/orders?orderBy=totalValue,desc`
Origin:
`/api/oms/pvt/orders?orderBy=origin,asc`
| Attribute | Type | Description |
|---|---|---|
| page | integer | Page Number |
Pagination Examples:
`/api/oms/pvt/orders?page=3`
| Attribute | Type | Description |
|---|---|---|
| per_page | integer | Quantity orders per page |
Quantity per Page Examples:
`/api/oms/pvt/orders?per_page=15`
<div class="alert alert-info">Pagination Limit: The limit of pages that can be requested is 30.
</div>
Time zone query
| Attribute | Type | Description |
|---|---|---|
| utc | integer | Time Zone. By including this parameter alone in your query, the call will not convert the UTC nor show the number of orders set for that UTC. To filter orders with the desired UTC, you must also modify date and time in the f_creationDate=creationDate: parameter. |
Time Zone Example:
`/api/oms/pvt/orders?utc=-0200`
Request filters
Fulltext
| Attribute | Type | Description |
|---|---|---|
| q | string | Fulltext accepts Order Ids, Client E-mail, Client Document and Client Name |
The + caracter isn't allowed in Fulltext Search
Fulltext filter Examples:
OrderID:
`/api/oms/pvt/orders?q=v212333lux-02`
Email:
`/api/oms/pvt/orders?q=rodrigo.cunha@vtex.com`
Document:
`/api/oms/pvt/orders?q=21133355524`
ClientName:
`/api/oms/pvt/orders?q=Cunha`
Shipping Estimate
| Attribute | Type | Description |
|---|---|---|
| f_shippingEstimate | string | Concatened value of quantity days and sufix .days |
Shipping Estimate filter Examples:
Next 7 days:
`/api/oms/pvt/orders?f_shippingEstimate=7.days`
Tomorrow:
`/api/oms/pvt/orders?f_shippingEstimate=1.days`
Today:
`/api/oms/pvt/orders?f_shippingEstimate=0.days`
Late:
`/api/oms/pvt/orders?f_shippingEstimate=-1.days`
Invoiced Date
| Attribute | Type | Description |
|---|---|---|
| f_invoicedDate | string | Concatened value sufix invoicedDate and range date in Timestamp format |
Invoiced Date filter Examples:
1 Day:
`/api/oms/pvt/orders?f_invoicedDate=invoicedDate:[2017-01-01T02:00:00.000Z TO 2017-01-02T01:59:59.999Z]`
1 Month:
`/api/oms/pvt/orders?f_invoicedDate=invoicedDate:[2017-01-01T02:00:00.000Z TO 2017-02-01T01:59:59.999Z]`
1 Year:
`/api/oms/pvt/orders?f_invoicedDate=invoicedDate:[2016-01-01T02:00:00.000Z TO 2017-01-01T01:59:59.999Z]`
Order Date
| Attribute | Type | Description |
|---|---|---|
| f_creationDate | string | Concatened value suffix creationDate and range date in Timestamp format |
Order Date filter Examples:
1 Day:
`/api/oms/pvt/orders?f_creationDate=creationDate:[2017-01-01T02:00:00.000Z TO 2017-01-02T01:59:59.999Z]`
1 Month:
`/api/oms/pvt/orders?f_creationDate=creationDate:[2017-01-01T02:00:00.000Z TO 2017-02-01T01:59:59.999Z]`
1 Year:
`/api/oms/pvt/orders?f_creationDate=creationDate:[2016-01-01T02:00:00.000Z TO 2017-01-01T01:59:59.999Z]`
Authorized Date
| Attribute | Type | Description |
|---|---|---|
| f_authorizedDate | string | Concatened value suffix authorizedDate and range date in Timestamp format |
Authorized Date filter Examples:
1 Day:
`/api/oms/pvt/orders?f_authorizedDate=authorizedDate:[2017-01-01T02:00:00.000Z TO 2017-01-02T01:59:59.999Z]`
1 Month:
`/api/oms/pvt/orders?f_authorizedDate=authorizedDate:[2017-01-01T02:00:00.000Z TO 2017-02-01T01:59:59.999Z]`
1 Year:
`/api/oms/pvt/orders?f_authorizedDate=authorizedDate:[2016-01-01T02:00:00.000Z TO 2017-01-01T01:59:59.999Z]`
UTMs
| Attribute | Type | Description |
|---|---|---|
| f_UtmSource | string | UTM Source value |
Channels filter Examples:
`/api/oms/pvt/orders?f_UtmSource=buscape_campaign`
Seller
| Attribute | Type | Description |
|---|---|---|
| f_sellerNames | string | Seller Name value |
Seller filter Examples:
`/api/oms/pvt/orders?f_sellerNames=Fast+Shop`
Call Center Operator
| Attribute | Type | Description |
|---|---|---|
| f_callCenterOperatorName | string | Call Center Operator Value |
Call Center Operator filter Examples:
`/api/oms/pvt/orders?f_callCenterOperatorName=Operator%20Name`
Sales Channel Name
| Attribute | Type | Description |
|---|---|---|
| f_salesChannel | string | Sales Channel Name Value |
Sales Channel Name filter Examples:
`/api/oms/pvt/orders?f_salesChannel=Main`
Sales Channel ID
| Attribute | Type | Description |
|---|---|---|
| salesChannelId | string | Sales Channel ID Value |
Sales Channel ID filter Examples:
`/api/oms/pvt/orders?salesChannelId=1`
Affiliate ID
| Attribute | Type | Description |
|---|---|---|
| f_affiliateId | string | Affiliate ID Value |
Affiliate ID filter Examples:
`/api/oms/pvt/orders?f_affiliateId=WLM`
Order Status
| Attribute | Type | Description |
|---|---|---|
| f_status | string | Order Status Value |
| Order Status avaible to filter |
|---|
| waiting-for-sellers-confirmation |
| payment-pending |
| payment-approved |
| ready-for-handling |
| handling |
| invoiced |
| canceled |
Order Status filter Examples:
`/api/oms/pvt/orders?f_status=ready-for-handling`
Order Status Description
| Attribute | Type | Description |
|---|---|---|
| f_statusDescription | string | Order Status Description Value |
| Order Status Description avaible to filter |
|---|
| Aguardando+autorização+para+despachar |
| Pagamento+Pendente |
| Pagamento+Aprovado |
| Pronto+para+o+manuseio |
| Preparando+Entrega |
| Faturado |
| Cancelado |
Order Status Description filter Examples:
`/api/oms/pvt/orders?f_statusDescription=Pronto+para+o+manuseio`
Order Situation
| Attribute | Type | Description |
|---|---|---|
| incompleteOrders | boolean | If is a Incomplete Order |
know more about Incomplete Orders in VTEX Help
Order Situation filter Examples:
`/api/oms/pvt/orders?incompleteOrders=true`
Error Situation
| Attribute | Type | Description |
|---|---|---|
| incompleteOrders | boolean | Error Situation Type |
| Error Situation Values avaible to filter |
|---|
| all |
| perm |
| temp |
Error Situation filter Examples:
`/api/oms/pvt/orders?filterError=all`
Payment Type Name
| Attribute | Type | Description |
|---|---|---|
| f_paymentNames | string | Payment Type Value |
Payment Type Name filter Examples:
`/api/oms/pvt/orders?f_paymentNames=Visa`
Rates and Benefits Name
| Attribute | Type | Description |
|---|---|---|
| f_RnB | string | Rates and Benefits Name |
Rates and Benefits filter Examples:
`/api/oms/pvt/orders?f_RnB="Free+Shipping"`
Search Field
| Attribute | Type | Description |
|---|---|---|
| searchField | string | Affiliate ID Value |
| sku_Ids&sku_Ids | integer | SKU ID |
| listId&listId | integer | Gift List ID |
| tid&tid | integer | Transaction ID (TID) |
| pci_tid&pci_tid | integer | PCI Connector's Transaction ID (TID) |
| paymentId&paymentId | integer | Payment ID (PID) |
| nsu&nsu | integer | Connector's NSU |
Search Field filter Examples:
SKU ID:
`/api/oms/pvt/orders?searchField=sku_Ids&sku_Ids=11223`
Gift List ID:
`/api/oms/pvt/orders?searchField=listId&listId=11223`
Transaction ID (TID):
`/api/oms/pvt/orders?searchField=tid&tid=54546300238810034995829230012`
PCI Connector's Transaction ID (TID):
`/api/oms/pvt/orders?searchField=pci_tid&pci_tid=7032909234899834298423209`
Payment ID (PID):
`/api/oms/pvt/orders?searchField=paymentId&paymentId=2`
Connector's NSU:
`/api/oms/pvt/orders?searchField=nsu&nsu=2437281`
\n\r\n\r## Response objects\n\r\n\r, Response object has the following properties:
| Attribute | Type | Description |
|---|---|---|
| list | object | Order List Object |
| shippingEstimateDate | string | Estimate Shipping Date |
| affiliateId | string | Seller Name who was responsible for the order |
| authorizedDate | string | Authorized Order Date |
| callCenterOperatorData | string | Call Center Operator responsible for the order |
| name | string | Client Name |
| creationDate | string | Order Creation Date |
| currencyCode | string | Currency Code in ISO 4217 |
| items | object | Obsolete Field |
| lastMessageUnread | string | Last sent transactional message |
| listId | string | Releated Gift List Id |
| listType | string | Releated Gift List Type |
| marketplaceOrderId | string | Marketplace Order Id |
| orderId | string | Change receipt order Id |
| orderIsComplete | boolean | If is a Order Completed |
| origin | string | Order Origin: "Marketplace" or "Fulfillment" |
| paymentNames | string | Payment System Name |
| salesChannel | string | Order Sales Channel Id |
| sequence | string | Order Sequence ID |
| status | string | Order Status |
| statusDescription | string | Status Description |
| totalItems | integer | Total Order Items |
| totalValue | integer | Total Value Amount |
| workflowInErrorState | boolean | If is a Work Flow Error |
| workflowInRetry | boolean | If is in a Work Flow Retry |
| paging | object | Paging Details Object |
| pages | integer | Paging Total Pages |
| perPage | integer | Paging total per Page |
| total | integer | Total Result |
| stats | object | Results segmented by totalItems and totalValue |
| totalItems | integer | Total Order Items segmeted by currencyCode and origin |
| totalValue | integer | Total Value Amount segmeted by currencyCode and origin |
| currencyCode | string | Currency Code in ISO 4217 |
| origin | string | Order Origin: "Marketplace" or "Fulfillment" |
| Count | integer | Orders Count |
| Facets | object | Grouping Object |
| Max | object | Paging Details Object |
| Mean | object | Paging Details Object |
| Min | object | Paging Details Object |
| Missing | object | Paging Details Object |
| StdDev | object | Paging Details Object |
| Sum | object | Paging Details Object |
| SumOfSquares | object | Paging Details Object |
Query parameters
Filters list to return only orders with non null values for the invoiceInput field.
Headers
Type of the content being sent.
HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.
Request body
Example request
{
"f_creationDate": "creationDate:[2021-11-01T00:00:00.000Z TO 2022-11-10T02:00:00.000Z]",
"page": 1,
"per_page": 15,
"q": "Postman Test"
}Response
OK