I’m working on building an iOS app for a custom item. The customer will build the item in the app and I want the app to send the data to shopify so shopify pulls what’s been added to the item. Is there a common way of doing this?
If my question is confusing, please let me know and i’ll try to elaborate more.
The main question is going to be whether this product needs to be able to be purchased more than once. If it does, you can use one of the admin mutations to create a product in the store background.
What seems more likely though is that you just want to be able to create a one-time purchase with some number of custom properties that results in a custom price. That’s a relatively common use case that’s supported on the draft order API in particular.
You’d need to use the draftOrderCreate mutation and then potentially redirect to the checkout url you can get back from that
Going to need to use an installed app on the store though, in either case - these are authenticated actions.
i agree, a bit confusing. i’m definitely not describing it clearly. thank you for your response! the draftOrderCreate, where can i find more information about it and will it be able to mutate my Shopify item as a MITM between the iOS app and Shopify?
You can try API2Cart for this. It allows you to connect to and work with needed Shopify store data. For example, via API2Cart you can add, update, retrieve and sync products, orders, categories, and other store data with ease.