ActiveResource::ResourceInvalid (Failed. Response code = 422. Response message = Unprocessable Ent

New Member
4 0 0

When I try to update a fulfillment tracking info with shopify_api ruby version, I meet the following errors

 

ActiveResource::ResourceInvalid (Failed. Response code = 422. Response message = Unprocessable Entity (Tracking information update failed.).):

 

tracking_info = { number: tracking_number, url: tracking_url, company: 'other' }
fulfillment = ShopifyAPI::Fulfillment.find(fulfillment_id, params: { order_id: order_id })
fulfillment.update_tracking(tracking_info: tracking_info, notify_customer: false)

 

0 Likes
Shopify Staff
Shopify Staff
195 23 33

Hey @ericfreeman 

Can you pass me the order ID for the request that is failing? My guess is there is something about the request that is malformed, but need to see our logs to figure out what. 

Kevin_A | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
New Member
4 0 0

Hi Kevin,

the order id is 2819506339996, but I have already update the order tracking info in another way.

thanks

0 Likes