Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

400 bad request when trying to updateSubscription #14

Open
developeratul opened this issue May 14, 2023 · 2 comments
Open

400 bad request when trying to updateSubscription #14

developeratul opened this issue May 14, 2023 · 2 comments

Comments

@developeratul
Copy link

When I am trying to update a subscription in this way,

await client.updateSubscription({
  id: user.subscriptionId,
  variantId: `${user.variantId}`,
  productId: process.env.LEMONS_SQUEEZY_PRODUCT_ID as string,
  cancelled: true,
});

I am getting 400 bad request as a response. The client is set up properly using valid API keys and is certain that all the values being used in the object are also valid.

What is causing this issue? and let me know if it requires more information and context.

Pardon my mistakes. I am writing an actual GitHub issue for the first time ;)

@Parth971
Copy link

Please send response whenever writing for errors.

@developeratul
Copy link
Author

The response only contains a status code of 400 and a message of Bad request. Nothing else.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants