Development discussions around Shopify APIs
I would like to know if the Shopify API allows external apps to access the shipping status label (e.g. "In Transit" or "Delivered")? I would like to use this as a trigger in our email marketing automation software to send an email X hours/days after an order is marked with the label "Delivered".
I need to be able to give our email software provider confirmation that this is possible and guide them to the source of this data.
Thank you!
Hey, @toakchocolate
It might be worthwhile looking into the FulfillmentEvent API Reference guide that we have here. There are a variety of FulfillmentEvent properties that you can use, such as the Fulfillment Status.
Let me know if this helps! If there is anything else I can help you with, please let me know.
Dirk | Social Care @ 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 the Shopify Help Center or the Shopify Blog
I've been unable to successfully use the FulfillmentEvent API . I'm following the most basic POST create example and it seems like no matter what I always get an error.
Example request:
curl -X POST -d '{ "event": { "status": "in_transit" }}' -H 'X-Shopify-Access-Token: xxx' https://xxx.myshopify.com/admin/api/2020-04/orders/2446312636486/fulfillments/2324900839494/events.json
Response:
{"errors":{"event":"Required parameter missing or invalid"}}
Any ideas as to what I'm doing wrong here? I've tried adding shop_id, order_id, fulfillment_id to the request as well as different values for "status" but it's always an error.
In your original question, you asked how you could get the status of shipping to trigger external Apps. Now you are saying POST does not work? What are you POSTing? Why are you POSTing?
1. you can setup a simple App to listen to Fulfillment Events. When you get one interesting, like a shipping update, send an email!
2. with some kind of code you write, you can POLL your shop, and with the API, GET fulfillment events you have not seen (created today for example), and then you look for interesting ones, and again, send an email when appropriate.
ALL GET. NO POST.
To answer my own question, I forgot to include "Content-Type: application/json" in my HTTP POST. My bad!
User | RANK |
---|---|
8 | |
7 | |
3 | |
3 | |
3 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By