Happy Business Starts Here

REST API delete subscription not working

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"
    }
  ]
}

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
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}

View solution in original post

2 REPLIES 2
Highlighted
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}

View solution in original post

Highlighted
Valued Scholar

Re: REST API delete subscription not working

That was it. Thanks!