What's wrong with my call?

Hello. I have been trying all day long to get this Stripe API call to work, but still haven’t been able to. I think the issue has something to do with needing to send an object, which is something I’ve not done before.

Note: I know my Stripe API Connection and keys are correct, as other Stripe calls are working for me. Just not this one new call.

Stripe’s documentation to Create a Customer Session: Create a Customer Session | Stripe API Reference

My current call:

If anyone happens to see my (I assume simple) mistake, I’d really appreciate an assist. Thank you in advance!

Change your content-type to “application/x-www-form-urlencoded”

And instead of putting that JSON in the multi-line input, just add 2 parameters like this:

  • customer = customer_id
  • components[pricing_table][enabled] = true

Make sure “queryst.” is enabled for both.

3 Likes

In 5m what I have not been able to do all day long. Thank you so much! Worked like a charm.

1 Like