Shopify Integration
The Huntrecht Platform integrates seamlessly with Shopify for B2B e-commerce.
Integration Points
Storefront API
Access Shopify B2B catalog through the Platform API:
- Products: Retrieve product listings with B2B pricing
- Collections: Browse product collections
- Search: Product search with filters
See the B2B Commerce section for Storefront API details.
B2B Company Sync
KYC verification automatically syncs with Shopify B2B Company:
- Customer completes KYC on Huntrecht
- Company record created/updated in Shopify
- Verification status synced
Draft Orders
Subscriptions automatically create Shopify draft orders:
- Monthly installment payments
- Customer-specific pricing
- Payment terms configuration
Authentication
Use Shopify OAuth to connect merchant accounts:
# Step 1: Redirect to Shopify authorization
# GET https://{shop}.myshopify.com/admin/oauth/authorize?
# client_id={client_id}&scope=read_orders,read_customers&redirect_uri={callback}
# Step 2: Exchange code for token
response = requests.post(
"https://api.huntrecht.com/api/v1/auth/shopify/callback",
json={
"shop": "your-store.myshopify.com",
"code": "hacc_abc123..."
}
)