# Paid-in-full event received

Paid-in-full event received

Outbound POST to the HTTPS callback registered by the merchant.

A fixed-price order opted into this event and reached its paid tolerance. It may arrive before or after the final settlement webhook. Deduplicate by id and fulfil each order once. Verify the body using the settlement webhook signature procedure.

## Parameters

- `X-Cadmos-Timestamp` (string, header, required, pattern ^\d+$). Unix seconds when this attempt was sent.
- `X-Cadmos-Signature` (string, header, required, pattern ^0x[0-9a-fA-F]{130}$). EIP-191 signature over `<X-Cadmos-Timestamp>.<id>.<sha256 hex of the body>`.

## Request body

`application/json`

[PaidEvent](https://cadmospay.com/developers/schemas/paid-event.md)

- `id` (string, required). 
- `type` (string, required, always order.paid). 
- `linkUuid` (string, required, pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$). 
- `externalReference` (string or null, required). 
- `amountUsd` (string, required, pattern ^\d+\.\d{2}$). Dollars and cents as a decimal string.
- `countedUsd` (string, required, pattern ^\d+\.\d{2}$). Dollars and cents as a decimal string.
- `leftUsd` (string, required, pattern ^\d+\.\d{2}$). Dollars and cents as a decimal string.
- `paid` (boolean, required, always true). 

```json
{
  "id": "paid-11111111-2222-4333-8444-555555555555",
  "type": "order.paid",
  "linkUuid": "11111111-2222-4333-8444-555555555555",
  "externalReference": "order-42",
  "amountUsd": "100.00",
  "countedUsd": "100.00",
  "leftUsd": "0.00",
  "paid": true
}
```

## Responses

### 2XX

Stored. Any other answer is retried.
