POST
/
v1
/
accounts
/
{accountId}
/
checkout
create a checkout session to upgrade from trial to paid plan
curl --request POST \
  --url https://api.sakari.io/v1/accounts/{accountId}/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "plan": "<string>",
  "commitment": 123,
  "frequency": "<string>",
  "name": "<string>",
  "email": "<string>",
  "address": {
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": {
      "code": "<string>",
      "flag": "<string>",
      "dialing": "<string>",
      "name": "<string>",
      "aliass": [
        "<string>"
      ],
      "continent": "<string>",
      "supported": true,
      "alphaNumericSenderId": true,
      "taxTypes": [
        {
          "type": "<string>",
          "name": "<string>",
          "example": "<string>"
        }
      ]
    },
    "postalCode": "<string>"
  },
  "tax": {
    "type": "<string>",
    "id": "<string>"
  },
  "segmentUnderstanding": true
}'
{
  "success": true,
  "data": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

accountId
string
required

Account to apply operations to

Query Parameters

success_url
string

after successful checkout redirect to this url

cancel_url
string

after cancelling checkout redirect to this url

Body

application/json

Response

200
application/json

successful operation

The response is of type object.