Question:
When Creating an Amend Action() via Rest API, we are noticing the below errors in the response:
"You do not have permission for this task. Please contact your company administrator for permission" or " No gateway information available to complete this operation".
Request1:
{
"requests": [
{
"Amendments": [
{
"ContractEffectiveDate": "2020-02-20",
"ServiceActivationDate": "2020-02-20",
"Description": "100 seats of product and flat fee for phone support",
"Name": "Add premium product",
"RatePlanData": {
"RatePlan": {
"ProductRatePlanId": "8a80c3406dccc405016e3faf2cxxxxxx"
},
"RatePlanChargeData": [
{
"RatePlanCharge": {
"ProductRatePlanChargeId": "8a80c0496dccc4120170396ec8xxxxxx",
"Quantity": 100
}
},
{
"RatePlanCharge": {
"ProductRatePlanChargeId": "8a80c0496dccc41201705cdaaaxxxxxx"
}
}
]
},
"Status": "Completed",
"SubscriptionId": "2c92a0fd6d8c715e016d8d75e1xxxxxx",
"Type": "NewProduct"
}
],
"PreviewOptions": {
"EnablePreviewMode": false
}
}
]
}
Response1:
{
"Code": "NO_PERMISSION",
"Message": "You do not have permission for this task. Please contact your company administrator for permission."
}
],
"Success": false
}
]
}
Request2:
{
"requests": [
{
"Amendments": [
{
"ContractEffectiveDate": "2014-05-01",
"ServiceActivationDate": "2014-05-01",
"CustomerAcceptanceDate": "2014-05-01",
"Description": "6510 - Business Bill Pay - FIS 2.0 Setup",
"Name": "Test - Add One-Time Business Bill Pay",
"RatePlanData": {
"RatePlan": {
"ProductRatePlanId": "2c92a0fe5b42d2b1015b490227xxxxxx"
},
"RatePlanChargeData": [
{
"RatePlanCharge": {
"ProductRatePlanChargeId": "2c92a0fe5b42d2ad015b490228xxxxxx",
"Quantity": 1
}
}
]
},
"Status": "Completed",
"SubscriptionId": "2c92a00866e7c5390166f58192xxxxxx",
"Type": "NewProduct"
}
],
"PreviewOptions": {
"EnablePreviewMode": false
}
}
]
}
Response2:
{
"results": [
{
"Errors": [
{
"Code": "INVALID_VALUE",
"Message": "No gateway information available to complete this operation."
}
],
"Success": false
}
]
}
Solution:
In this case, you will need to include AmendOptions to the call and configure it so that the amendment won't try to collect a payment, which is controlled by setting ProcessPayments set to 'false'.
{ "requests": [ { "Amendments": [ { "ContractEffectiveDate": "2020-02-20", "ServiceActivationDate": "2020-02-20", "Description": "100 seats of product and flat fee for phone support", "Name": "Add premium product", "RatePlanData": { "RatePlan": { "ProductRatePlanId": "8a80c3406dccc405016e3faf2cxxxxxx" }, "RatePlanChargeData": [ { "RatePlanCharge": { "ProductRatePlanChargeId": "8a80c0496dccc4120170396ec8xxxxxx", "Quantity": 100 } }, { "RatePlanCharge": { "ProductRatePlanChargeId": "8a80c0496dccc41201705cdaaaxxxxxx" } } ] }, "Status": "Completed", "SubscriptionId": "2c92a0fd6d8c715e016d8d75e1xxxxxx", "Type": "NewProduct" } ], "AmendOptions": { "GenerateInvoice": true, "ProcessPayments": false }, "PreviewOptions": { "EnablePreviewMode": false } } ] }
More on AmendOptions: https://knowledgecenter.zuora.com/DC_Developers/G_SOAP_API/F_SOAP_API_Complex_Types/amendOptions
... View more