We are a team of developers building an embedded Shopify app that will use the Carrier Service.
We are new to Shopify app development but followed this Shopify node guide https://github.com/Shopify/shopify-app-node and successfully deployed our app in a docker container to Google cloud platform. From there we were able to install it into a test development store.
We have read over the documentation for the Carrier Service API https://shopify.dev/api/admin-rest/2021-10/resources/carrierservice and understand the first step is to create a carrier service.
The documentation is a little bit vague on where to use the node.js code and we aren't sure where to start. Some questions:
- do we create a carrier_services.json file? If so, what directory do we store the file?
- are there any examples we can reference for an embedded node app that contains code for implementing a carrier service?
Thank you for your help!
We used the approach to make an authenticated fetch call from the React app frontend to NodeJS backend when the app starts to get the session id. From there we used the methods provided by Shopify to retreive the session from the id and register the service through the shopify api rest CarrierService.
As we also saw only one carrier service is allowed so we have a simple check, if present with the same name we dont register it again.
React code at component: (this fetch is the authenticatedFetch provided by shopify)
Shopify system hits my callback url but does not send customer shipping data (zipcode, item weight etc). What I might be missing in my app?
Below is the call back url I registered:
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...By Arno Nov 27, 2023
You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...By Skye Nov 8, 2023