Examples
Bill Recurring: Subscription Activate
Here is a sample subscription activate message without the header (For more information on the fields, see the API and SDK Overview section above):
Request
{ "operation": "SubscriptionActivate", "subscriptionId":"US-6f3092e5-0326-42b7-a107-416234d548d8", "productId": "subscriptionA", "userId": "12345" }
Response
{ "response": "OK" }
Bill Recurring: Subscription Activate for Team product
Here is a sample subscription activate message without the header (For more information on the fields, see the API and SDK Overview section above):
Request
{ "operation": "SubscriptionActivate", "subscriptionId":"US-6f3092e5-0326-42b7-a107-416234d548d8", "productId": "subscriptionA", "userId": "12345", "subscriptionGroupId": "ebd4555c-4dda-11e6-820c-5065f33e6360", "numberOfSubscriptions": 4 }
Response
{ "response": "OK" }
Bill Recurring: Subscription Deactivate
Here is a sample subscription deactivate message without the header (For more information on the fields, see the API and SDK Overview section above):
Request
{ "operation": "SubscriptionDeactivate", "subscriptionId":"US-6f3092e5-0326-42b7-a107-416234d548d8", "period": "FREE_TRIAL", "reason": "CUSTOMER_SERVICE_REQUEST" }
Response
{ "response": "OK" }
Subscription Reassignment
Initial deactivate request when user reassign the subscription:
Request
{ "operation": "SubscriptionDeactivate", "subscriptionId": "b431b9de-05b2-11e6-b512-3e1d05defe78", "period": "REGULAR", "reason": "USER_REQUEST" }
Response
{ "response": "OK" }
Subsequent activate request when new user activates the subscription:
Request
{ "operation": "SubscriptionActivate", /*Always the same as the subscriptionId from deactivate request above*/ "subscriptionId": "b431b9de-05b2-11e6-b512-3e1d05defe78", "productId": "YOUR SKU HERE", "userId": "NEW USER ID THAT THIS SUBSCRIPTION HAS BEEN REASSIGNED TO" }
Response
Response: { "response": "OK" }