Unable to display Shipping Rate Provider (Rates provided by app)

sunandasharma22
Shopify Partner
5 0 1

We are trying to fetch Shipping rates at checkout using carrier services. We successfully got the request from Shopify but the response we are sending does match what is being shown on checkout. We are trying with development store. following is the request and response sample we sent to Shopify. This is the development Store :-https://rate-provider1.myshopify.com/admin/

 

{
	"rate": {
		"origin": {
			"country": "US",
			"postal_code": "84043",
			"province": "UT",
			"city": "Lehi",
			"name": null,
			"address1": "2600 Executive Parkway Suite 160",
			"address2": null,
			"address3": null,
			"phone": "",
			"fax": null,
			"email": null,
			"address_type": null,
			"company_name": "Rate-Provider1"
		},
		"destination": {
			"country": "IN",
			"postal_code": "146024",
			"province": "PB",
			"city": "Hoshiarpur",
			"name": "sourav patial",
			"address1": "Saleran Road",
			"address2": "Chohal",
			"address3": null,
			"phone": null,
			"fax": null,
			"email": null,
			"address_type": null,
			"company_name": null
		},
		"items": [{
				"name": "Rate",
				"sku": "",
				"quantity": 1,
				"grams": 2948,
				"price": 1000,
				"vendor": "Rate-Provider1",
				"requires_shipping": true,
				"taxable": true,
				"fulfillment_service": "manual",
				"properties": {},
				"product_id": 6581469773996,
				"variant_id": 39387919483052
			}, {
				"name": "shorts",
				"sku": "",
				"quantity": 2,
				"grams": 500,
				"price": 350,
				"vendor": "Rate-Provider1",
				"requires_shipping": true,
				"taxable": true,
				"fulfillment_service": "manual",
				"properties": {},
				"product_id": 4773858738348,
				"variant_id": 32456386511020
			}
		],
		"currency": "USD",
		"locale": "en"
	}
}

 

 

 

{
	
	"rates": [{
			"service_name": "Test",
			"service_code": "Test",
			"total_price": "100",
			"description": "ExpressMailInternational",
			"currency": "USD",
			"min_delivery_date": null,
			"max_delivery_date": null
		}, {
			"service_name": "Test",
			"service_code": "Test",
			"total_price": "100",
			"description": "PriorityMailInternational",
			"currency": "USD",
			"min_delivery_date": null,
			"max_delivery_date": null
		}
	]
}

 

 


We then attempted to remove other rates to avoid any conflicts that the calls may be having, however, now we are getting no rates displayed at all. 

 

MicrosoftTeams-image (19).png

Any suggestions would be much appreciated.

0 Likes