Answered

Help with a custom action POST API request (Stripe)

  • 12 September 2023
  • 1 reply
  • 90 views

I’m creating a Custom Action using Stripe’s APIs. This is a POST request and every time I get this error message:

{
"error": {
"message": "One of the following params should be provided for this request: payment_intent or charge.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_RDcf26d1WJ3G95?t=1694494393",
"type": "invalid_request_error"
}
}

Here’s what the request and headers look like:

And here’s what the request body looks like, which you can see includes the “charge” parameter:

 

icon

Best answer by Allen Lai 15 September 2023, 08:20

View original

1 reply

I was able to figure it out. Apparently I don’t need the { } characters and the request body should be formatted as simply:

charge=12345

 

Reply