- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
I used the following REST APIs to update "Notes" field in a existing Subscription. But I am receiving following error messages.
can you help us on this ?
REST-API
https://rest.apisandbox.zuora.com/v1/subscriptions/{subscription-key}
Request object :
{ "notes": "update subscription notes here" }
This returns “Subscription api cannot be used when order is enabled.”
Later I referred the link - https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/AB_Orders_API_Migration_Guidance
Based on the guidance I used the following API which is also not successful.
REST API
https://rest.apisandbox.zuora.com/v1/orders
{ "existingAccountNumber": "XXXXXXX", "orderDate": "2022-05-22", "subscriptions": [ { "orderActions": [ { "createSubscription": { "subscriptionNumber": "A-S00000330", "notes": "update outbound model here", "terms": { "initialTerm": { "termType": "EVERGREEN" } } }, "type": "CreateSubscription" } ] } ] }
This returns “The subscription number A-S00000330 is already in use. Please enter another subscription number.”
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
Are you okay to update 'Notes' using Subscription Id?
If yes, you can use the below API.
REST API URL: https://rest.apisandbox.zuora.com/v1/action/update
Method: POST
Request Body
{ "objects": [ { "Id": "8ac6819b71a69a2b0171a775375a00df", "Notes": "Notes Updated" } ], "type": "Subscription" }
Response from Zuora
[ { "Success": true, "Id": "8ac6819b71a69a2b0171a775375a00df" } ]
Ref: https://www.zuora.com/developer/api-reference/#operation/Action_POSTupdate
Thanks,
Prem
Prem Anandh
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
Are you okay to update 'Notes' using Subscription Id?
If yes, you can use the below API.
REST API URL: https://rest.apisandbox.zuora.com/v1/action/update
Method: POST
Request Body
{ "objects": [ { "Id": "8ac6819b71a69a2b0171a775375a00df", "Notes": "Notes Updated" } ], "type": "Subscription" }
Response from Zuora
[ { "Success": true, "Id": "8ac6819b71a69a2b0171a775375a00df" } ]
Ref: https://www.zuora.com/developer/api-reference/#operation/Action_POSTupdate
Thanks,
Prem
Prem Anandh