# Declare a debt.

`POST https://api.wajub.com/beneficiaries/{id}/receivables`

## Path parameters

- `id` (string, required): The beneficiary `id`.

## Body (application/json)

- `amount` (number, required): What the seller owes back, in the major unit of `currency`.
- `currency` (string, nullable): Defaults to XAF.
- `reference` (string, required): Your own identifier for this debt, usually the refunded order.
- `refund` (string, nullable): The refund it comes from, if it went through Wajub.
- `description` (string, nullable): A label for the debt, up to 255 characters.

## Responses

- `200`: Same reference sent again
- `201`: Debt recorded
- `404`: Unknown beneficiary
- `422`: Reference already used for another debt

## Example response (200)

```json
{
  "code": 200,
  "status": "OK",
  "message": "Receivable already recorded",
  "receivable": {
    "id": "rcv_Yt6Dn2Wq9Lc4Hs7Mb1Kx",
    "reference": "order-9981-refund",
    "amount": 12500,
    "outstanding": 12500,
    "status": "open"
  }
}
```
