API documentation
Cash on delivery transfers
The money the courier collects from the recipient reaches you in batches. These routes tell you what was transferred to you, for which shipments, and what is still to be received.
How the money flows
The chain has three links: the courier collects the cash on delivery from the recipient, transfers it to Livrăria, and we transfer it to your account. The transfer is made in batches — a payout groups the cash on delivery amounts of several shipments, usually from the same courier and the same day.
For the full explanation of the process, with what you see in the app, see the cash on delivery guide.
The list of payouts
/payoutsBearer JWTIt returns only the payouts of the authenticated account — the filter is applied on the server, you cannot bypass it.
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
page / limit | number | optional | Pagination. |
status | PENDING | COMPLETED | CANCELLED | optional | COMPLETED means transferred. |
startDate / endDate | string (ISO 8601) | optional | Time range. |
search | string | optional | Partial, case-insensitive match on docId or on reference. |
amountMin / amountMax | number | optional | Limits on the payout amount, in RON, inclusive. They can also be used separately. |
{
"data": [
{
"id": "4c8e1f03-9a27-4b65-8d10-3e7f2a6b5c94",
"status": "COMPLETED",
"amount": 1248.5,
"currency": "RON",
"docId": "COD-BATCH-27-10",
"reference": "Transfer ramburs Dpd",
"transactionDate": "2026-10-27T10:12:00.000Z",
"createdAt": "2026-10-27T06:05:00.000Z",
"updatedAt": "2026-10-27T10:12:00.000Z",
"recipientUserId": "a334e842-...",
"recipient": {
"id": "7f1c...",
"email": "contact@firma.ro",
"name": "Firma Mea SRL",
"authProviderId": "a334e842-..."
},
"payoutItems": [
{
"id": "b6d2...",
"amount": 250,
"status": "COMPLETED",
"expeditionId": "9d1e5b77-...",
"description": "Ramburs AWB 81356295593",
"createdAt": "2026-10-27T06:05:00.000Z",
"updatedAt": "2026-10-27T10:12:00.000Z",
"expedition": {
"id": "9d1e5b77-...",
"awbNumber": "81356295593",
"trackingNumber": "81356295593",
"createdAt": "2026-10-28T09:05:12.000Z"
}
}
]
}
],
"meta": { "total": 1, "page": 1, "limit": 50, "totalPages": 1 }
}The fields of a payout
| Field | Type | Required | Description |
|---|---|---|---|
amount | number | always | The total of the batch, in RON. |
status | string | always | PENDING, COMPLETED or CANCELLED. |
docId | string | null | optional | The identifier of the courier’s settlement batch the amount comes from. |
transactionDate | string | null | optional | The date of the bank transfer. Missing as long as the payout has not left. |
payoutItems | array | always | One line per shipment, with amount, expeditionId and the expedition block carrying the AWB. This is where you find the link to your order. |
A single payout
/payouts/{id}Bearer JWTThe full detail of a payout. A payout of another account returns 403.
What is still to be received
/payouts/outstandingBearer JWTThe delivered cash on delivery shipments for which you have not yet received the money, plus the total.
{
"totalOutstanding": 1430.75,
"currency": "RON",
"count": 6,
"expeditions": [
{
"expeditionId": "9d1e5b77-...",
"awbNumber": "81356295593",
"trackingNumber": "81356295593",
"deliveryDate": "2026-10-29T11:34:00.000Z",
"amount": 250,
"recipientName": "Ion Popescu",
"recipientCity": "CLUJ-NAPOCA"
}
]
}This is the route to use for a “to collect” indicator in your own dashboard. In the app, the same data appears in COD payouts → To receive.
Export and documents
CSV
/payouts/exportBearer JWTAll your payouts, as a CSV file. It accepts the same filter parameters as the list.
/payouts/{id}/exportBearer JWTA single payout, with one line per shipment.
The settlement note
/payouts/{id}/settlement-noteBearer JWTThe PDF of the settlement note: the settlement date, one line per AWB with the amount transferred and the courier batch it comes from, the total transferred and the contractual clause that governs the transfer of cash on delivery.
| Code | What it means |
|---|---|
| 200 | The PDF of the note. |
| 400 | The payout is not completed. The note is issued only for COMPLETED payouts. |
| 404 | The payout does not exist. |
Need help?
If a collected amount does not appear in any payout line, send us the AWB and the delivery date.
Contact us