Checkout sessions

Create a checkout session

Creates a hosted checkout link over the offers named, each once. It is created active.

Authorization

bearer charges:write
AuthorizationBearer <token>

A v1 API key; the scope named is the one the route needs.

In: header

Scope: charges:write

Header Parameters

Idempotency-Key*string

Names the act so a retry under it lands on the stored answer (idempotency-key).

Length1 <= length <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

POST
/v1/checkout-sessions
curl -X POST "https://example.com/v1/checkout-sessions" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "offerIds": [      "e3274ec7-e146-4ca5-a790-b89b323a349a"    ]  }'
{  "id": "string",  "liveMode": true,  "name": "string",  "url": "http://example.com",  "offerIds": [    "string"  ],  "status": "string",  "createdAt": "2019-08-24T14:15:22Z"}