integrations.sh
← all integrations

vtex.local – Orders-API

OpenAPI apis-guru

Check the new . 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.

Receive, process, and manage every order in your store through our Order Management API.

Homepage
https://api.apis.guru/v2/specs/vtex.local:Orders-API/1.0.json
Provider
vtex.local:Orders-API / Orders-API
OpenAPI version
3.0.0
Spec (JSON)
https://api.apis.guru/v2/specs/vtex.local/Orders-API/1.0/openapi.json
Spec (YAML)
https://api.apis.guru/v2/specs/vtex.local/Orders-API/1.0/openapi.yaml

Tools (30)

Extracted live via the executor SDK.

  • changeSeller.getWindowToChangeSeller

    Retrieves a marketplace’s window to change seller, that is, the period when it is possible to choose another seller to fulfill a given order after the original seller has canceled it.

    The default period for this window is of 2 days, but it can be configured by the request Update window to change seller.

  • changeSeller.updateWindowToChangeSeller

    Updates a marketplace’s window to change seller, that is, the period when it is possible to choose another seller to fulfill a given order after the original seller has canceled it.

    It is possible to check the current window using the request Get window to change seller.

  • conversation.getConversation

    List all order conversations of an order by its order ID.

  • exportOrderReport.statusCompleted

    Retrieves a list of all order reports that are completed, by accountName. Be aware that the scope of the export log is per user.

    This endpoint is for VTEX internal use, and it is not meant to be used by clients.

  • exportOrderReport.statusInProgress

    Retrieves a list of all order reports that are in progress, by accountName. Be aware that the scope of the export log is per user.

    This endpoint is for VTEX internal use, and it is not meant to be used by clients.

  • feedV2Deprecated.getfeedorderstatus

    Get feed order status (deprecated)

  • feedV3.commititemfeedorderstatus

    Commit items in the queue.

  • feedV3.feedConfiguration

    The Orders Feed v3 is the best way to create order integrations. Below you can find details on the configuration API specification, and to know more see our and our

    There are two types of filtering that can be used. The FromWorkflow type filters orders by status, whereas the FromOrders type uses JSONata expressions to filter orders according to any property in the orders JSON document. This enables stores to filter delivered orders and orders in which products have been added or removed, for example. To learn more, access the and test filtering JSONata expressions with our endpoint.

  • feedV3.feedConfigurationDelete

    Deletes the configuration set up in .

  • feedV3.getFeedConfiguration

    The Orders Feed v3 is the best way to create order integrations. Below you can find details on the configuration API specification, and to know more see our and our .

    📘 Onboarding guide

    Check the new . 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.

  • feedV3.getfeedorderstatus1

    Retrieve items from queue.

    The event will be removed if the message send retry is equal to, or greater than the maximum retention period.

    This API will return 404 Not Found if there is no available for the given X-VTEX-API-AppKey.

  • feedV3.testJsoNataExpression

    This endpoint allows you to test a JSON document with a JSONata expression, returning true if the document meets the criteria posed in the expression, or false if it does not.

    Since JSONata expressions can be used to filter order updates in the , this endpoint can be used to test an expression's results before configuring the .

    Learn more about how to use JSONata expressions, in the .

  • invoice.invoiceNotification

    Entering the is a required step for its to change to Invoiced - a sign that the order has been successfully completed. Remember that once an order is read as invoiced by the system, this status cannot be changed.

    The total value of the order will be updated after the insertion of the invoice, even when there's a scenario. The updated value is settled by VTEX's Payment Gateway. The reimbursement for the shopper is automatic.

    We strongly recommend that you always send the object of the invoiced items. With this practice, rounding errors will be avoided.

    When returning items, an input invoice must be sent through this call. For that, the type field should be filled in with input.

    It is not allowed to use the same invoiceNumber in more than one request to the Order Invoice Notification endpoint.

    For marketplace integrations: once the order is invoiced, the seller should use this request to send the invoice information to the marketplace. Be aware that this endpoint is also used by the seller to send the order tracking information. This, however, should be done in a separate moment, once the seller has the tracking information.

    The Notify invoice resource is needed to use this API request. This is included in OMS - Full access and IntegrationProfile - Fulfillment Oms, among other default roles available in the Admin. Learn more about the .

    📘 Onboarding guide

    Check the new . 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.

  • invoice.updatepartialinvoiceSendTrackingNumber

    Update a given order, adding its tracking number to its .

    After using this call to add a tracking number to an order, you can use the API request to add tracking events.

    The Notify invoice resource is needed to use this API request. This is included in OMS - Full access and IntegrationProfile - Fulfillment Oms, among other default roles available in the Admin. Learn more about the .

  • orderHook.deleteHookConfiguration

    Deletes a given hook configuration.

    Learn more with the .

  • orderHook.getHookConfiguration

    Retrieves a given hook's configuration details. Learn more with the .

    📘 Onboarding guide

    Check the new . 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.

  • orderHook.hookConfiguration

    Configures filtering rules applied to orders hook. Learn more with the .

    There are two types of filtering that can be used:

    • FromWorkflow: filters orders by status.

    • FromOrders: uses JSONata expressions to filter orders according to any property in the orders JSON document.

    This enables stores to filter delivered orders and orders in which products have been added or removed, for example.

    To learn more, access the and test filtering JSONata expressions with our .

  • orders.addLog

    Add a Log in Interactions Order Array.

  • orders.cancelOrder

    You should use this endpoint to cancel an order by its order identification number (the orderId).

    A common scenario is one where the seller has a problem with the order fulfillment and needs to request the order cancellation to the marketplace. To do this, the seller would need to make this request, passing the orderId in the URL.

    You should expect a response with the date when the notification was received, the orderId, and a receipt protocol code.

    Be aware that if the order status is already Invoiced, the order can only be canceled if—before using this request—you send a return invoice through the .

    The Cancel order resource is needed to use this API request. This is included in OMS - Full access and IntegrationProfile - Fulfillment Oms, among other default roles available in the Admin. Learn more about the .

  • orders.getOrder

    This endpoint retrieves order details by searching a specific order ID or sequence number.

    The View order resource is needed to use this API request. This is included in OMS - Full access and IntegrationProfile - Fulfillment Oms, among other default roles available in the Admin. Learn more about the .

    📘 Onboarding guide

    Check the new . 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.

    Response body example

    json
    {    "orderId": "1244730712239-01",    "sequence": "502790",    "marketplaceOrderId": "",    "marketplaceServicesEndpoint": null,    "sellerOrderId": "SLR-1244730712239-01",    "origin": "Marketplace",    "affiliateId": "",    "salesChannel": "1",    "merchantName": null,    "status": "payment-approved",    "statusDescription": "Pagamento Aprovado",    "value": 2012,    "creationDate": "2022-07-06T09:11:51.4597231+00:00",    "lastChange": "2022-07-06T09:12:00.2849749+00:00",    "orderGroup": "1244730712239",    "totals": [        {            "id": "Items",            "name": "Total dos Itens",            "value": 2265        },        {            "id": "Discounts",            "name": "Total dos Descontos",            "value": -453        },        {            "id": "Shipping",            "name": "Total do Frete",            "value": 200        },        {            "id": "Tax",            "name": "Total da Taxa",            "value": 0        }    ],    "items": [        {            "uniqueId": "A14AD652AC5D40FBB0137D3ADA3CB800",            "id": "12",            "productId": "8",            "ean": null,            "lockId": null,            "itemAttachment": {                "content": {},                "name": null            },            "attachments": [],            "quantity": 1,            "seller": "ppxpssp",            "name": "Camiseta P Azul",            "refId": "COP01_P-A",            "price": 2265,            "listPrice": 2265,            "manualPrice": null,            "priceTags": [                {                    "name": "discount@price-d0231eb3-e9a4-47b2-9c74-bc346df11ce4#e9bb430d-30b3-4461-a86e-f66f35b2915d",                    "value": -453,                    "isPercentual": false,                    "identifier": "d0231eb3-e9a4-47b2-9c74-bc346df11ce4",                    "rawValue": -4.53,                    "rate": null,                    "jurisCode": null,                    "jurisType": null,                    "jurisName": null                }            ],            "imageUrl": "https://ppxps.vteximg.com.br/arquivos/ids/155407-55-55/EE803C74-37A5-4804-B1A6-9F12D22EA505.png?v=637559269453730000",            "detailUrl": "/camiseta/p",            "components": [],            "bundleItems": [],            "params": [],            "offerings": [],            "sellerSku": "12",            "priceValidUntil": "2023-07-06T09:11:04.0000000+00:00",            "commission": 0,            "tax": 0,            "preSaleDate": null,            "additionalInfo": {                "brandName": "Marca TOP",                "brandId": "2000001",                "categoriesIds": "/7/",                "categories": [                    {                        "id": 7,                        "name": "Roupas"                    }                ],                "productClusterId": "",                "commercialConditionId": "1",                "dimension": {                    "cubicweight": 1.0000,                    "height": 6.0000,                    "length": 10.0000,                    "weight": 4.0000,                    "width": 8.0000                },                "offeringInfo": null,                "offeringType": null,                "offeringTypeId": null            },            "measurementUnit": "un",            "unitMultiplier": 1.0000,            "sellingPrice": 1812,            "isGift": false,            "shippingPrice": null,            "rewardValue": 0,            "freightCommission": 0,            "priceDefinition": {                "sellingPrices": [                    {                        "value": 1812,                        "quantity": 1                    }                ],                "calculatedSellingPrice": 1812,                "total": 1812            },            "taxCode": "1122",            "parentItemIndex": null,            "parentAssemblyBinding": null,            "callCenterOperator": null,            "serialNumbers": null,            "assemblies": [],            "costPrice": null        }    ],    "marketplaceItems": [],    "clientProfileData": {        "id": "clientProfileData",        "email": "0bf94cbf23ff410aaaf7c707dd8a808c@ct.vtex.com.br",        "firstName": "Paulo",        "lastName": "Filho",        "documentType": "cpf",        "document": "11156703794",        "phone": "+5521971126360",        "corporateName": null,        "tradeName": null,        "corporateDocument": null,        "stateInscription": null,        "corporatePhone": null,        "isCorporate": false,        "userProfileId": "ca0695a8-df34-4076-8663-725041930c75",        "customerClass": null    },    "giftRegistryData": null,    "marketingData": {        "id": "marketingData",        "utmSource": null,        "utmPartner": null,        "utmMedium": null,        "utmCampaign": null,        "coupon": null,        "utmiCampaign": null,        "utmipage": null,        "utmiPart": null,        "marketingTags": [            "vtex-subscription"        ]    },    "ratesAndBenefitsData": {        "id": "ratesAndBenefitsData",        "rateAndBenefitsIdentifiers": [            {                "description": "Desconto de 20% no pedido para assinatura",                "featured": true,                "id": "d0231eb3-e9a4-47b2-9c74-bc346df11ce4",                "name": "Desconto 20% assinante",                "matchedParameters": {},                "additionalInfo": null            }        ]    },    "shippingData": {        "id": "shippingData",        "address": {            "addressType": "residential",            "receiverName": "Paulo Filho",            "addressId": "1651158093975",            "postalCode": "21341-270",            "city": "Rio de Janeiro",            "state": "RJ",            "country": "BRA",            "street": "Rua Pinto Teles",            "number": "1",            "neighborhood": "Praça Seca",            "complement": null,            "reference": null,            "geoCoordinates": [                -43.350608825683594,                -22.886520385742188            ]        },        "logisticsInfo": [            {                "itemIndex": 0,                "selectedSla": "Normal",                "lockTTL": "12d",                "price": 200,                "listPrice": 200,                "sellingPrice": 200,                "deliveryWindow": null,                "deliveryCompany": "Transportadora",                "shippingEstimate": "2bd",                "shippingEstimateDate": "2022-07-08T09:11:57.8421126+00:00",                "slas": [                    {                        "id": "Normal",                        "name": "Normal",                        "shippingEstimate": "2bd",                        "deliveryWindow": null,                        "price": 200,                        "deliveryChannel": "delivery",                        "pickupStoreInfo": {                            "additionalInfo": null,                            "address": null,                            "dockId": null,                            "friendlyName": null,                            "isPickupStore": false                        },                        "polygonName": "",                        "lockTTL": "12d",                        "pickupPointId": null,                        "transitTime": "2bd"                    }                ],                "shipsTo": [                    "BRA"                ],                "deliveryIds": [                    {                        "courierId": "1",                        "courierName": "Transportadora",                        "dockId": "169fe66",                        "quantity": 1,                        "warehouseId": "166cb0c",                        "accountCarrierName": null                    }                ],                "deliveryChannel": "delivery",                "pickupStoreInfo": {                    "additionalInfo": null,                    "address": null,                    "dockId": null,                    "friendlyName": null,                    "isPickupStore": false                },                "addressId": "1651158093975",                "polygonName": "",                "pickupPointId": null,                "transitTime": "2bd"            }        ],        "trackingHints": null,        "selectedAddresses": [            {                "addressId": "1651158093975",                "addressType": "residential",                "receiverName": "Paulo Filho",                "street": "Rua Pinto Teles",                "number": "1",                "complement": null,                "neighborhood": "Praça Seca",                "postalCode": "21341-270",                "city": "Rio de Janeiro",                "state": "RJ",                "country": "BRA",                "reference": null,                "geoCoordinates": [                    -43.350608825683594,                    -22.886520385742188                ]            }        ]    },    "paymentData": {        "giftCards": [],        "transactions": [            {                "isActive": true,                "transactionId": "A5BF0F884F314F788F4778B464EE1648",                "merchantName": "PPXPS",                "payments": [                    {                        "id": "06D8D76D4BD549EF9CC209D969ACBA84",                        "paymentSystem": "47",                        "paymentSystemName": "Cash",                        "value": 2012,                        "installments": 1,                        "referenceValue": 2012,                        "cardHolder": null,                        "cardNumber": null,                        "firstDigits": null,                        "lastDigits": null,                        "cvv2": null,                        "expireMonth": null,                        "expireYear": null,                        "url": null,                        "giftCardId": null,                        "giftCardName": null,                        "giftCardCaption": null,                        "redemptionCode": null,                        "group": "cash",                        "tid": null,                        "dueDate": null,                        "connectorResponses": {},                        "giftCardProvider": null,                        "giftCardAsDiscount": null,                        "koinUrl": null,                        "accountId": null,                        "parentAccountId": null,                        "bankIssuedInvoiceIdentificationNumber": null,                        "bankIssuedInvoiceIdentificationNumberFormatted": null,                        "bankIssuedInvoiceBarCodeNumber": null,                        "bankIssuedInvoiceBarCodeType": null,                        "billingAddress": null                    }                ]            }        ]    },    "packageAttachment": {        "packages": []    },    "sellers": [        {            "id": "ppxpssp",            "name": "ppxpssp",            "logo": "",            "fulfillmentEndpoint": "http://fulfillment.vtexcommerce.com.br/api/fulfillment?an=ppxpssp&affiliateId=SLR&sc=1"        }    ],    "callCenterOperatorData": null,    "followUpEmail": "0a902f64ba1443c3b26ab5cb0b2aad9e@ct.vtex.com.br",    "lastMessage": null,    "hostname": "ppxps",    "invoiceData": null,    "changesAttachment": null,    "openTextField": {        "value": "Order Created By VTEX Subscription System"    },    "roundingError": 0,    "orderFormId": "3d59650b4e9a447d80ecfac4830926d9",    "commercialConditionData": null,    "isCompleted": true,    "customData": null,    "storePreferencesData": {        "countryCode": "BRA",        "currencyCode": "BRL",        "currencyFormatInfo": {            "CurrencyDecimalDigits": 2,            "CurrencyDecimalSeparator": ",",            "CurrencyGroupSeparator": ".",            "CurrencyGroupSize": 3,            "StartsWithCurrencySymbol": true        },        "currencyLocale": 1046,        "currencySymbol": "R$",        "timeZone": "E. South America Standard Time"    },    "allowCancellation": true,    "allowEdition": false,    "isCheckedIn": false,    "marketplace": null,    "authorizedDate": "2022-07-06T09:11:56.0006230+00:00",    "invoicedDate": null,    "cancelReason": null,    "itemMetadata": {        "Items": [            {                "Id": "12",                "Seller": "1",                "Name": "Camiseta P Azul",                "SkuName": "P Azul",                "ProductId": "8",                "RefId": "COP01_P-A",                "Ean": null,                "ImageUrl": "http://ppxps.vteximg.com.br/arquivos/ids/155407-55-55/EE803C74-37A5-4804-B1A6-9F12D22EA505.png?v=637559269453730000",                "DetailUrl": "/camiseta/p",                "AssemblyOptions": []            }        ]    },    "subscriptionData": {        "SubscriptionGroupId": "C191822AF072C7508F9BBBC655FE8E60",        "Subscriptions": [            {                "ExecutionCount": 274,                "PriceAtSubscriptionDate": 2265.0,                "ItemIndex": 0,                "Plan": {                    "type": "RECURRING_PAYMENT",                    "frequency": {                        "periodicity": "DAILY",                        "interval": 1                    },                    "validity": {                        "begin": "2021-10-05T00:00:00.0000000+00:00",                        "end": null                    }                }            }        ]    },    "taxData": null,    "checkedInPickupPointId": null,    "cancellationData": null}
  • orders.listOrders

    Retrieves a list of orders according to the filters described below.

    The limit of information retrieval is 30 pages, the default number of orders per page is 15 and it is possible to configure it up to 100 using the per_page parameter.

    Be aware that as of October 3rd, 2018, this endpoint will not return the items property.

    This should not be used for integrations. Use the for this purpose.

    This endpoint returns only orders that already have been indexed, which takes approximately four minutes. Because of this, the data retrieved may present inconsistencies. To get live up-to-date information and use the .

    📘 Onboarding guide

    Check the new . 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.

  • orders.registerChange

    Timeout settings

    This is a synchronous API, which means the application requests data and waits until a value is returned. This behavior can cause timeout errors; to avoid them, we recommend setting the timeout in 20 seconds.

    This request allows by:

    • Adding items to an order

    • Removing items from an order

    • Applying discounts to the total value of the order

    • Incrementing the total value of the order.

    In those scenarios of order changes, it is possible to insert a . The total value of the order will be updated after the insertion of the invoice, even when there is a partial invoice scenario. The updated value is settled by VTEX's Payment Gateway. The reimbursement for the shopper is automatic.

    This action can only be done for orders in these status:

    • handling

    • waiting-for-fulfillment

    The Change order resource is needed to use this API request. This is included in OMS - Full access and IntegrationProfile - Fulfillment Oms, among other default roles available in the Admin. Learn more about the .

  • orders.startHandling

    Changes the status of an order to indicate that it is in handling.

    Expect a status 204 response with no content in case of a successful request. The store must validate this response to retry the call if the response differs from the 204 code, making this flow the store's responsibility. This endpoint can also respond with status 500.

    The Change order workflow status resource is needed to use this API request. This is included in OMS - Full access and IntegrationProfile - Fulfillment Oms, among other default roles available in the Admin. Learn more about the .

  • payment.getPaymenttransaction

    Retrieves transaction details by order ID. All events in the transaction will be registered in this call's response body.

    In scenarios of , it is possible to insert a . The total value of the order will be updated after the insertion of the invoice, even when there is a scenario. The updated value is settled by VTEX's Payment Gateway. The reimbursement for the shopper is automatic.

  • payment.sendPaymentNotification

    Send a payment notification of a given order, by order ID.

    The Notify payment resource is needed to use this API request. This is included in OMS - Full access and IntegrationProfile - Fulfillment Oms, among other default roles available in the Admin. Learn more about the .

  • tracking.updateTrackingStatus

    This endpoint sends a tracking event to an order that already has a tracking number registered to its invoice.

    This request is not meant to send tracking number and URL to the invoice. If you wish to send tracking number and URL to an order, use the . You can also learn more about scenarios.

    The Notify invoice resource is needed to use this API request. This is included in OMS - Full access and IntegrationProfile - Fulfillment Oms, among other default roles available in the Admin. Learn more about the .

  • userOrders.userorderdetails

    Lists all details from a user's order, through client's perspective.

    Note that these requests are meant to be made by Call center operator profiles. Otherwise, they will return only orders from the same email making the request.

  • userOrders.userorderslist

    Lists all orders from a given client, filtering by their email.

    Note that these requests are meant to be made by Call center operator profiles. Otherwise, they will return only orders from the same email making the request.

  • openapi.previewSpec

    Preview an OpenAPI document before adding it as a source

  • openapi.addSource

    Add an OpenAPI source and register its operations as tools