crete custom DELIVERY_STRATEGY based on carrierservice id

Topic summary

A developer is working with Shopify’s GraphQL API to query carrier service details based on a specific carrier service ID.

Query Details:

  • Targeting carrier service ID: gid://shopify/DeliveryCarrierService/86511878447
  • Querying for available services in India (IN) from a specific location/origin
  • Requesting formatted name and available services for countries

API Response:

  • Returns formatted name: “Custom zip 2tset dda ot tnaw i” (appears to contain reversed/garbled text)
  • Includes throttle status showing query costs and restore rate
  • Response contains service availability data for the specified country

The goal appears to be creating a custom delivery strategy based on carrier service configuration, though the response data shows some formatting irregularities that may need troubleshooting.

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

query {
carrierService(id: “gid://shopify/DeliveryCarrierService/86511878447”) {
formattedName
availableServicesForCountries(
origins: [“gid://shopify/Location/85650735407”]
countryCodes: [IN]
restOfWorld: false
) {
name,

}

}
}
Response

{
“data”: {
“carrierService”: {
“formattedName”: “Custom zip code base shipping (Rates provided by app)”,
“availableServicesForCountries”: [
{
“name”: “test1”
}
]
}
},
“extensions”: {
“cost”: {
“requestedQueryCost”: 2,
“actualQueryCost”: 2,
“throttleStatus”: {
“maximumAvailable”: 1000.0,
“currentlyAvailable”: 998,
“restoreRate”: 50.0
}
}
}
}
i want to add test2