Carrier Services callback url not being called

Highlighted
Shopify Partner
5 0 0

HI There

I have created a carrier service using api call carrier_services.json its created successfully with ID 49373053080 but for some reason callback url that we supplied is not being called when we access checkout from frontend we have logging enabled for getting shopify data but seems like shopify never call it when customer checkout ................. we do have it in app calculated rates in shipping zones as well.............. it should basically call this url http://madwine.com/workscripts/gso.php but its never called can anybody help ? {

"carrier_service": {
"id": 49373053080,
"name": "Madwine GSO",
"active": true,
"service_discovery": true,
"carrier_service_type": "api",
"admin_graphql_api_id": "gid:\/\/shopify\/DeliveryCarrierService\/49373053080",
"format": "json",
"callback_url": "http:\/\/madwine.com\/workscripts\/gso.php"
}
}

my response in gso.php

{"rates":[{"service_name":"Endertech Overnight","service_code":"ETON","total_price":"000","currency":"USD","min_delivery_date":"2020-08-28 09:33:07 +0000","max_delivery_date":"2020-08-29 09:33:07 +0000"},{"service_name":"Endertech Regular","service_code":"ETREG","total_price":"000","currency":"USD","min_delivery_date":"2020-08-30 09:33:07 +0000","max_delivery_date":"2020-09-03 09:33:07 +0000"}]}

 

Screen Shot 2020-08-27 at 3.47.50 PM.png

0 Likes
Highlighted
Shopify Partner
2 0 1

I have the exact same issue - I've created a carrier service, I see it when I call

/admin/api/2019-10/carrier_services.json

However, when I call the above, I don't get the provided callback_url back as a property in the response. If I call PUT and change any property from the new carrier service, the callback_url does come back so it has clearly saved, but it's strange that the docs suggest it should come back for the list of carriers.

I can see the carrier service appears under shipping rates. I've tried deleting all other rates, but the callback_url isn't called - I've got logging on it, and it responds to any request (GET | POST etc), but nothing showing in logs.

Support pointed me at:

/admin/settings/shipping/accounts_and_integrations

But as far as I can tell, creating the carrier through the API with active: true is all I need to do. It feels like there might be some kind of activation step that I've missed, but I'm just going in circles trying to find it. Any suggestions?

0 Likes