Order Decisions

Order decision callbacks allow you to send a request to your order management system when you approve or reject orders within the Ravelin dashboard. Your order management system can then either accept or cancel the order.

To configure order decision callbacks, contact us and provide us with your callback URL and an optional token.

Further information about order decisions in the Ravelin dashboard can be found in our Help Centre.

Callback format

Order decision callbacks are sent in the following format:

POST https://your-order-decisions-callback-url.com HTTP/1.1
Authorization: token YOUR_AUTH_TOKEN_OPTIONAL
Content-Type: application/json; charset=utf-8

{
  "orderId": "123456789",
  "label": "APPROVED",
  "reviewer": {
    "name": "Thomas Anderson",
    "email": "t.anderson@matrix.com"
  },
  "timestamp": "2020-01-23T17:32:58Z"
}

Show all
timestamp string

The time at which the order decision was completed.

orderId string

The ID of the order that was reviewed.

label string

The label applied to the order.

One of:

  • APPROVED
  • PENDING
  • REJECTED
reviewer object

The individual who reviewed the order.

Show definition

Feedback