Subscription revise throws 404

T0rstein
Contributor
Contributor

Hey guys

I'm getting a 404 Not found  on revising a subscription no matter what I do.

The url is completly fine and the subscription is active and exists which I can verify via curl.

Here is the post message

 

 

 

config: {
    url: 'https://api-m.sandbox.paypal.com/v1/subscriptions/I-RPP9CK87GUWH/revise',
    method: 'post',
    data: '{"plan_id":"P-2BK13766P5028840WMJCY4RA","quantity":100}',
    headers: {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'application/json',
      Authorization: 'Basic QWNSbFR1ZjVmME5yNFREczd5ZXZvWHBDeUxIbFFadUpYcjNEa3JNSjNxZWpaRXRWRUFXQWpkTWNTdlNmUExmTU9naEN5U0dTZ0N0NkM4NnM6RUFYdy1YUXdDbWlvcUNVUjRqWWlQN2Jld0xHREh4bXpnX1Z2WUkwVnFod3FaZEZsLU5JZXhUMTBBVG83cXljUWJJcWRxeGdUU0JBnM=',
      'Access-Control-Allow-Origin': '*',
      'User-Agent': 'axios/0.21.4',
      'Content-Length': 55
    },

 

 

And here is the Error

 

 

Error: Request failed with status code 404
    at createError (/workspace/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/workspace/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/workspace/node_modules/axios/lib/adapters/http.js:269:11)
    at IncomingMessage.emit (events.js:326:22)
    at IncomingMessage.EventEmitter.emit (domain.js:506:15)
    at endReadableNT (_stream_readable.js:1241:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {

 

 

 

 The request gets send via axios in node.js

I get a debug_id which doesn't show up in my business sandbox account.

 

Any help would be appreciated!

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.