Happy Business Starts Here

Re: How to create a RemoveProduct amendment via REST API

Highlighted
Zuora Support

How to create a RemoveProduct amendment via REST API

I'm trying to implement amend call via REST API.  The sample code does not cover RemoveProduct.  Does anyone know how the call should look like?



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Zuora Support

Re: How to create a RemoveProduct amendment via REST API

Here is a sample RemoveProduct amend call

 

POST https://rest.zuora.com/v1/action/amend

{
    "requests": [
        {
            "AmendOptions": {
                "GenerateInvoice": false,
                "InvoiceProcessingOptions": {},
                "ProcessPayments": false
            },
            "Amendments": [
                {
                    "ContractEffectiveDate": "2017-05-31",
                    "CustomerAcceptanceDate": "2017-05-31",
                    "Description": "Remove Product",
                    "Name": "Remove Product",
                    "RatePlanData": {
                        "RatePlan": {
                            "AmendmentSubscriptionRatePlanId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
                        }
                    },
                    "ServiceActivationDate": "2017-05-31",
                    "SubscriptionId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                    "Type": "RemoveProduct",
                    "Status": "Completed"
                }
            ],
            "PreviewOptions": {
                "EnablePreviewMode": true
            }
        }
    ]
}


If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

View solution in original post

1 REPLY 1
Highlighted
Zuora Support

Re: How to create a RemoveProduct amendment via REST API

Here is a sample RemoveProduct amend call

 

POST https://rest.zuora.com/v1/action/amend

{
    "requests": [
        {
            "AmendOptions": {
                "GenerateInvoice": false,
                "InvoiceProcessingOptions": {},
                "ProcessPayments": false
            },
            "Amendments": [
                {
                    "ContractEffectiveDate": "2017-05-31",
                    "CustomerAcceptanceDate": "2017-05-31",
                    "Description": "Remove Product",
                    "Name": "Remove Product",
                    "RatePlanData": {
                        "RatePlan": {
                            "AmendmentSubscriptionRatePlanId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
                        }
                    },
                    "ServiceActivationDate": "2017-05-31",
                    "SubscriptionId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                    "Type": "RemoveProduct",
                    "Status": "Completed"
                }
            ],
            "PreviewOptions": {
                "EnablePreviewMode": true
            }
        }
    ]
}


If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

View solution in original post