Create and Update Subscriptions

POST /api/v1_1/subscriptions/

post
Subscriptions

https://{domain}.customersuccessbox.com/api/v1_1/subscriptions
POST Subscriptions allow you to create and/or update a batch of subscriptions in a single request. Our recommendation for batch size is to limit each batch to a maximum of 200 records.
Request
Response
Request
Headers
Authorization
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 an Account using this call.

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

[{
"subscription_id": "sub-dsg3344",
"account_id": "ACME343rq"
},
{
"subscription_id": "sub-fsg3564",
"account_id": "ROBUSTO536fg"
},
{
"subscription_id": "sub-fsg2654",
"account_id": "BREW536fg"
}]

CURL request example

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