Billing checkout sessions
billing.contract.v1.CheckoutSessionService/CreateCheckoutSession (35-contracts.md, Checkout session and API Surface). The client's server creates a session for a Customer or a subject; the checkout element confirms it through /v1/me/billing. success_url and cancel_url must be on one of the instance's app origins (billing-svc docs/questions.md, P71).
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
A CheckoutSession object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/checkout-sessions'{ "id": "string", "object": "string"}billing.contract.v1.CheckoutSessionService/GetCheckoutSession (35-contracts.md, Checkout session and API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
checkout_session_id*stringid
A CheckoutSession object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X GET 'https://api.us.pontive.com/v1/billing/checkout-sessions/string'{ "id": "string", "object": "string"}billing.contract.v1.CheckoutSessionService/ExpireCheckoutSession (35-contracts.md, Checkout session and API Surface). An open session becomes expired.
BearerAuthAuthorization<token>Access token as "Bearer "
checkout_session_id*stringid
X-Idempotency-Key?stringIdempotency key
A CheckoutSession object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/checkout-sessions/string/expire'{ "id": "string", "object": "string"}