Create a Stripe Checkout Session for a one-time credit top-up
post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
product_codestring · max: 255Required
success_urlstring · uri · max: 2048Required
cancel_urlstring · uri · max: 2048Required
Responses
200Success
application/json
messageconst: Checkout session created successfully.Required
dataarray · min: 1 · max: 1Required
metaany ofRequired
or
stringOptional
linksstringRequired
401
Unauthenticated
application/json
404Error
application/problem+json
422
Validation error
application/json
500Error
application/problem+json
post/credits/top-up
POST /your-tenant/api/v1/credits/top-up HTTP/1.1
Host: plan.claret.app
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 94
{
"product_code": "text",
"success_url": "https://example.com",
"cancel_url": "https://example.com"
}{
"message": "text",
"data": [],
"meta": [],
"links": "text"
}Last updated
Was this helpful?