New Shopify Certification now available: Liquid Storefronts for Theme Developers

API support on Carrier service

SmrithiSatheesh
Shopify Partner
1 0 0

When i do a GET call to list all carrier services: I get the list and one example is below:

{ "id": 16211214405, "name": "dhl_express", "active": true, "service_discovery": true, "carrier_service_type": "legacy", "admin_graphql_api_id": "gid://shopify/DeliveryCarrierService/56464" }

But I am not able to update the field values via PUT method for these Data(via the API for modify existing carrier service).

Reply 1 (1)
ShopifyDevSup
Shopify Staff
Shopify Staff
1203 190 420

Hey @SmrithiSatheesh, can you share the body of the request you're sending through the PUT request (including the endpoint and redacting any private info like the store name/API client info)? You should be able to update the carrier service's information if you use an endpoint like this in your PUT request: storename.myshopify.com/admin/api/2022-01/carrier_services/[carrierserviceID].json. 

 

Hope this helps!

 

 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog