softwerkab / fortnox-csharp-api-sdk

.NET SDK for Fortnox API.
MIT License
52 stars 64 forks source link

CountryCode for deliveryadress #243

Open MagnusModig opened 2 years ago

MagnusModig commented 2 years ago

Hi

I have earlier just used the swedish country name as delivery adress (.DeliveryCountry), but I wanted to have the english name for orders outside Sweden so I tried to pass the english name for the country. This did not work for "United Kingdom of Great Britain and Northern Ireland", here Fortnox expect " United Kingdom" instead. When speaking to Fortnox support they saif that I should add the countrycode instead, but there is no such property for deliveradress in the SDK.

richardrandak commented 2 years ago

I don't see country code as Order property, neither in documentation or the received JSON.

richardrandak commented 2 years ago

Both CountryCode and DeliveryCountryCode gives error "Felaktigt fältnamn". If you can find out what property can be used, I'll add it to the SDK model.

MagnusModig commented 2 years ago

Hej, I chacked again with Fortnox and they said I was misinformed yesterday. There is no way to add countrycode for a deliveryadress. All this came up when I tried to add a english caountry name that was not the same as Fortnox uses.

richardrandak commented 2 years ago

That's unfortunate. Similar issue was mentioned in a discussion here - #241