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.
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023