Chuyển tới nội dung chính

POST Upload Invoice

Tải lên hóa đơn Shop Scope yêu cầu: seller.fulfillment.basic Tải lên tài liệu hóa đơn. Lưu ý: Chỉ áp dụng cho người bán nội địa tại thị trường Brazil. Phiên bản 202502

POST/fulfillment/202502/invoice/upload

Request

Header

PropertiesTypeDescription
content-type RequiredstringLoại được phép: application/json
x-tts-access-token RequiredstringGiá trị access_token của người bán từ Get Access Token, khi user_type = 0. Làm theo hướng dẫn này để lấy access_token của người bán.

Query

PropertiesTypeDescription
app_key RequiredstringMỗi app sẽ có một key duy nhất. Vui lòng sử dụng key cụ thể được gán cho app của bạn.
sign RequiredstringChữ ký được tạo bởi thuật toán gen. Khi bạn gửi yêu cầu API đến TTS, bạn phải ký chúng để TTS có thể nhận diện người gửi.
timestamp RequiredintUnix timestamp GMT (UTC+00:00). Timestamp này được dùng trên tất cả các yêu cầu API. Nhà phát triển có thể dùng để chuyển đổi sang giờ địa phương.
shop_cipher RequiredstringSử dụng property này để truyền thông tin shop khi yêu cầu API. Việc không truyền đúng giá trị khi yêu cầu API cho các shop xuyên biên giới sẽ trả về response không chính xác. Lấy bằng API Get Authorization Shop

Body

PropertiesTypeDescription
invoices[]objectDanh sách hóa đơn cần tải lên.

Example

CurlGoNode.jsJavaEnable word wrap

1234567891011121314curl-X POST 'https://open-api.tiktokglobalshop.com/fulfillment/202502/invoice/upload?app_key=38abcd&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c&timestamp=1623812664&shop_cipher=GCP_XF90igAAAABh00qsWgtvOiGFNqyubMt3' -H 'content-type: application/json' -H 'x-tts-access-token: TTP_pwSm2AAAAABmmtFz1xlyKMnwg74T2GJ5s0uQbS8jPjb_GkdFVCxPqzQXSyuyfXdQa0AqyDsea2tYFNVf4XeqgZHFfPyv0Vs659QqyLYfsGzanZ5XZAin3_ZkcIxxS0_In6u6XDeU96k' -d '{ "invoices": [ { "package_id": "1161235029d14122252", "order_ids": "5361235029d14122252", "file_type": "XML", "file": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGL" } ]}'

Response Parameters

PropertiesTypeDescription
codeintMã trạng thái thành công hoặc thất bại trả về trong response API.
messagestringThông báo thành công hoặc thất bại trả về trong response API. Lý do thất bại sẽ được mô tả trong message.
request_idstringNhật ký yêu cầu
dataobjectThông tin trả về cụ thể

Example

JSONEnable word wrap

{"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"}

Error Code

Xem các mã lỗi phổ biến

| Code | Message | | --- | --- | | 36009003 | Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support. |

Nội dung này có hữu ích không?Hữu ích

Không hữu ích

PreviousNext