Create and Update Subscription

POST /api/v1_1/subscription/

post
Subscription

https://{domain}.customersuccessbox.com/api/v1_1/subscription
POST Subscription allow you to create or update a subscription.
Request
Response
Request
Headers
Authentication
required
string
Bearer {api_key}
Content-Type
required
string
application/json
Body Parameters
subscription_id
required
string
Unique identifier for subscription
account_id
required
string
Unique identifier for account
Response
200: OK
{
"success": true
}

Body example

Refer to available fields in Subscription Resource for attributes that can be set and updated for a subscription using this call.

Only those fields are allowed which aren't marked as Read-only.

{
"subscription_id": "sub-dsg3344",
"account_id": "ACME343rq"
}

CURL request example

curl --location --request POST "https://{domain}.customersuccessbox.com/api/v1_1/subscription" \
--header "Authorization: Bearer {api_key}" \
--header "Content-Type: application/json" \
--data "{
\"subscription_id\": \"sub-dsg3344\",
\"account_id\": \"ACME343rq\",
}"