For the complete documentation index, see llms.txt. This page is also available as Markdown.

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
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?