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

400 bad request when trying to updateSubscriptionΒ #14

@developeratul

Description

@developeratul

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 ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions