POST
/
subscriptions
/
{id}
/
preview
curl --request POST \
  --url https://api.smokeball.com/subscriptions/{id}/preview \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json-patch+json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "tierId": "8d074e85-4d95-4d9a-8a63-187719470d49",
  "addOnIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "promotionId": "<string>",
  "interval": "Monthly"
}'
{
  "total": 1899,
  "subTotal": 1000,
  "tax": 100,
  "preTaxCredit": 200,
  "quantity": 3,
  "lineItems": [
    {
      "product": {
        "id": "<string>",
        "href": "<string>",
        "relation": "<string>",
        "method": "GET"
      },
      "description": "<string>",
      "interval": "<string>",
      "amount": 109,
      "tax": 10.9,
      "preTaxCredit": 200,
      "quantity": 3
    }
  ],
  "taxRates": [
    {
      "externalId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "country": "<string>",
      "state": "<string>",
      "rate": 123,
      "behaviour": 0,
      "createdDate": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

x-api-key
string
header
required
Authorization
string
header
required

Path Parameters

id
string
required

The unique identifier of the subscription

Body

The subscription upcoming request

The body is of type object.

Response

200
application/json

Upcomimg subscription response

The response is of type object.