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

Comprar plan de facturación

POST/v1/billing/current/plan-purchases

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/plan-purchases" \  -H "Content-Type: application/json" \  -d '{    "plan": "none"  }'
{  "id": "string",  "currentPlan": "none",  "requestedPlan": "none",  "currentPrice": 0.1,  "requestedPrice": 0.1,  "amountDue": 0.1,  "creditAmount": 0.1,  "currentBillingInterval": "string",  "billingInterval": "string",  "currencyCode": "string",  "status": "pending",  "requiresManualApproval": true,  "paymentCheckoutRequired": true,  "paymentProvider": null,  "paymentCheckoutId": null,  "paymentCheckoutUrl": null,  "checkout": null,  "effectiveOn": null,  "appliedOn": null,  "createdOn": "2019-08-24T14:15:22Z",  "updatedOn": null}