Why am I not receiving real rate requests on my custom shipping app?

Why am I not receiving real rate requests on my custom shipping app?

Gemorroj
Shopify Partner
2 0 0

Hi all,
We are developing an app with custom shipping and there is an issue. We have installed the app and created custom carrier service (https://community.shopify.com/c/forums/postpage/choose-node/true/board-id/shopify-apps
) to observe rate requests. So we have tried to order some products on a dev store. But we don’t see any rates at checkout. And moreover Shopify didn’t send any rate requests to our server. After several minutes we are seeing strange rate requests from Shopify:

 

{
	"rate": {
		"items": [
			{
				"sku": "XXXXXXXX",
				"name": "",
				"grams": 100,
				"price": 0,
				"vendor": null,
				"taxable": true,
				"quantity": 1,
				"product_id": null,
				"properties": null,
				"variant_id": null,
				"requires_shipping": true,
				"fulfillment_service": "manual"
			}
		],
		"locale": "en",
		"origin": {
			// my origin
		},
		"currency": "EUR",
		"destination": {
			"fax": null,
			"city": "rate test",
			"name": null,
			"email": null,
			"phone": null,
			"country": "AU",
			"address1": "rate test",
			"address2": null,
			"address3": null,
			"province": null,
			"postal_code": "2060",
			"address_type": null,
			"company_name": null
		}
	}
}

 

But in “items” and “destination” we are not getting data from our checkout, looks like it’s hardcoded example values from Shopify.Can someone explain how to get real rate requests? Maybe now it works only with live sites?

Reply 1 (1)

Gemorroj
Shopify Partner
2 0 0

That's fake request sends from `Shipping and delivery` settings. To get "carrier services" provided by our app. Not real checkout.

Probably, we should catch the fake requests and return all services and ignore the real rate way. It's so dirty way...