v1

latestOpenAPI 3.0.02026-07-14641139.1 KB
Orders

List 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

AttributeTypeDescription
orderBystringOrder Field and Order Type concatenated orderBy={{OrderField}},{{OrderType}}
OrderFieldstringOrder Field expected values: creationDate,orderId,items,totalValue and origin
OrderTypestringOrder 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`
AttributeTypeDescription
pageintegerPage Number

Pagination Examples:

`/api/oms/pvt/orders?page=3`
AttributeTypeDescription
per_pageintegerQuantity 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

AttributeTypeDescription
utcintegerTime 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

AttributeTypeDescription
qstringFulltext 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

AttributeTypeDescription
f_shippingEstimatestringConcatened 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

AttributeTypeDescription
f_invoicedDatestringConcatened 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

AttributeTypeDescription
f_creationDatestringConcatened 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

AttributeTypeDescription
f_authorizedDatestringConcatened 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

AttributeTypeDescription
f_UtmSourcestringUTM Source value

Channels filter Examples:

`/api/oms/pvt/orders?f_UtmSource=buscape_campaign`

Seller

AttributeTypeDescription
f_sellerNamesstringSeller Name value

Seller filter Examples:

`/api/oms/pvt/orders?f_sellerNames=Fast+Shop`

Call Center Operator

AttributeTypeDescription
f_callCenterOperatorNamestringCall Center Operator Value

Call Center Operator filter Examples:

`/api/oms/pvt/orders?f_callCenterOperatorName=Operator%20Name`

Sales Channel Name

AttributeTypeDescription
f_salesChannelstringSales Channel Name Value

Sales Channel Name filter Examples:

`/api/oms/pvt/orders?f_salesChannel=Main`

Sales Channel ID

AttributeTypeDescription
salesChannelIdstringSales Channel ID Value

Sales Channel ID filter Examples:

`/api/oms/pvt/orders?salesChannelId=1`

Affiliate ID

AttributeTypeDescription
f_affiliateIdstringAffiliate ID Value

Affiliate ID filter Examples:

`/api/oms/pvt/orders?f_affiliateId=WLM`

Order Status

AttributeTypeDescription
f_statusstringOrder 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

AttributeTypeDescription
f_statusDescriptionstringOrder 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

AttributeTypeDescription
incompleteOrdersbooleanIf is a Incomplete Order

know more about Incomplete Orders in VTEX Help

Order Situation filter Examples:

`/api/oms/pvt/orders?incompleteOrders=true`

Error Situation

AttributeTypeDescription
incompleteOrdersbooleanError Situation Type
Error Situation Values avaible to filter
all
perm
temp

Error Situation filter Examples:

`/api/oms/pvt/orders?filterError=all`

Payment Type Name

AttributeTypeDescription
f_paymentNamesstringPayment Type Value

Payment Type Name filter Examples:

`/api/oms/pvt/orders?f_paymentNames=Visa`

Rates and Benefits Name

AttributeTypeDescription
f_RnBstringRates and Benefits Name

Rates and Benefits filter Examples:

`/api/oms/pvt/orders?f_RnB="Free+Shipping"`

Search Field

AttributeTypeDescription
searchFieldstringAffiliate ID Value
sku_Ids&sku_IdsintegerSKU ID
listId&listIdintegerGift List ID
tid&tidintegerTransaction ID (TID)
pci_tid&pci_tidintegerPCI Connector's Transaction ID (TID)
paymentId&paymentIdintegerPayment ID (PID)
nsu&nsuintegerConnector'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:

AttributeTypeDescription
listobjectOrder List Object
shippingEstimateDatestringEstimate Shipping Date
affiliateIdstringSeller Name who was responsible for the order
authorizedDatestringAuthorized Order Date
callCenterOperatorDatastringCall Center Operator responsible for the order
namestringClient Name
creationDatestringOrder Creation Date
currencyCodestringCurrency Code in ISO 4217
itemsobjectObsolete Field
lastMessageUnreadstringLast sent transactional message
listIdstringReleated Gift List Id
listTypestringReleated Gift List Type
marketplaceOrderIdstringMarketplace Order Id
orderIdstringChange receipt order Id
orderIsCompletebooleanIf is a Order Completed
originstringOrder Origin: "Marketplace" or "Fulfillment"
paymentNamesstringPayment System Name
salesChannelstringOrder Sales Channel Id
sequencestringOrder Sequence ID
statusstringOrder Status
statusDescriptionstringStatus Description
totalItemsintegerTotal Order Items
totalValueintegerTotal Value Amount
workflowInErrorStatebooleanIf is a Work Flow Error
workflowInRetrybooleanIf is in a Work Flow Retry
pagingobjectPaging Details Object
pagesintegerPaging Total Pages
perPageintegerPaging total per Page
totalintegerTotal Result
statsobjectResults segmented by totalItems and totalValue
totalItemsintegerTotal Order Items segmeted by currencyCode and origin
totalValueintegerTotal Value Amount segmeted by currencyCode and origin
currencyCodestringCurrency Code in ISO 4217
originstringOrder Origin: "Marketplace" or "Fulfillment"
CountintegerOrders Count
FacetsobjectGrouping Object
MaxobjectPaging Details Object
MeanobjectPaging Details Object
MinobjectPaging Details Object
MissingobjectPaging Details Object
StdDevobjectPaging Details Object
SumobjectPaging Details Object
SumOfSquaresobjectPaging Details Object
post/api/orders/extendsearch/orders

Query parameters

f_hasInputInvoiceboolean

Filters list to return only orders with non null values for the invoiceInput field.

Headers

Content-Typestring required
Example:application/json

Type of the content being sent.

Acceptstring required
Example:application/json

HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.

Request body

f_creationDatestring required

Concatened value sufix {{creationDate}} and range date in Timestamp format.

pageinteger required

Number of the page to be retrieved.

per_pageinteger required

Number of orders per page.

qstring

Full-text search for the orders.

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

All 6 operations