Liquid, JavaScript, themes, sales channels
We're using https://github.com/phpclassic/php-shopify as our framework to communicate with the shop
and we're getting the orders all fine. Just when wanting to switch the fulfillment_status to "fulfilled" by using this code
$shopify = new PHPShopify\ShopifySDK($config);
$updateInfo = array (
"fulfillment_status" => "fulfilled",
);
$orderID = '3067744911535';
$shopify->Order($orderID)->put($updateInfo);
it doesn't change the status of Order ID 3067744911535 and no error return message.
This next try doesn't work either, but it returns an error
POST (SHOPURL)/admin/api/2020-10/orders/3067744911535/fulfillments/2878406688943/complete.json
{
"errors": "An error occurred, please try again"
}
2878406688943 is the fulfillment id, that we're getting from /admin/api/2020-10/orders/3067744911535/fulfillments.json
Another attempt was
PUT (SHOPURL)/admin/api/2020-10/orders/3067604107439.json
with this content
{
"order": {
"id": 3067604107439,
"fulfillment_status": "fulfilled"
}
}
This does not return an error but also doesn't change the fulfillment_status.
Any chance someone can help us?
Thanks,
RoliH
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023