web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / API connection ERROR 400
Power Automate
Answered

API connection ERROR 400

(0) ShareShare
ReportReport
Posted on by 5

Hello Everyone, today I'm trying to connect API but I received an error.  if I use postman , it works perfectly, but on power automate i got this error below. 

{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-307db740e83c871f8a6917977df830c4-747a40cf6304fa61-00","errors":{"$":["'%' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0."],"orders":["The orders field is required."]}} 

 

postman.pngpowerautomateAPI.png

 

do you know what I'm doing wrong. 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    i. At first check without any PAD variable so that the % sign will not interrupt anywhere.

     

    ii. try giving 268860 in quotes "268860". I know it must have been an integer and that is why you chose that way. But always worth a try. Never know why sometimes certain things work the wrong way :).

     

    iii. Try disabling "Encode request body" 

    https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/web#invokewebservice...

    If already disabled then try enabling

     

    iv. remove the [ square brackets in the request body and check only with curly { braces

  • Verified answer
    srjohny Profile Picture
    24 on at

    I've found the issue, In advance menu I must turn off the encode request Body

  • VJR Profile Picture
    7,635 on at

    so its working for you with option iii. 🙂

    How is it going with @jsantos82 ?

  • jsantos82 Profile Picture
    5 on at

    Worked with turning of encode request body

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard