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