# order.in_review

An order was held for review before fulfilment.

Sent as `POST` to each of your endpoints subscribed to `order.in_review`. Verify `X-Webhook-Signature` before trusting the body; `X-Webhook-Delivery` is the same across retries of one event, so use it to deduplicate.

## Headers

| Header | Value |
|---|---|
| `X-Webhook-Signature` | `t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with the endpoint secret>`. Recompute over the raw body, compare in constant time and reject when \|now - t\| is above 300 seconds. |
| `X-Webhook-Event` | The event type, the same as `type` in the body. |
| `X-Webhook-Delivery` | The event id (`evt_…`), stable across retries and replays of the same event. |

## Payload

The body is the delivery envelope: `id`, `type` (`order.in_review`), `version`, `occurred_at`, `merchant_id` and `data`.

| Field | Type | Required | Description |
|---|---|---|---|
| `data.session_id` | string | yes |  |
| `data.order_id` | string or null | yes | the order id the session reserved; the order row is written only at the capture |
| `data.charge_id` | string | yes |  |
| `data.merchant_id` | string | yes |  |
| `data.amount_cents` | integer | yes |  |
| `data.currency` | string | yes |  |
| `data.customer_ref` | string or null | yes | the merchant's own customer reference |
| `data.price_currency` | string or null | no | The currency the merchant set the price in; equal to currency unless the buyer paid in another one |
| `data.price_amount_cents` | integer or null | no | The amount in the price currency, in its smallest unit |
| `data.rate_id` | string or null | no | The exchange rate the price was converted with (fxr_); null for equal currencies or a fixed amount in the buyer's currency |

## Example

```json
{
    "id": "evt_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
    "type": "order.in_review",
    "version": 1,
    "occurred_at": "2026-10-21T14:05:00.000Z",
    "merchant_id": "mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
    "data": {
        "session_id": "cks_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "order_id": "ord_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "charge_id": "chg_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "merchant_id": "mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "amount_cents": 3139,
        "currency": "USD",
        "customer_ref": "cus_Merchant-001",
        "price_currency": "USD",
        "price_amount_cents": 3139,
        "rate_id": null
    }
}
```

Verify the signature before trusting the body and deduplicate on `X-Webhook-Delivery`: see [Webhooks](http://docs.staging.regoria.com/guides/webhooks).
