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.
Changed onCreate 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
- Base URLhttps://core.quidkey.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking