The orderid1
and orderid2
fields inside ‘merchant_reference’ are marked as optional in the documentation:
But when any of them is empty, then an «order» API request fails.
{
<...>
"merchant_reference": {
"orderid1": "1",
"orderid2": ""
},
<...>
}
The Klarna’s server responds:
Bad format: merchant_reference`