v1
latestOpenAPI 3.0.02026-07-141525155.4 KBNew Order Integration
API to integrate an external channel's order into the VTEX plataform.
This process is asynchronous and a notification with the order's integration results will be sent to the endpoint specified in the connectorEndpoint field in App Template, if the connector uses our App template. The field connectorName is also optional for connectors that use our App Template and authenticate using the app's auth cookie. If the account is not informed in the URL host, it should also be defined as a query string parameter in the route: an={account}.
For a detailed explanation of the steps required to develop a custom connector to become an external marketplace for VTEX sellers, check out our complete External Marketplace Integration Guide.
Path parameters
Parameter should indicate the name of the VTEX account where the order is being integrated or updated, meaning the seller responsible for the order.
Query parameters
Parameter should indicate the name of the VTEX account where the order is being integrated or updated, meaning the seller responsible for the order.
ID identifying the marketplace where the order originates. This ID is configured in the seller's VTEX account, and should be informed to the marketplace.
Headers
Describes the type of the content being sent.
HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.
Request body
Example request
{
"allowFranchises": false,
"clientProfileData": {
"corporateDocument": null,
"corporateName": null,
"corporatePhone": null,
"document": "99999999999",
"email": "email@email.com.br",
"firstName": "John",
"lastName": "Doe",
"phone": "99999999999",
"stateInscription": null,
"tradeName": null
},
"connectorEndpoint": "https://connector-endpoint.com/api/vtex",
"connectorName": "SkyHub",
"customData": {
"customApps": [
{
"fields": {
"marketplacePaymentMethod": "credit card"
},
"id": "marketplace-integration",
"major": 1
}
]
},
"invoiceData": {
"userPaymentInfo": {
"paymentMethods": [
"creditCardPaymentGroup"
]
}
},
"items": [
{
"id": "1",
"price": 975,
"quantity": 1
}
],
"marketplaceOrderId": "{{$guid}}",
"marketplaceOrderStatus": "NEW",
"marketplacePaymentValue": 3025,
"pickupAccountName": "",
"shippingData": {
"isFob": true,
"isMarketplaceFulfillment": true,
"logisticsInfo": [
{
"deliveryIds": {
"warehouseId": "AR1"
},
"lockTTL": "1d",
"price": 2050,
"selectedDeliveryChannel": "delivery",
"selectedSla": "Express",
"shippingEstimate": "2d"
}
],
"selectedAddresses": [
{
"addressId": "1",
"addressType": "Residential",
"city": "Curitiba",
"complement": "101",
"country": "BRA",
"geoCoordinates": {
"latitude": "-29.5",
"longitude": "-45.8"
},
"neighborhood": "Portão",
"number": "4125",
"postalCode": "81020-235",
"receiverName": "John Doe",
"state": "PR",
"street": "Rua Eduardo Carlos Pereira"
}
]
}
}Response
OK
Example response
{
"accountName": "grocery1",
"code": "SOI003",
"errors": null,
"fields": null,
"flow": "PlaceOrder",
"marketplaceOrderId": null,
"message": "Order successfully enqueued",
"operationId": null,
"success": true
}