Happy Business Starts Here

Highlighted
Valued Scholar

REST API delete subscription not working

I'm trying to use the DELETE method on subscriptions, as documented on https://www.zuora.com/developer/api-reference/#operation/Object_DELETESubscription. I keep getting a response "Request method 'DELETE' not supported"

 

I've tried DELETE on both https://rest.apisandbox.zuora.com/v1/subscriptions/{id} and https://apisandbox-api.zuora.com/rest/v1/subscriptions/{id}.

 

The response I get is: {
  "success": false,
  "processId": "7C500FEE24EE9FBC",
  "reasons": [
    {
      "code": 50000000,
      "message": "Request method 'DELETE' not supported"
    }
  ]
}

2 REPLIES 2
Master

Re: REST API delete subscription not working

Hi @leedm777

 

It is a simple mistake (but I also often make same type mistakes).
Endpoint URL contains an error:
https://rest.apisandbox.zuora.com/v1/object/subscription/{id}

Valued Scholar

Re: REST API delete subscription not working

That was it. Thanks!