Plan an invoice's installments
Creates (or replaces) the invoice's payment plan: an ordered set of installments, each collectable via a hosted checkout. The plan total may not exceed the invoice total.
Creates (or replaces) the invoice's payment plan: an ordered set of installments, each collectable via a hosted checkout. The plan total may not exceed the invoice total.
Authorization
bearerAuth payments:createA gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).
In: header
Scope: payments:create
Path Parameters
Header Parameters
Optional. Send a unique key per logical operation to make retries safe: a retry with the same key replays the stored success for 14 days instead of re-running the write. Reusing a key with a different body returns 400.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Plan an invoice's installments (deposit + scheduled payments).
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
{ "data": [ { "id": "string", "invoice_id": "string", "sequence": -9007199254740991, "label": "string", "amount_cents": -9007199254740991, "due_date": "string", "status": "scheduled", "payment_id": "string", "auto_charge_method_id": "string", "auto_charge_attempted_at": "string", "auto_charge_error": "string", "reminder_sent_at": "string", "created_at": "string", "updated_at": "string" } ], "next_cursor": "string"}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}