Saltar al contenido
Guías
Referencia de API
establebilling:manage

Crear checkout de créditos de IA

POST/v1/billing/current/ai-credits/checkouts

Autorización

bearerAuth
AutorizaciónBearer <token>

Token de acceso OAuth 2.0 emitido por Ecomiq Auth.

Ubicación: header

Cuerpo de la solicitud

application/json

Definiciones TypeScript

Usa esta definición en TypeScript.

Cuerpo de la respuesta

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}