Esenda
Payouts

Payouts

List payouts, get a payout by ID, view a payout's items, and download statements

Funds are paid out weekly into each payout route, separately for each partner.

Each payout has one document: the statement of its transactions, fees and refunds, which is also the VAT invoice for the esenda fees deducted. It's available as PDF through the API.

The API returns the same figures, so the bank deposit, the esenda statement and the partner's records match:

net_amount = gross_amount - fee_amount - refund_amount

All payout endpoints take an Authorization: Bearer <ACCESS_TOKEN> header and use the production or sandbox base URL from API conventions.

List payouts

GET /v2/partner/payouts/{shortcode}

Lists the organisation's payouts for the calling partner, newest first.

Path parameters

ParameterTypeRequiredDescription
shortcodeStringYesThe organisation's shortcode.

Query parameters

All parameters are optional.

ParameterTypeDescription
payout-route-idUUIDOnly payouts on this payout route.
statusStringscheduled, paid or failed.
payout-date-fromStringPayouts on or after this date, in YYYY-MM-DD format.
payout-date-toStringPayouts on or before this date, in YYYY-MM-DD format. Not before payout-date-from.
limitIntegerMaximum number of payouts to return, from 1 to 100. Defaults to 10.
cursorStringOpaque cursor to retrieve the next page.

Pagination

This endpoint uses cursor-based pagination, in the same way as the orders list. The cursor encodes the original filters, so payout-route-id, status, payout-date-from and payout-date-to must not be repeated when paginating. Providing any of them alongside a cursor returns a validation error. Only limit can be combined with cursor.

Response

FieldTypeDescription
next_cursorString | nullPass as the cursor query parameter to retrieve the next page. null when there are no further results.
dataArrayPayouts returned by the request, newest first. Each is a payout object.
{
  "next_cursor": "eyJjdXJzb3JfcGF5b3V0X2RhdGUiOi...",
  "data": [
    {
      "payout_id": "001a7b06-6ca9-4c05-8d6a-df5d9d9db7e3",
      "payout_route_id": "8a1f3c52-6b0e-4f0e-9d4f-2f1c7f5b9a10",
      "status": "paid",
      "period_from": "2026-11-02",
      "period_to": "2026-11-08",
      "payout_date": "2026-11-10",
      "currency": "GBP",
      "gross_amount": 1250000,
      "fee_amount": 18750,
      "refund_amount": 10000,
      "net_amount": 1221250,
      "invoice_number": "ESN-2026-000123"
    }
  ]
}

Payout object

FieldTypeDescription
payout_idStringPayout identifier.
payout_route_idStringThe payout route paid into.
statusStringscheduled, paid or failed.
period_fromStringFirst day covered, in YYYY-MM-DD format.
period_toStringLast day covered, in YYYY-MM-DD format.
payout_dateStringThe day the funds are sent, in YYYY-MM-DD format.
currencyStringThe payout's currency, for example GBP.
gross_amountIntegerTotal of the payments in the payout, in pence.
fee_amountIntegeresenda fees deducted, in pence.
refund_amountIntegerRefunds deducted, in pence.
net_amountIntegerThe amount paid into the bank account, in pence.
invoice_numberStringThe number on the payout's statement and VAT invoice.

Get payout by ID

GET /v2/partner/payouts/{shortcode}/{payout_id}

Returns a single payout with its totals. There's no request body.

Path parameters

ParameterTypeRequiredDescription
shortcodeStringYesThe organisation's shortcode.
payout_idUUIDYesThe payout to return.

Response

A payout object.

{
  "payout_id": "001a7b06-6ca9-4c05-8d6a-df5d9d9db7e3",
  "payout_route_id": "8a1f3c52-6b0e-4f0e-9d4f-2f1c7f5b9a10",
  "status": "paid",
  "period_from": "2026-11-02",
  "period_to": "2026-11-08",
  "payout_date": "2026-11-10",
  "currency": "GBP",
  "gross_amount": 1250000,
  "fee_amount": 18750,
  "refund_amount": 10000,
  "net_amount": 1221250,
  "invoice_number": "ESN-2026-000123"
}

Returns 404 Not Found if the payout doesn't exist for this organisation or isn't on one of the calling partner's payout routes.

Payout items

GET /v2/partner/payouts/{shortcode}/{payout_id}/items

Returns one row for each line-item payment or refund in the payout. The rows add up to the payout's totals. There's no request body.

Path parameters

ParameterTypeRequiredDescription
shortcodeStringYesThe organisation's shortcode.
payout_idUUIDYesThe payout to return.

Query parameters

ParameterTypeRequiredDescription
limitIntegerNoMaximum number of items to return, from 1 to 100. Defaults to 10.
cursorStringNoOpaque cursor to retrieve the next page.

Pagination works the same way as the orders list.

Response

FieldTypeDescription
itemsArrayThe payout's items. See payout item.
next_cursorString | nullPass as the cursor query parameter to retrieve the next page. null when there are no further results.

Payout item

Each row in items has these fields:

FieldTypeDescription
typeStringpayment or refund.
order_idStringThe related order.
line_item_idStringThe related line item.
line_item_external_idStringThe line item's external_id, as sent on the checkout session.
refund_idString | nullSet on refund rows.
gross_amountIntegerAmount in pence. For refunds, the amount refunded.
fee_amountIntegerThe line item's fee share. 0 on refund rows.
net_amountIntegerNet amount in pence. Negative on refund rows.
created_atStringISO 8601 timestamp.

This example shows two rows of items only.

{
  "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0xMS0wNlQxNTo0MDowMFoifQ",
  "items": [
    {
      "type": "payment",
      "order_id": "ord_7d41",
      "line_item_id": "li_8f2a",
      "line_item_external_id": "INV-10432-1",
      "refund_id": null,
      "gross_amount": 115000,
      "fee_amount": 1725,
      "net_amount": 113275,
      "created_at": "2026-11-03T09:02:00Z"
    },
    {
      "type": "refund",
      "order_id": "ord_5a90",
      "line_item_id": "li_77c1",
      "line_item_external_id": "INV-10388-3",
      "refund_id": "rf_19ab",
      "gross_amount": 10000,
      "fee_amount": 0,
      "net_amount": -10000,
      "created_at": "2026-11-06T15:40:00Z"
    }
  ]
}

Payout statement

GET /v2/partner/payouts/{shortcode}/{payout_id}/invoice?format=pdf

Returns the payout's statement and VAT invoice as a file. The figures match the payout items exactly.

Path parameters

ParameterTypeRequiredDescription
shortcodeStringYesThe organisation's shortcode.
payout_idStringYesThe payout to return a statement for.

Query parameters

ParameterRequiredDescription
formatYespdf.

Response

The file, as application/pdf.

See errors for the error response format.

On this page