Skip to main content

(46) Image translation completed

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. 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.

Event example

JSONWord Wrap

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