Solved

Supply Code API

  • 27 June 2022
  • 3 replies
  • 124 views

Userlevel 3
Badge +6

Hello,

We’re setting up API calls and continue to get an error when setting up the parameter for ‘SupplyCode’.

Searching the API doc viewer, the value we’re trying to choose is ‘InventOrder’. Below are the results:

 

API Doc Viewer information
Postman Values
Postman Get Result

 

Any help in resolving the return value is appreciated.

 

Thanks,

Jeff

icon

Best answer by Rifki Razick 30 June 2022, 07:24

View original

3 replies

Userlevel 6
Badge +12

Can you place a literal value directly in the JSON? I am not familiar with how Postman populates the variables in the curly braces, nor where those are defined. Can you see the actual JSON that is getting passed to IFS and verify it is the value you expect (using something like Fiddler to look at network traffic)? Maybe some sort of delimiter or capitalization issue?

 

Thanks,

Joe Kaufman

Userlevel 4
Badge +9

@jeff.nattermann can you try providing IfsApp.CustomerOrderHandling.OrderSupplyType'InventOrder' as the value for the parameter in Postman?

When providing enumeration values as query string parameters they need to be fully qualified like so:

IfsApp.<ProjectionName>.<EnumerationName>’<EnumValue>’

 

 

Userlevel 3
Badge +6

That was it! We got a similar answer on another API call. I tried it, but only did supplytype, not ordersupplytype. 

Thank you for the resolution! It works!

Reply