Help with a custom action POST API request (Stripe) | Community
Skip to main content
Answered

Help with a custom action POST API request (Stripe)

  • September 12, 2023
  • 1 reply
  • 214 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:

 

Best answer by Allen Lai

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

 

1 reply

  • Author
  • New Participant
  • Answer
  • September 15, 2023

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