Credits

Purchase credits

Create a Stripe checkout session for purchasing credits

post/credits/purchase

Request

  • Base URL: https://us-central1-paymentgateway-ab783.cloudfunctions.net/api
  • URL: https://us-central1-paymentgateway-ab783.cloudfunctions.net/api/credits/purchase
  • Auth: HTTP bearer

Request body

appIdstring required
packageIdstring required
successUrlstring uri
cancelUrlstring uri

Example request

{
  "appId": "ai-caller",
  "packageId": "ai_caller_credits_500"
}

Response

Checkout session created

successboolean
sessionIdstring
urlstring

Changes

No recorded changes to this operation across all 1 revision of this API.