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

ericfreeman
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
Kevin_A
Shopify Staff
Shopify Staff
290 35 47

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? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
ericfreeman
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