If you use an external order management system (OMS), its order and line item IDs may differ from the corresponding TikTok Shop IDs. Use this endpoint to attach external OMS references to up to 100 TikTok Shop orders. To update an existing reference, call the endpoint again with the same TikTok Shop order and OMS. Each order is processed independently. On a successful API response, references for orders not listed in data.errors are saved; use that list to identify per-order errors.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Orders for which to add or update external OMS references. Min count: 1. Max count: 100.
object
The unique identifier for a TikTok Shop order.
Order information in your external order management system (OMS).
object
The corresponding order ID in your OMS.
The alias of your OMS. Possible values:
- SHOPIFY
- WOOCOMMERCE
- BIGCOMMERCE
- MAGENTO
- SALESFORCE_COMMERCE_CLOUD
- CHANNEL_ADVISOR
- AMAZON
- ORDER_MANAGEMENT_SYSTEM
- WAREHOUSE_MANAGEMENT_SYSTEM
- ERP_SYSTEM
Notes:
- To attach information from multiple OMSs to the same order in TikTok Shop, call this API multiple times, each with the same TikTok Shop order and a different OMS.
- To edit the attached information for a TikTok Shop order, call the API with the same OMS.
Max count: 100.
object
Line item ID in your OMS.
Line item ID in TikTok Shop.
Example
{ "orders": [ { "id": "576461413038785752", "external_order": { "id": "676461413038785752", "platform": "SHOPIFY", "line_items": [ { "id": "577086512123755123", "origin_id": "677086512123755123" } ] } } ]}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
Per-order errors. Each item identifies a TikTok Shop order and its external OMS reference that could not be processed. On a successful API response, references for orders not listed here are saved even when this list is non-empty.
object
The machine-readable code for this per-order error.
A human-readable message describing this per-order error.
The TikTok Shop order and external OMS reference associated with this per-order error.
object
The unique identifier for a TikTok Shop order.
The order information in your OMS.
object
The corresponding order ID in your OMS.
The alias of your OMS.
Example
{ "code": 0, "data": { "errors": [ { "code": "36020001", "message": "Invalid order_id", "detail": { "order_id": "576461413038785752", "external_order": { "id": "676461413038785752", "platform": "SHOPIFY" } } } ] }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}