Syndai Docs

Create a credit pack payment link

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

A payment link for one credit pack (pack_key from GET /purchases/packs). Nothing is charged until a person pays on checkout_url before expires_at. A subscriber pays in the subscription's currency; otherwise country (ISO alpha-2 billing country) picks it. 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}$
pack_key*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/pack-checkout' \  -H 'Content-Type: application/json' \  -d '{  "country": "string",  "pack_key": "string"}'
Example Response
{  "checkout_url": "string",  "expires_at": "2019-08-24T14:15:22Z"}
Was this page helpful?