English
Get checkout session url for a space
cURL
curl --request POST \ --url http://127.0.0.1:3000/api/space/{spaceId}/billing/subscription/checkout \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "priceId": "<string>", "quantity": 123, "successUrl": "<string>", "cancelUrl": "<string>", "isTrial": true, "clientReferenceId": "<string>" } '
{ "url": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Returns checkout session url about a space.
Was this page helpful?