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

Request Body

application/json
  1. body
event*"status_changed"

Type of event. status_changed means the status of the order changed.

Value in"status_changed"
order_id*string

ID of the order that changed.

Formatuuid
project_id*string

ID of the project the order belongs to.

Formatuuid

Response Body

You've received the webhook. The response body is ignored.

Example Requests

POST/statusChanged