Problem with fulfilment api

Tourist
90 0 3

I have code that previously worked started breaking on Aug 28th.

I stared at it for a long time and could not figure out what is wrong. Has the API changed recently?

Here is my sample code.

@fulfillment = ShopifyAPI::Fulfillment.new(order_id: order_id)

@fulfillment.save         

 

Received exception when saving,

 ERROR ActiveResource::BadRequest: Failed.  Response code = 400.  Response message = Bad Request.

 

Using ruby-1.9.3 with shopify_api gem 3.0.3

Creator of the metafields editor application. http://apps.shopify.com/metafields-editor
0 Likes
Highlighted
Shopify Staff
Shopify Staff
591 0 45

I'm not entirely sure what has changed recently with that section. I've sent a message off to a few of the guys who might have worked in this area recently, they should get back to you within a few days.

0 Likes
Tourist
90 0 3

Thanks. Looking forward for an update.

Creator of the metafields editor application. http://apps.shopify.com/metafields-editor
0 Likes
Tourist
90 0 3

Hi Chris,

 

Any update on this? My app is still broken and I need to update my client.

 

 

Thanks.

 

Creator of the metafields editor application. http://apps.shopify.com/metafields-editor
0 Likes
Shopify Staff
Shopify Staff
591 0 45

Could you send me a line with some details:

  • Time of errors
  • some shop names
  • api client ID

You can fire an email off to me with the details if you don't want to share any of this information publicly csaunders _at_ shopify.com

0 Likes
Tourist
90 0 3

I did a few experiments and it seems the API has changed. It used to be if you do not pass the line items to the fulfillment API, it will just fulfill everything for that order. Now it seems the line items have to be explicitly passed in in order to fulfill an order.

 

Creator of the metafields editor application. http://apps.shopify.com/metafields-editor
0 Likes
Shopify Staff
Shopify Staff
591 0 45

Interesting. Looks like our API integration tests changed and put the documentation out of date.

0 Likes
Tourist
90 0 3

I can modify my code to make it work so this is less urgent now but I would appreciate if the API document is updated if what I found is true.

 

 

Creator of the metafields editor application. http://apps.shopify.com/metafields-editor
0 Likes