I want to find a direct way to get the orders of a shop that were made through a particular shipping line source (or carrier service). What query parameter can I use from the orders query in the GraphQL API, or should I make it through another query connection?
Hey @StefanosDev - appreciate you reaching out. There isn't a carrier service query filter parameter available on the orders object in GraphQL. You could potentially use the "fulfillment_location_id" on the orders object if you have a carrier service assigned to a specific fulfillment location.
I would actually recommend using our guide here on managing order fulfillments directly - especially if you looked at using the Fulfillment object, which does have a specific field you can use to query a carrier service for a specific order.
Hope this helps!
Thank you for your reply. The logic of the app is that it creates a shipping carrier service for the Shopify store. When a customer reaches the Shipping section of the Checkout, the carrier service callback URL is hit and returns some dynamic shipping points that the customer can choose. The name of these shipping points are always different, but the source of the shipping service remains always the same (the one that was registered initially).
We can draw that sort of information from the shippingLine field. I am afraid fulfillment has nothing to do with it, unless you can direct me to a way to connect the registering of the carrier services to fulfillments.
Hi @StefanosDev 👋
Hope that helps!