Create a plan payment link
POST
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.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id?|nullapplication/json- body
country*stringMatch
^[A-Z]{2}$interval*stringValue in
"month""year"plan_code*stringDocument created, URL follows
application/json- response
checkout_url*stringexpires_at?|nullcurl -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"}