快工助手跨境电商知识与商机助手

(46) Image translation completed

TikTok Shop 官方资料 · TikTok Shop Partner Center 开发者文档 · 适合开发者

stable本次发布有变化全部展示

来自 TikTok Shop 官方资料快照 ·

打开官方原文 ↗
  1. 当前资料结构化阅读页
  2. 固定快照已留存,可追溯
  3. 官方原文可核对
查看技术与溯源信息
平台 / profile
TikTok Shop / profile.tiktok.docs_api
语言
en-US
发布版本
cn-20260909-2
标签
zhuge/sourceplatform/tiktok_shopaudience/developercategory/api_doctopic/compliancetopic/developer

资料正文

§1 1. Trigger scenario

This webhook is triggered when an image translation is completed or failed.

Applicable only for sellers that sell across EU. Prerequisite: The "Product Basic" API scope is enabled in Partner Center. For more information, refer to Access Scope.

#

§2 2. Data business parameters

Parameter nameData typeSampleDescription
typeint46The ID of this webhook topic, which is 46.
tts_notification_idstring"7327112393057371910"The ID of this webhook notification.
shop_idstring"7494049642642441621"The shop ID.
timestampint1644412885The time when this webhook is triggered. Unix timestamp.
dataobject
└ translation_taskobjectThe image translation task and the corresponding results. Each task corresponds to the translation of 1 image into 1 target language.
└ └ idstring764c6e87eedcea90399a0dafcd572b71The ID to identify the image translation task.
└ └ statusstringCOMPLETEDThe translation status. Possible values: - PROCESSING: Translation is underway and has not yet completed. - COMPLETED: Translation has completed and results are ready. - FAILED: Translation did not complete due to an error.
└ └ fail_reasonstringThe reason why the translation task failed.
└ └ target_languagestringit-ITThe target language to translate the image into. Possible values: - de-DE - en-IE - es-ES - fr-FR - it-IT
└ └ original_imagestringThe original image to be translated.
└ └ └ uristringtos-useast2a-i-tulkllf4y5-euttp/748e39ecff38453ab8396a36a53dbb92The URI of the original image.
└ └ └ urlstringhttps://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xyz-sg/sample.jpegThe URL of the original image.
└ └ translated_imageobjectThe translated image.
└ └ └ uristringtos-maliva-i-o3syd03w52-us/53b55d6e8cdf1f315affa7e70b45707dThe URI of the translated image.
└ └ └ urlstringhttps://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xwc-sg/sample.jpegThe URL of the translated image.

#

§3 Event example

Event example

{
    "type": 46,
    "shop_id": "7494049642642441621",
    "tts_notification_id": "7327112393057371910",
    "timestamp": 1644412885,
    "data": {
        "translation_task": {
            "id": "764c6e87eedcea90399a0dafcd572b71",
            "status": "COMPLETED",
            "fail_reason": "",            
            "target_lang": "it-IT",
            "original_image": {
                "uri": "tos-useast2a-i-tulkllf4y5-euttp/748e39ecff38453ab8396a36a53dbb92",
                "url": "https://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xyz-sg/sample.jpeg"
            },
            "translated_image": {
                "uri": "tos-maliva-i-o3syd03w52-us/53b55d6e8cdf1f315affa7e70b45707d",
                "url": "https://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xwc-sg/sample.jpeg"
            }
        }
    }
}
#