You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 6, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 6, 2026. It is now read-only.
I can create and update fulfillments through the api to add a tracking number to the order when it ships. However the order status does not update for the customer, it just says order is confirmed and come back for updates.
The docs indicate that creating a FulfillmentEvent will update the order status page.
Currently there is no fulfillment event resource in the library. Nor does the Fulfillments model have the events mixin. You could, however, extend the Event model or create your own model in your codebase to support this until support is added. Just inherit from ShopifyResource
Thanks for the response.
I created my own model, but I'm not too familiar with pyactiveresource so it may not be correct. It appears to work for my purpose. If this looks good you can close the ticket.
@tanema It doesn't look like this is added yet so I've been running some tests using a custom FulfillmentEvent resources like above. I noticed an issue when the resources returns an error. For example, if you send an invalid status the client throws an unhandled Exception. It looks like the pyactiveresource library can't parse the response properly.
Here is the stacktrace along with the error:
File "/lib/python3.7/site-packages/pyactiveresource/activeresource.py", line 453, in create
resource.save()
File "/lib/python3.7/site-packages/pyactiveresource/activeresource.py", line 850, in save
self.errors.from_json(err.response.body)
File "/lib/python3.7/site-packages/pyactiveresource/activeresource.py", line 132, in from_json
self.from_array(errors)
File "/lib/python3.7/site-packages/pyactiveresource/activeresource.py", line 82, in from_array
attr_name = message.split()[0]
AttributeError: 'dict' object has no attribute 'split'
I also printed out the response in pyactiveresource which is below.
As you can see in the options object, the status is invalid but the library can't parse it properly.
Is there a way to fix this? Not sure if there is a known way to handle this or if there is something else that I need to do when creating a custom resource like above.
Activity
tanema commentedon Feb 26, 2020
Currently there is no fulfillment event resource in the library. Nor does the Fulfillments model have the events mixin. You could, however, extend the Event model or create your own model in your codebase to support this until support is added. Just inherit from ShopifyResource
lswamy commentedon Mar 3, 2020
Thanks for the response.
I created my own model, but I'm not too familiar with pyactiveresource so it may not be correct. It appears to work for my purpose. If this looks good you can close the ticket.
rlepore commentedon Jan 21, 2021
@tanema It doesn't look like this is added yet so I've been running some tests using a custom
FulfillmentEventresources like above. I noticed an issue when the resources returns an error. For example, if you send an invalidstatusthe client throws an unhandled Exception. It looks like the pyactiveresource library can't parse the response properly.Here is the stacktrace along with the error:
I also printed out the response in pyactiveresource which is below.
As you can see in the options object, the status is invalid but the library can't parse it properly.
Is there a way to fix this? Not sure if there is a known way to handle this or if there is something else that I need to do when creating a custom resource like above.
//cc @mllemango