Webhooks
Order status changed
Paytrim sends this request to your webhook URL every time the status of an order changes. Set the URL in your project settings, or per order with webhook_url.
The webhook doesn't contain the status: retrieve the order and act on the status in that response. Respond with 200 OK within 4 seconds. After a failed delivery, Paytrim retries every 2 minutes, up to 10 attempts. See Webhooks.
application/json- body
event*"status_changed"Type of event. status_changed means the status of the order changed.
Value in
"status_changed"order_id*stringID of the order that changed.
Format
uuidproject_id*stringID of the project the order belongs to.
Format
uuidYou've received the webhook. The response body is ignored.
Example Requests
POST
/statusChanged