Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Order fulfillment 406 response #336

Open
dherbs2 opened this issue Nov 19, 2024 · 0 comments
Open

Order fulfillment 406 response #336

dherbs2 opened this issue Nov 19, 2024 · 0 comments

Comments

@dherbs2
Copy link

dherbs2 commented Nov 19, 2024

Hi,
We haven't been using this for a while, but now when we're using the order fulfillment method we're getting 406. It used to work just fine before.

PHP Fatal error: Uncaught PHPShopify\Exception\CurlException: Request failed with HTTP Code 406. in /libs/vendor/phpclassic/php-shopify/lib/ShopifyResource.php:544

$data = array(
"fulfillment" => array(
"tracking_company" => $tracking_company,
"tracking_number" => $shipping_tracking_number,
"notify_customer" => false
)
);

Array
(
[fulfillment] => Array
(
[tracking_company] => USPS
[tracking_number] => 943461690148539231****
[notify_customer] =>
)
)
$shopify_id = 5536948387889;
$result = $shopify->Order($shopify_id)->Fulfillment->post($data);

The other methods we're using work just fine.

Please advise!
Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant