Charge a payment instrument against an invoice
Charges a payment instrument for all or part of the remaining balance. The returned allocation is pending: the invoice balance does not move until the processor reports a capture, so amountPaid and status in this response still reflect the pre-charge state. Idempotent by idempotency key per invoice — a replay returns the existing allocation without charging again.
Authorizations
Merchant API key bearer token. Legacy wire prefixes api_key_ and api_ are also accepted.
Path Parameters
Invoice TypeID (inv_...) to charge.
"inv_01hxy8m1nqk9g3x3y3p0azq2va"
Body
Charge payload with idempotency key, merchant scope, payment instrument, and optional partial amount.
Idempotency key for safe retries of the charge per invoice.
1Merchant TypeID (mer_...) used for authorization scope.
Payment instrument TypeID (pi_...) to charge. Must belong to the invoice's customer and be active.
Minor-unit amount to charge. Defaults to the full remaining balance. Must not exceed it.
0 < x <= 9007199254740991