Development discussions around Shopify APIs
Hello,
I have a iframe with map and pickup point, when my user select the one, i want add my pickup point id to the current order. Then i want get this pickup point id from the request /admin/api/#{api_version}/orders/#{order_id}.json.
Is this possible?
Hi @destpat ,
This sounds like a perfect use-case for metafields. It wouldn't be available at /orders/#[id}.json, but would be available at /orders/#[id}/metafields.json instead.
Josh | 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
Is it still the case that MetaFields are the only way to store & Retrieve this Pickup information on an Order? I was hoping that I could determine which Orders are Pickup vs Shipping by reading the "requires_shipping" field in the JSON at either the Order or Line level - but when we mark an Order for Pickup in Store, this field still appears as "true" which must mean that's not the intended usage. Also, I was hoping the "origin_location" would reflect the Store that is selected for the customer to Pickup their Order, but that doesn't appear to be the case either. Can anyone explain how (using either REST or GraphQL API) we can identify which Orders are Pickup vs Ship, and from where they should be Picked Up? Thanks in advance for your assistance.
User | RANK |
---|---|
42 | |
16 | |
9 | |
9 | |
8 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023