Update shipping price based on shopify API

upadhyayvivek25
Shopify Partner
1 0 0

I created storefront using reactJS.
And i wanted to add shipping rate based on selected option on cart page.

 

I added 3 options on cart page.

1. "Ship to address"- the Standard shipping price will be ($20)

2. "Store Pickup"- the Standard shipping price will be ($10)

3. "Local delivery"- the Standard shipping price will be ($5)


So based on selected option the Shipping Method will visible any one as bellow
Standard Shipping($20) / Standard Shipping($10) / Standard Shipping($5)

Please suggest which Rest API or GraphQL will solve the problem. 

Reply 1 (1)

SebastianDiaz
Shopify Partner
1 0 0

You can use checkout "delivery customizations" for hiding/showing delivery methods https://shopify.dev/docs/apps/checkout/delivery-customizations/getting-started