Gallery Platform API
Reference

Collect an installment

Mints a hosted Stripe Checkout link for a single installment's amount and returns its URL. The webhook marks the installment paid when it settles.

POST
/gallery/invoices/{id}/payment-schedule/{scheduleId}/collect

Mints a hosted Stripe Checkout link for a single installment's amount and returns its URL. The webhook marks the installment paid when it settles.

Authorization

bearerAuth payments:create
AuthorizationBearer <token>

A gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).

In: header

Scope: payments:create

Path Parameters

id*string
scheduleId*string

Header Parameters

Idempotency-Key?string

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.

Mint a hosted Stripe Checkout link for a single installment.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "id": "string",  "invoice_id": "string",  "stripe_session_id": "string",  "stripe_payment_intent_id": "string",  "url": "string",  "status": "open",  "amount_cents": -9007199254740991,  "currency": "string",  "expires_at": "string",  "created_at": "string",  "updated_at": "string"}