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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Postman API - Path Parameters

(0) ShareShare
ReportReport
Posted on by 5

Hi, 

So I can get my api to work using Postman

But trying to replicate it in NAV is where i'm getting a 404 error.

There is a Path Parameter I need to pass 

pastedimage1659436664644v1.png

Within NAV I tried assigning a value to a variable 'order_id' thus giving me a url of

pastedimage1659436802059v2.png

Even tried passing it to the header

pastedimage1659437014207v4.png

is there a HttpwebRequest I'm missing ?

Many thanks in advance for any replies

I have the same question (0)
  • KTA Profile Picture
    1,200 on at
    RE: Postman API - Path Parameters

    In Postman you're setting that in param section but in your code you've moved it to header section

  • Inge M. Bruvik Profile Picture
    1,057 Moderator on at
    RE: Postman API - Path Parameters

    The first i notice is that your base url in the code must be incorrect.

    That should probably end after /orders, you should verify that with the API documentation

    The second thing is that i would set the headers after you have added the body.

    Setting the body sometimes adds some default headers that you don't want there.

  • PDiddy_ Profile Picture
    5 on at
    RE: Postman API - Path Parameters

    Thanks for reply ..

    Yes I agree but I'm cannot see how to pass the order_id using HttpWebRequest

  • PDiddy_ Profile Picture
    5 on at
    RE: Postman API - Path Parameters

    Hi the url correct

    mp-api-pre-prod.kingfisher.com/.../tracking

    I will move the order around as suggested..

  • Mahesh U Profile Picture
    433 on at
    RE: Postman API - Path Parameters

    Hi,

    Try adding the path variables at the end of URL

    Something like below

    mp-api-pre-prod.kingfisher.com/.../tracking

  • PDiddy_ Profile Picture
    5 on at
    RE: Postman API - Path Parameters

    Hi Mahesh,

    I got a returned 404 not found

    Service URL: mp-api-prepod.kingfisher.com/.../tracking

    (PS... Thanks for Reply)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sumit Singh Profile Picture

Sumit Singh 2,179

#2
OussamaSabbouh Profile Picture

OussamaSabbouh 1,999

#3
YUN ZHU Profile Picture

YUN ZHU 1,892 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans