Developer forum

Forum » Ecommerce - Standard features » PostDanmark ServicePoints service returns 'null'

PostDanmark ServicePoints service returns 'null'

Martin Nielsen
Reply

Hi guys,

Has anyone implemented PostDanmark ServicePoint via Dynamicweb yet?

I've been playing around with the ashx page now, and AFAIK i should be able to call it with a URL like this:

/Admin/Public/eCom/PostDanmarkServicePoint.ashx?cmd=findbypostalcode&countrycode=DK&postalcode=7400&numberOfServicePoints=6

But i always get 'null' as the return value.

On my Shipping provider i entered my Consumer ID and Countrycode as DK.

 

When i reflect the code i can see that i can provide a parameter called 'locale' but i have no idea what it should be, could this be my problem?

 

// Martin


Replies

 
Martin Nielsen
Reply

Has no one used this logic yet?

 
Jakob Westhausen
Reply

Hey Martin

I recently had the same problem and in my case the issue was the PostDanmark API key.
Try using DW's test ID: 76a38fd0-dff7-4ec5-b9c7-1c6d114a4675.
 

Regards

Jakob Westhausen

 
Kenneth Radoor
Reply

I have the same problem, but i guess it because that the API DW is using for the service is depricated. 

When you sign up for the API today it is located here https://developer.postnord.com/ 

The specific method is located here https://api2.postnord.com/rest/businesslocation/v1/servicepoint/findNearestByAddress.json.

 

 

You must be logged in to post in the forum