API reference
Create an AI credit checkout
POST
/v1/billing/current/ai-credits/checkoutsAuthorization
bearerAuth AuthorizationBearer <token>
OAuth2 access token issued by Ecomiq Auth.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/v1/billing/current/ai-credits/checkouts" \ -H "Content-Type: application/json" \ -d '{ "packCode": null }'{ "sessionId": "string", "packCode": "string", "credits": 0, "baseAmount": 0.1, "discountRate": 0.1, "discountAmount": 0.1, "amount": 0.1, "currencyCode": "string", "paymentProvider": "string", "checkoutUrl": null, "checkout": null}