Create a checkout for a subscription's open invoice
Creates a checkout that lets the customer pay the subscription's open invoice by card, for the invoice's amounts. The sale runs with 3D Secure and saves the card. The checkout takes no wallet and expires 24 hours after its creation, and its outcome reaches the organization's webhook endpoint as invoice and subscription events. While a checkout of the invoice still waits for payment details, the route answers 200 with that checkout and creates no other.
apiKeyAuthorizationBearer <token>An API key of the organization the request acts for, created in the dashboard and sent as "Authorization: Bearer ".
id*stringThe ID of the subscription
uuid"9b2e7c41-5d8a-4f3e-b6c1-0a4d2e8f7b19"A checkout of the open invoice that still waits for payment details
application/json- response
id*stringThe ID of the checkout that pays the subscription's open invoice. Its page posts the card to POST /checkout/{id}.
uuid"550e8400-e29b-41d4-a716-446655440000"curl -X POST 'https://api.rapidopagos.com/subscription/9b2e7c41-5d8a-4f3e-b6c1-0a4d2e8f7b19/checkout'{ "id": "550e8400-e29b-41d4-a716-446655440000"}Cancel a subscription POST
Cancels a subscription now or at the end of its current period, with who asked and why. A cancel at period end sets scheduledChange and canceledAt, and a second one replaces its initiator, reason and comment. A cancel deletes the saved card unless another subscription that is not canceled uses it. canceled is final.
Get an invoice GET
Retrieves an invoice of a subscription with its lines, its payments and their refunds.