Shipping Rate Context
Shipping Rate Context
Requirements
How It Works
Data Flow
Customer enters checkout
↓
Shipping Rate Context extension runs
↓
Customer data (email, ID) is attached to line items as `_datajet` property
↓
Carrier Calculated Shipping request is made
↓
Your shipping rate script reads `_datajet` property
↓
Script queries customer data (e.g., tags) via GraphQL
↓
Custom shipping rates are returned based on customer dataSetup Instructions
Step 1: Add the Shipping Rate Context Block to Checkout
Step 2: Create Your Shipping Rate Script
Customer Data Available
Field
Description
Example: Free Shipping for Tagged Customers
Use Cases
VIP Customer Shipping
B2B Shipping Rates
Regional Shipping Rules
Subscription Customer Benefits
Troubleshooting
Customer data is not available
The _datajet property is missing
_datajet property is missingGraphQL query returns null
Last updated