Update your merchant specific reference information (your internal order ID). This call will update your reference number on an order.
You want to use your own order ID on the Klarna order.
Fig.1 Update the merchant references flow
Update one or both merchant references. To clear a reference, set its value to “” (empty string).
PATCH /ordermanagement/v1/orders/{order_id}/merchant-references
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Content-Type: application/json
{
"merchant_reference1": "15632423",
"merchant_reference2": "special order"
}
Klarna will respond with 204 . The server has fulfilled the request or an error message
HTTP/1.1 204 No Content