Showing results for 
Search instead for 
Did you mean: 
My Areas

Sign in or create account

to get a personalized navigation.

Where is the Customer EDI Code in API?

by Thomas Adrian - Consili

I need to export the EDI code from a customer but I do not find it in the API?<custno>


2020-11-06 11_10_35.jpg


Accepted solution
Magnus Johnsen

by Magnus Johnsen

Hi Thomas,


You can find the value by getting the location of the customer:

2020-11-06 Integrations Documentation.png

Customer -> Delivery Settings -> Default Location Settings (Derived from Customer -> Location -> Location marked as default):

2020-11-06 11_26_16-Customers.png2020-11-06 11_27_55-Customer locations.png

Result when calling Location:

2020-11-06 11_25_44-Postman.png



but when I try to get the locations in Postman it just keeps spinning, and after a few minutes it returns nothing, but still Status 200 ok.


what can be the cause of that?

Is there a difference if you call it without the pagination?

If so, please make sure that it is the correct company you are calling.

In our local test, we can not reproduce this with or without pagination unless you reach a page that has passed the amount of objects you have.

You have 11 locations, you check for size=11 and page 2, in this case you will get an empty array as a response:

2020-11-06 12_47_33-Postman.png2020-11-06 12_48_03-Postman.png

Are you having issues with any other API calls to that customer company?

Can you check a customers location in the UI and then try to get it following the instructions above?

no, it is only the location endpoint I am having problem with. customer works fine

same result in swagger


btw, it is not returning an empty array, it returns nothing


2020-11-06 13_12_51.jpg

Are you receiving the ipp-request-id in the response header?

Please also make sure that your user has both "Financials Administrator" & "Financials User" roles assigned for this company.

And please try to open a location in the UI to see if you can access it there.

If so, please send us your API client ID, ipp-company-id and the request-id to and we'll have a look.

Thank you. 

Accepted solution

by mrtnsn

I think you have to go through "Location" to get the ediCode.


So use the ID from customer endpoint

"location": {
    "countryId": "string",
    "id": "string",
    "name": "string"


Then call "/controller/api/v1/location" with "?locationId=x". That should give you

"ediCode": "string",