- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Request
#!/bin/bash curl -X POST -H "apiAccessKeyId: XXX" -H "apiSecretAccessKey: XXX" -H "Content-Type: application/json" -d '{ "ContractEffectiveDate": "2016-10-20", "CustomerAcceptanceDate": "2016-10-20", "Description": "---", "EffectiveDate": "2016-10-20", "Name": "Name", "TermType" : "EVERGREEN", "RenewalSetting" : "RENEW_TO_EVERGREEN", "RatePlanData": { "RatePlan": { "ProductRatePlanId": "2c92c0f85a4b3a23015a60178fa06b54" }, "RatePlanChargeData": [ { "RatePlanCharge": { "ProductRatePlanChargeId": "2c92c0f95a4b489a015a601f28592d44", } } ] }, "ServiceActivationDate": "2016-10-20", "SubscriptionId": "2c92c0f95ab2809f015ab35ac3d35510", "Type": "NewProduct", "Status" : "Completed" }' "https://rest.apisandbox.zuora.com/v1/object/amendment"
Response
{"Errors":[{"Code":"INVALID_VALUE","Message":"Bei der Änderung Neues Produkt: Neuer UVP darf nicht null sein und Basis-UVP muss null sein."}],"Success":false}
I don't know what the error means. Couldn't find an explanation in the documentation.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi @magicline,
Thanks for the information. The create Amendment call is quite old and does not work well. I recommend that you use amend call under ACTIONS section instead. Here is a sample call.
POST https://rest.apisandbox.zuora.com/v1/action/amend
{ "requests":[ { "AmendOptions":{ "GenerateInvoice":false, "ProcessPayments":false }, "Amendments":[ { "ContractEffectiveDate":"2017-03-10", "CustomerAcceptanceDate":"2017-03-10", "Description":"---", "Name":"Name", "RatePlanData":{ "RatePlan":{ "ProductRatePlanId":"2c92c0f85a4b3a23015a60178fa06b54" } }, "ServiceActivationDate":"2017-03-10", "Status":"Completed", "SubscriptionId":"2c92c0f95ab2809f015ab35ac3d35510", "Type":"NewProduct" } ], "PreviewOptions":{ "EnablePreviewMode":false } } ] }
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Amendment creation error "Neuer UVP darf nicht null sein"
Hi @magicline,
Can you please let me know your Company Name and the name of your Zuora sandbox?
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Amendment creation error "Neuer UVP darf nicht null sein"
Company name is the same as the sandbox name
SANDBOX Loyalty Systems GmbH
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi @magicline,
Thanks for the information. The create Amendment call is quite old and does not work well. I recommend that you use amend call under ACTIONS section instead. Here is a sample call.
POST https://rest.apisandbox.zuora.com/v1/action/amend
{ "requests":[ { "AmendOptions":{ "GenerateInvoice":false, "ProcessPayments":false }, "Amendments":[ { "ContractEffectiveDate":"2017-03-10", "CustomerAcceptanceDate":"2017-03-10", "Description":"---", "Name":"Name", "RatePlanData":{ "RatePlan":{ "ProductRatePlanId":"2c92c0f85a4b3a23015a60178fa06b54" } }, "ServiceActivationDate":"2017-03-10", "Status":"Completed", "SubscriptionId":"2c92c0f95ab2809f015ab35ac3d35510", "Type":"NewProduct" } ], "PreviewOptions":{ "EnablePreviewMode":false } } ] }
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √