Upload non-image files, such as PDF or video to TikTok Shop. Use this API when you need to add videos to your product to improve the shopping experience, or submit certifications or reports to meet TikTok Shop requirements for listing restricted products. Note: Retain the file ID from the response and pass it when creating or editing a product to associate the file with the product.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
The local file to be uploaded.
Note:
- Supported formats: PDF, MP4, MOV, MKV, WMV, WEBM, AVI, 3GP, FLV, MPEG
- Zero-byte files are rejected.
- Max PDF size: 20 MB
- Max video size: 100 MB
- Video aspect ratio: 9:16 to 16:9
Recommendations for product videos:
- Aspect ratio: 1:1
- Resolution: HD 720p or higher
- Duration: 20 - 60 seconds
The name of the file, including the file extension (e.g. certification.pdf)
Note:
- Do not use additional periods, except the one preceding the file extension.
- Do not begin the name with symbols.
- Do not include spaces.
Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
The file ID generated by TikTok Shop. Pass this value when creating or editing a product to associate the file with the product.
The URL to access and view the file.
The name of the file.
The format of the file. Possible values: PDF, MP4, MOV, MKV, WMV, WEBM, AVI, 3GP, FLV, MPEG
Example
{ "code": 0, "data": { "id": "v09e40f40000cfu0ovhc77ub7fl97k4w", "url": "https://p-oec-va.ibyteimg.com/tos-maliva-i-o3syd03w52-us/c668cdf70b7f483c94dbe\n", "name": "SNI.PDF", "format": "PDF" }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}