Upload the invoice document. Note: Applicable only for local sellers in the Brazil market.
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 Body
Section titled “Request Body”object
The list of invoices to upload. When invoices is provided, include 1 to 500 items.
object
The TikTok Shop package ID, retrieved from Search Package.
The list of TikTok Shop order IDs, retrieved from Get Order List.
The invoice file format. Possible values:
XML
Base64 encoding of the invoice file to upload. Max file size: 1MB
Example
{ "invoices": [ { "package_id": "1231231231231", "order_ids": [ "58747683456" ], "file_type": "XML", "file": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGL" } ]}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
Invoice-level upload errors. This list may be returned even when the top-level code is 0; each entry identifies the affected package and order IDs.
object
The error code.
The error message.
The details of the error.
object
The package ID where the error occurred.
The order IDs where errors occurred.
Example
{ "code": 0, "data": { "errors": [ { "code": 10007014, "message": "The invoice already exists in the upload. Please try again later", "detail": { "package_id": "1231231231231", "order_ids": [ "58747683456" ] } } ] }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}