How to add a custom shipping method programmatically?

51 Views Asked by At

I'm trying to develop a Shopify app extension currently which will just:

  • Add a custom shipping method for a store
  • If an order is placed with this shipping method, notify me by email

Does anyone know which APIs I need to take a look at in order to do this? I have tried the CarrierService API, but I don't see the CarrierService when checking out a product.

Thanks in advance.

1

There are 1 best solutions below

2
Martin On

You will need the following API's:

  1. Shopify Admin API (Create the custom shipping method)
  2. Script Tag API (Custom JS into the store checkout)
  3. Webhooks (listen for order/create event)
  4. Use sendgrid or manual SMTP for the emails

Create a custom app using the Shopify Admin API, implement custom shipping, then make a webhook for the order event, send email.