billbeeio / billbee-php-sdk

🔌 The official Billbee API SDK for PHP 💻
MIT License
22 stars 25 forks source link

Patching DeliverySourceCountryCode of orders does not work #58

Closed brainspin-max closed 2 years ago

brainspin-max commented 2 years ago

When trying to patch an order i get a 400 Bad Request - Property DeliverySourceCountryCode does not exist or is not patchable Error. It doesnt make a difference if i write the attribute key first letter uppercase or not. The following does not work:

$client->patchOrder($order->id, [
    'DeliverySourceCountryCode' => 'GB'
]);
$client->patchOrder($order->id, [
    'deliverySourceCountryCode' => 'GB'
]);

The orderID i use here as a variable is correct and exists inside billbee. Is there anything i do wrong, is it a bug and how am i supposed to update the value the right way if its not a bug?

We are able to patch other attributes like the SellerComment, so the problem is specific to the attribute.

brainspin-max commented 2 years ago

Just got confirmation from Dirk at the Billbee support team, that the field is not patchable. So if someone has an idea why this is the case and how to update this field i would be happy to get an answer. Ill try to use the customshop api now to update this field, maybe ill have more luck there. I close the issue now, because this is not a problem with the PHP SDK, its Billbees API messing up again.