Skip to main content
Answered

Help with a custom action POST API request (Stripe)

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

 

View original
Did this topic help you find an answer to your question?

1 reply

  • Author
  • New Participant
  • 1 reply
  • 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

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings