SET API · Invoices
Match a payment by hand
POST/v1/payments/{id}/match
Matches an unmatched payment to an open invoice paid to the same address or account. Raises payment.matched and moves the invoice. Card payments are matched only through their payment link.
Path parameters
idstringrequired- The payment's id.
Body
invoicestringrequired- An open or short invoice (
inv_…).
Errors
404 payment_unknown404 invoice_unknown409 payment_matched409 payment_card409 invoice_settled409 invoice_elsewhere409 amount_unknown403 invoices_merchant_only401 api_key_required401 api_key_invalid401 api_key_wrong_mode401 api_key_expired403 scope_missing403 platform_api_paused429 rate_limited503 api_disabled