Invoice
Admin
Create a draft invoice for a merchant over a (period, currency) window. Claims eligible transactions atomically; pre-settled fees produce an immediately_settled payment row.
Create a draft invoice for a merchant over a (period, currency) window. Claims eligible transactions atomically; pre-settled fees produce an immediately_settled payment row.
post/api/v1/admin/invoices
Request body
Example request
{
"currency": "GBP"
}Response
Created
Example response
{
"success": true,
"data": {
"invoice_number": "INV-202605-000001",
"payment_reference": "QK7L2M9X4P0R",
"currency": "GBP",
"total_amount": "1234.56",
"amount_paid": "0.00",
"outstanding_amount": "1234.56",
"transaction_count": 42,
"payments": [
{
"amount": "125.00",
"currency": "GBP"
}
],
"fx_rates": [
{
"source_currency": "GBP",
"rate": "0.85120000",
"provider": "openexchangerates"
}
]
}
}Changes
Changed in 2 of the 8 revisions of this API.11
- ○
endpoint added
endpoint-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 367 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲