更新订单状态
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
curl 'https://api.ycloud.com/v2/whatsapp/messages/sendDirectly' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: {{YOUR-API-KEY}}' \
-d '{
"from": "{{BUSINESS-PHONE-NUMBER}}",
"to": "{{CUSTOMER-PHONE-NUMBER}}",
"type": "template",
"template": {
"name": "order_status_template",
"language": {
"policy": "deterministic",
"code": "en_US"
},
"components": [
{
"type": "order_status",
"parameters": [
{
"type": "order_status",
"order_status": {
"reference_id": "<reference_id_value>",
"order": {
"status": "processing | partially_shipped | shipped | completed | canceled",
"description": "<OPTIONAL_DESCRIPTION>"
}
}
}
]
}
]
}
}'