e-Próspera
Reference

Create a hosted checkout session

View as Markdown
POST
/api/v1/legal_entity_applications/{id}/checkout_session

Returns 409 with code payment_in_progress while an existing payment is being checked. Poll the application payment state before requesting another checkout.

Account deactivation revokes personal API keys, including Agent Keys, and OAuth authorizations. Account reactivation requires new API keys, including new Agent Keys, and consent; previously issued credentials remain invalid.

Authorization

standardApiKey
AuthorizationBearer <token>

Personal standard API key. Send it as Authorization: Bearer sk-... and never delegate it.

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/legal_entity_applications/497f6eca-6276-4993-bfeb-53cbbbba6f08/checkout_session" \  -H "Content-Type: application/json" \  -d '{    "redirectUrl": "http://example.com"  }'
{  "data": {    "property1": null,    "property2": null  },  "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec"}