Documentation
Feedback
Guides

[Deprecated] Order Logs

We have released a new method for integrating orders from external marketplaces, as a part of our Marketplace Protocol. If you used this previous method for integrating orders, you can still find their documentation in Order Logs and How to collect orders from sales channels. These previous methods, however, will not be maintained. If you are integrating orders for the first time, we recommend you use the instructions in our New Order Integration guide.

Connectors should present the logs that follow, considering their status:

StatusDescription
SuccessOccurs when the exchange of messages between VTEX, connector and marketplace flow successfully.
ErrorOccurs when the exchange of messages between VTEX, connector and marketplace present errors due to communication (500) or business errors (400). Recommendations: for 500 errors, it is highly recommended to use the contingency flow through the reprocessing queue with at least 10 attempts. After the attempt number is exceeded, we recommend using a DEADLETTER queue for infinite retrials.
AlertOccurs when the exchange of messages between VTEX, connector and marketplace are able to process, but with a needed action from one of the systems involved.
PendingOccurs when the exchange of messages between VTEX, connector and marketplace are in progress. Ex. SKUs are still in the connector’s processing queue, or waiting an async response from the marketplace.

Content of the messages

The messages contained in logs should follow the standard defined below, allowing the user who operates VTEX platform and catalog to understand the situation:

  1. Operation ID (id): allows to identify the unique log in any sort of operation.
  2. Operation: identifies if an operation is a Catalog change, Offer creation, Price update, Inventory update, Order status update, Invoice sending, Tracking code sending.
  3. Direction: allows to identify the origin and destination of the information. Ex. VTEX to Marketplace.
  4. Content Source: payload sent by the origin solution. Ex. Order’s json, connected from the marketplace, allowing to identify the original message sent by the origin app.
  5. Content Translated: message generated by the connector with transformations, filers and enrichments needed, allowing sellers to understand the actions executed.
  6. Content destination: original payload sent by the destination software after processing trial.
  7. Business message: in case of errors, message explaining the error under the business contexto, with guidance on how to solve the problem.
  8. Status: should include the statuses of success, error, warning and pending.

Log messages

Each step of the catalog integration requires a specific set of Log messages. The table describes all messages, for each scenario within the integration.

CodeEventUser messageError statusResponse
AWhen integrating the order successfully in VTEXThe order {{marketplaceOrderId}} was created in VTEX successfully under the ID {{vtexOrderId}}. Link to the order within VTEX.Success201
BWhen sending the SKU register to the marketplaceThe standard rule with 0-100% manual approval was created successfully. To view or change this rule click hereSuccess201
CWhen sending the cancel order requestThe order {vtexOrderId} has been cancelled successfully.Success201
DWhen using the Fulfillment simulation API, the SKU is not retrieved in the items object.Oops, we couldn’t obtain the information of SKU {{skuId}}. Please check if the items below are configured correctly in the VTEX platform.
  1. In product registration, check if it is associated with the trade policy.
  2. In fulfillment simulation, check if the carrier attending the SKU exists.
  3. In price configuration, check if there’s a price associated with the trade policy.
Warning400
EWhen trying to send the Cancel Order request and receiving failure for multiple requestsOops, we could not cancel the order right now, due to the high volume of requests we’re receiving. We’ll try again later. If you prefer, you can cancel the order directly in VTEX.Alert400
FWhen checking if the SKU is inactive \Oops, the SKU is inactive in VTEX. We recommend that you check:
  1. In Catalog, identify the SKU and check if the field “Activate SKU” is checked.
  2. In Catalog, check if the image is uploaded.
  3. In fulfillment simulation, check if the carrier attending the SKU exists.
  4. On price configuration, check if there’s a price associated with the trade policy.
Warning400
GWhen trying to cancel an order that has already been manually cancelled in VTEXThe order {vtexOrderId} has already been cancelled in VTEX.Error500
HWhen receiving an error about divergencesOops, we couldn’t find the values needed for order placement, with standard values accepted by the marketplace. {{list containing FIELD and VALUE attributed}}Warning200
IWhen transforming Order data to the format demanded by the marketplace.Oops, we couldn't prepare the SKU registration in the marketplace due to {{list all errors occurred during data transformation, and in case any data infringes marketplace rules}}. (Connectors should list all errors at once, so the user knows all actions needed to send the SKU).Error400
JError when trying to create price divergence standard ruleOops, we were not able to create the standard price divergence rule. Please try again later.Error400
KWhen trying to cancel an order with invalid credentialsOops, we were not able to communicate with VTEX to cancel the Order. Please check if your integration’s settings are correct.
LWhen trying to communicate with the marketplace API used to register the productOops, the product registration in the {name} marketplace is unavailable right now. Don’t worry - we’ll try again in a few minutes. In case the problem persists, get in touch with the marketplace.Error500
MWhen trying to cancel an order that has not been integrated in VTEXOops, the order {vtexOrderId} has not been integrated in VTEX yet. We’ll try again later.
NWhen sending the product registration to the marketplace, and obtaining failure for sending incorrect data.Oops, we couldn't prepare the SKU registration in the marketplace due to {list all errors occurred during data transformation, and in case any data infringes marketplace rules}. (Connectors should list all errors at once, so the user knows all actions needed to send the SKU).Error400
OWhen trying to collect the category or attribute mapping from the VTEX Mapper.Oops, we couldn’t find the category {name of the category} mapping of the {SKU name + ID} SKU in the marketplace. Please access the link below to perform this mapping. {Link indicating the store’s mapper}.Error400
PWhen trying to communicate with the mapping API from the mapper.Oops, the VTEX category mapping is unavailable right now. Don’t worry - we’ll try again in a few minutes. In case the problem persists, get in touch with support.Error500
QWhen trying to reprocess an order that is already canceled in the marketplace due to inventory errorOops, we couldn’t reprocess the order {{orderId}} of the {{marketplaceName}}, since this order was cancelled manually in the marketplace.Error400
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page