Question

Nodejs REST API for deleting subscribers doesn't work correctly

  • 12 August 2022
  • 2 replies
  • 89 views

Userlevel 1
Badge +1

verbatim copy of code from the documentation:

 

const sdk = require('api')('@revenuecat/v4.0#1yz2c0m2sl5v5md8q');

sdk.auth('Bearer REVENUECAT_API_KEY');
sdk.deleteSubscriber({app_user_id: 'app_user_id'})
.then(res => console.log(res))
.catch(err => console.error(err));

produces this error:

Error: Sorry, `deleteSubscriber` does not appear to be a valid operation on this API.    at Proxy.<anonymous> (/workspace/node_modules/api/src/index.js:164:21)    at processTicksAndRejections (node:internal/process/task_queues:96:5) 

 


2 replies

Badge +3

I’m getting the same error, with subscribers:

Error: Sorry, `subscribers` does not appear to be a valid operation on this API.


Could it be something with the OpenAPI spec?

Badge +1

I’m also experiencing this issue with NodeJS. Anybody know what the issue is?

Reply