Update order status
Before updating the order status
Before updating the order status, make sure the order has been paid. YCloud will push you the paid status via this webhook.
You will receive updates when the status of the user-initiated transaction changes. It occurs when the payment status changes to captured
(when the payment is successfully completed), or pending
(when the user attempts but has yet to receive a successful transaction signal).
Sample:
Order status enumeration value
pending
User has not successfully paid yet
processing
User payment authorized, merchant/partner is fulfilling the order, performing service, etc.
partially-shipped
A portion of the products in the order have been shipped by the merchant
shipped
All the products in the order have been shipped by the merchant
completed
The order is completed and no further action is expected from the user or the partner/merchant
canceled
The partner/merchant would like to cancel the order_details
message for the order/invoice. The status update will fail if there is already a successful
or pending
payment for this order_details
message
How to notify customers about changes in order status?
You can notify customers by sending an Order Status Updates template when an order is comfirmed or shipped.
e.g. When an order has been shipped, you can send an Order Status Updates template to the customer, informing them about the updated status.
Create order status update template
The prerequisite is that you have linked your payment account.
Create via api
api doc: https://docs.ycloud.com/reference/whatsapp_template-create
create example: https://docs.ycloud.com/reference/whatsapp-template-creation-examples#order-status-template
Create on YCloud
Visit https://www.ycloud.com/console/#/app/dashboard/template
Send Order status updates message
api: https://docs.ycloud.com/reference/whatsapp_message-send-directly
example:
Last updated