Syndai Docs

Create a plan payment link

POST
/api/v1/external/coding/purchases/subscription-checkout

A payment link for the workspace's first paid plan (plan_code from GET /purchases/tiers, interval month or year, country the ISO alpha-2 billing country that picks the price band). Nothing is charged until a person pays on checkout_url. A workspace already on a paid plan is refused: changing plan charges the saved card, so a person does it on the Billing page. Needs coding:billing:checkout.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Query Parameters

customer_id?|null

Request Body

application/json
  1. body
country*string
Match^[A-Z]{2}$
interval*string
Value in"month""year"
plan_code*string

Response Body

Document created, URL follows

application/json
  1. response
checkout_url*string
expires_at?|null
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/external/coding/purchases/subscription-checkout' \  -H 'Content-Type: application/json' \  -d '{  "country": "string",  "interval": "month",  "plan_code": "string"}'
Example Response
{  "checkout_url": "string",  "expires_at": "2019-08-24T14:15:22Z"}
Was this page helpful?