Skip to content

mukeshprajapat026/shopify-matchship-shipping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🚚 Shopify Custom Shipping Integration with Matchship API

Custom Shopify shipping solution using Shopify Carrier Service API and Matchship API to dynamically calculate shipping rates based on customer ZIP codes, product size, and delivery conditions.

This project demonstrates how to extend Shopify's default shipping functionality to support advanced logistics rules for heavy or location-dependent products.

A custom backend application processes shipping requests from Shopify checkout and communicates with the Matchship logistics platform to return accurate delivery rates in real time.

Portfolio Project – Built to demonstrate Shopify API integration, custom shipping logic, external logistics API integration, and scalable eCommerce solutions.


📌 Project Overview

Many eCommerce stores selling large or heavy products cannot rely on Shopify’s default shipping rules.

Shipping costs often depend on:

  • Customer ZIP / Postal Code
  • Product weight and dimensions
  • Delivery zones
  • Special logistics provider rules

To solve this, I developed a custom shipping rate integration using Shopify Carrier Service API and Matchship API.

When a customer proceeds to checkout, Shopify sends a request to the custom shipping service. The service calculates the shipping cost using Matchship logistics rules and returns the correct shipping rate to Shopify.

This ensures customers see accurate delivery costs before completing the purchase.


🚨 Problem

The furniture store needed:

  • Accurate shipping calculation for heavy products
  • Location-based delivery pricing
  • Integration with an external logistics system
  • Real-time shipping rates during checkout

Shopify's default shipping configuration was not flexible enough for these requirements.


💡 Solution

A custom shipping service was developed using the Shopify Carrier Service API.

The solution:

  • Sends checkout shipping requests to a custom backend
  • Uses Matchship API to calculate delivery cost
  • Returns real-time shipping rates to Shopify checkout
  • Displays the correct delivery cost to customers

This automation ensures accurate shipping pricing and improved checkout experience.


🚀 Key Features

Customer Features

  • Real-time shipping cost calculation
  • Accurate delivery pricing based on location
  • ZIP code based delivery estimation
  • Shipping displayed directly in Shopify checkout
  • Seamless checkout experience

Store Admin Features

  • Automated shipping cost calculation
  • Reduced manual shipping configuration
  • Integration with external logistics provider
  • Scalable shipping rule architecture
  • Support for large furniture products

Shipping Calculation Logic

The shipping rate is determined using:

  • Customer ZIP / Postal Code
  • Product weight
  • Product dimensions
  • Delivery zones
  • Logistics provider rules

The system ensures that the correct delivery cost is calculated for each order dynamically.


📦 Custom Shipping Service Flow

  1. Customer adds products to cart
  2. Customer enters shipping address
  3. Shopify sends request to Carrier Service API
  4. Request forwarded to custom backend
  5. Backend calls Matchship API
  6. Matchship calculates shipping cost
  7. Shipping rates returned to Shopify
  8. Customer sees shipping price during checkout

🔄 Checkout Shipping Request Example

Shopify sends shipping request data:

Example:

Customer ZIP: 90210 Cart Weight: 12kg Items: Dining Table + Chairs

The backend calculates shipping cost using Matchship API and returns the rate to Shopify.


📊 Business Impact

  • Accurate shipping pricing for heavy furniture
  • Reduced cart abandonment
  • Improved customer checkout experience
  • Automated shipping rate calculation
  • Scalable logistics integration

🏗 System Architecture

The architecture uses Shopify’s Carrier Service API to connect the Shopify checkout with a custom backend that communicates with the Matchship logistics API.

Customer Checkout
        │
        ▼
Shopify Carrier Service API
        │
        ▼
Custom Backend (PHP App)
        │
        ▼
Matchship Logistics API
        │
        ▼
Shipping Rate Response
        │
        ▼
Displayed in Shopify Checkout

⚙ System Workflow

  1. Customer adds product to cart
  2. Customer enters delivery address
  3. Shopify requests shipping rates
  4. Backend sends request to Matchship API
  5. Matchship calculates shipping cost
  6. Backend returns shipping rate
  7. Shopify displays rate during checkout

💻 Tech Stack

Backend

  • PHP

APIs

  • Shopify Carrier Service API
  • Matchship API

Frontend

  • JavaScript
  • AJAX
  • Shopify Liquid

Database

  • MySQL (for logging & rule management)

Tools

  • Git
  • GitHub
  • Shopify Partner Dashboard

🌐 Portfolio Case Study

View the full case study here:

https://mukeshprajapat026.github.io/projects/shopify-matchship-shipping.html


🏷 Tags

shopify-api shopify-development carrier-service-api shipping-integration matchship-api


🔮 Future Improvements

  • Multi-carrier support
  • Shipping rule dashboard
  • Advanced shipping analytics
  • Dynamic warehouse selection
  • Delivery time estimation

👨‍💻 Author

Mukesh Prajapat

Full Stack Developer

Expertise:

  • Shopify Development
  • Laravel Development
  • API Integrations
  • Automation Systems
  • eCommerce Solutions

GitHub: https://github.com/mukeshprajapat026


⭐ If you found this project helpful, consider giving it a star.


About

Custom Shopify shipping integration using Carrier Service API and Matchship API for real-time ZIP code based shipping rate calculation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors