--- title: carrierServices - GraphQL Admin description: Retrieve a list of CarrierServices. api_version: 2025-10 api_name: admin type: query api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/queries/carrierServices?example=retrieve-a-list-of-carrierservices md: https://shopify.dev/docs/api/admin-graphql/latest/queries/carrierServices.md?example=retrieve-a-list-of-carrierservices --- # carrier​Services query Requires `read_shipping` access scope. Retrieve a list of CarrierServices. ## DeliveryCarrierServiceConnection arguments [DeliveryCarrierServiceConnection!](https://shopify.dev/docs/api/admin-graphql/latest/connections/DeliveryCarrierServiceConnection) * after [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) The elements that come after the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * before [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) The elements that come before the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * first [Int](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int) The first `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * last [Int](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int) The last `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * query [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about [Shopify API search syntax](https://shopify.dev/api/usage/search-syntax). * active boolean * id id Filter by `id` range. Example: * `id:1234` * `id:>=1234` * `id:<=1234` * reverse [Boolean](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Boolean) Default:false Reverse the order of the underlying list. * sort​Key [Carrier​Service​Sort​Keys](https://shopify.dev/docs/api/admin-graphql/latest/enums/CarrierServiceSortKeys) Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then [try specifying a sort key that matches the field used in the search](https://shopify.dev/api/usage/pagination-graphql#search-performance-considerations). *** ## Possible returns * edges [\[Delivery​Carrier​Service​Edge!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/DeliveryCarrierServiceEdge) non-null The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node. * nodes [\[Delivery​Carrier​Service!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/DeliveryCarrierService) non-null A list of nodes that are contained in DeliveryCarrierServiceEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve. * page​Info [Page​Info!](https://shopify.dev/docs/api/admin-graphql/latest/objects/PageInfo) non-null An object that’s used to retrieve [cursor information](https://shopify.dev/api/usage/pagination-graphql) about the current page. *** ## Examples * ### Retrieve a list of CarrierServices #### Query ```graphql query CarrierServiceList { carrierServices(first: 10, query: "active:true") { edges { node { id name callbackUrl active supportsServiceDiscovery } } } } ``` #### cURL ```bash curl -X POST \ https://your-development-store.myshopify.com/admin/api/2025-10/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "query CarrierServiceList { carrierServices(first: 10, query: \"active:true\") { edges { node { id name callbackUrl active supportsServiceDiscovery } } } }" }' ``` #### React Router ```javascript import { authenticate } from "../shopify.server"; export const loader = async ({request}) => { const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql query CarrierServiceList { carrierServices(first: 10, query: "active:true") { edges { node { id name callbackUrl active supportsServiceDiscovery } } } }`, ); const json = await response.json(); return json.data; } ``` #### Ruby ```ruby session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Graphql::Admin.new( session: session ) query = <<~QUERY query CarrierServiceList { carrierServices(first: 10, query: "active:true") { edges { node { id name callbackUrl active supportsServiceDiscovery } } } } QUERY response = client.query(query: query) ``` #### Node.js ```javascript const client = new shopify.clients.Graphql({session}); const data = await client.query({ data: `query CarrierServiceList { carrierServices(first: 10, query: "active:true") { edges { node { id name callbackUrl active supportsServiceDiscovery } } } }`, }); ``` #### Response ```json { "carrierServices": { "edges": [ { "node": { "id": "gid://shopify/DeliveryCarrierService/1036895101", "name": "test name", "callbackUrl": null, "active": true, "supportsServiceDiscovery": false } } ] } } ``` ## Retrieve a list of CarrierServices [Open in GraphiQL](http://localhost:3457/graphiql?query=query%20CarrierServiceList%20%7B%0A%20%20carrierServices\(first%3A%2010%2C%20query%3A%20%22active%3Atrue%22\)%20%7B%0A%20%20%20%20edges%20%7B%0A%20%20%20%20%20%20node%20%7B%0A%20%20%20%20%20%20%20%20id%0A%20%20%20%20%20%20%20%20name%0A%20%20%20%20%20%20%20%20callbackUrl%0A%20%20%20%20%20%20%20%20active%0A%20%20%20%20%20%20%20%20supportsServiceDiscovery%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D) ```javascript import { authenticate } from "../shopify.server"; export const loader = async ({request}) => { const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql query CarrierServiceList { carrierServices(first: 10, query: "active:true") { edges { node { id name callbackUrl active supportsServiceDiscovery } } } }`, ); const json = await response.json(); return json.data; } ``` ##### GQL ``` query CarrierServiceList { carrierServices(first: 10, query: "active:true") { edges { node { id name callbackUrl active supportsServiceDiscovery } } } } ``` ##### cURL ``` curl -X POST \ https://your-development-store.myshopify.com/admin/api/2025-10/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "query CarrierServiceList { carrierServices(first: 10, query: \"active:true\") { edges { node { id name callbackUrl active supportsServiceDiscovery } } } }" }' ``` ##### React Router ``` import { authenticate } from "../shopify.server"; export const loader = async ({request}) => { const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql query CarrierServiceList { carrierServices(first: 10, query: "active:true") { edges { node { id name callbackUrl active supportsServiceDiscovery } } } }`, ); const json = await response.json(); return json.data; } ``` ##### Node.js ``` const client = new shopify.clients.Graphql({session}); const data = await client.query({ data: `query CarrierServiceList { carrierServices(first: 10, query: "active:true") { edges { node { id name callbackUrl active supportsServiceDiscovery } } } }`, }); ``` ##### Ruby ``` session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Graphql::Admin.new( session: session ) query = <<~QUERY query CarrierServiceList { carrierServices(first: 10, query: "active:true") { edges { node { id name callbackUrl active supportsServiceDiscovery } } } } QUERY response = client.query(query: query) ``` ## Response JSON ```json { "carrierServices": { "edges": [ { "node": { "id": "gid://shopify/DeliveryCarrierService/1036895101", "name": "test name", "callbackUrl": null, "active": true, "supportsServiceDiscovery": false } } ] } } ```