Create a Link checkout session
Owner only. credits is limited to 100 or 500 (i.e. $1.00 or $5.00 at 1 credit = $0.01). Requires an Idempotency-Key.
POST
/v1/payments/checkoutAuthorization
AuthorizationBearer token (JWT) · headerrequiredClerk human owner session JWT; iss must equal the configured Clerk issuer and the identity must be a human (not agent) owner with a verified email.
or
AuthorizationOAuth2 access token · headerrequiredScopes:
agentsub:ownerHeader parameters
Idempotency-KeystringrequiredRequired only where this parameter is listed. Same payload/key recovers prior operation; secret replays omit plaintext.
matches ^[A-Za-z0-9._:-]{1,200}$
Request body
requiredapplication/jsonagentIdstringrequiredmin length 1 · max length 200
creditsintegerrequiredAllowed:
100500Responses
200
Checkout session (hosted Link approval URL)
object400
invalid_input or idempotency_required payment error
codestringrequiredAllowed:
owner_requiredagent_mismatchidempotency_requiredinvalid_inputstripe_signature_requiredpayment_unavailablestatusintegerrequired403
owner_required when called with an agent token
codestringrequiredAllowed:
owner_requiredagent_mismatchidempotency_requiredinvalid_inputstripe_signature_requiredpayment_unavailablestatusintegerrequired503
payment_unavailable
codestringrequiredAllowed:
owner_requiredagent_mismatchidempotency_requiredinvalid_inputstripe_signature_requiredpayment_unavailablestatusintegerrequired