Hi,
I’m trying to make my first API call - or second to first, as I don’t have any problems getting the countries list.
As soon as my httpbody isn’t empty, I’m getting UNAUTHENTICATED_API_CALL ,“message”:“Invalid signature”
I’m calling /v1/checkout
I’m using C# (4.7.2) and using Newtonsoft.Json to sterilize my request class, like this:
private static string SerializeBody(object from)
{
return from != null ? JsonConvert.SerializeObject(
from,
Formatting.None,
new JsonSerializerSettings
{
NullValueHandling = NullValueHandling.Ignore,
}
) : string.Empty;
}
Ending out with a string looking as this:
{“amount”:4130.00,“complete_payment_url”:“http://oneshop.local/da-DK/gateway/Retur/Ok/649687b8-3308-420c-a0ff-c0b71c87ec74",“cancel_checkout_url”:“http://oneshop.local/da-DK/Checkout/Status/649687b8-3308-420c-a0ff-c0b71c87ec74”,“country”:“DK”,“currency”:"DKK”}
I’m pretty sure its the body serialization that is the problem as I have tried to make the same call to /v1/checkout with an empty body, and then I’m getting a MISSING_FIELDS - [COUNTRY] error
Does anybody have a suggestion as to what I’m doing wrong with the http-body