Hanzo Commerce
Headless E-commerce Platform
Products, carts, checkout, orders and returns behind an API, with no storefront attached.
An order, start to end01 / 05

/variant/{id}An order, start to end
processorStripe
01
Product and variant
A product holds the description; a variant holds the size, the colour and the price.
/product/{id}Get a specific product/variant/{id}Get a specific product variant/store/{id}/variant/{key}Get a specific variant in a store
02
Cart
A cart is a real object with its own id, so someone can leave and come back.
/cart/{id}Get details for a specific cart/cart/{id}/setUpdate cart items and quantities/cart/{id}/discardRemove a cart
03
Authorize
Hold the money when the order is placed.
/checkout/authorizeAuthorize payment for later capture/checkout/chargeProcess a direct checkout charge
04
Capture
Take it when the box ships.
/order/{id}/captureCapture payment for a previously authorized order/checkout/capture/{id}Capture payment for a previously authorized checkout
05
Refund or return
A return is a first-class object rather than a note in a support ticket.
/order/{id}/refundProcess a refund for an order/return/{id}Get details for a specific return/returnList all returns
Who takes the money
The processor is a setting, not an architecture. Each one gets its own webhook endpoint, so adding a second — or leaving the first — is a change here rather than a change in your checkout.
Payment Gateways
Marketing & CRM
- Mailchimp
- Klaviyo
- HubSpot
- Salesforce
- Segment
- Meta Pixel
- Google Analytics
- Customer.io
Shipping & Fulfillment
- ShipStation
- ShipBob
- EasyPost
- FedEx
- UPS
- USPS
- DHL
- AfterShip
Accounting & ERP
- QuickBooks
- Xero
- NetSuite
- SAP
- Avalara
- TaxJar
- Sage
- Microsoft Dynamics
The endpoints
Grouped by what they are about. Every one of them is scoped to your organisation by the token you call with, so multi-tenancy is not something you implement on top.
3 across 2 groups
Hanzo Commerce API Endpoints
/cartList all carts for the current session/user/cart/{id}Get details for a specific cart/cart/{id}/setUpdate cart items and quantities/cart/{id}/discardRemove a cart/checkout/capture/{id}Capture payment for a previously authorized checkout/checkout/chargeProcess a direct checkout charge/checkout/authorizeAuthorize payment for later capture/collection/{id}Get a specific product collection/collectionList all product collections/couponList all available coupons/coupon/{id}Get details for a specific coupon/discountList all available discounts/discount/{id}Get details for a specific discount/order/{id}Get a specific order/orderList all orders/order/{id}/refundProcess a refund for an order/order/{id}/paymentsView payment details for an order/order/{id}/captureCapture payment for a previously authorized order/productList all products/product/{id}Get a specific product/return/{id}Get details for a specific return/returnList all returns/reviewList all product reviews/review/{id}Get a specific product review/store/{id}Get a specific store/storeList all stores/site/{siteid}/deployDeploy a site/storefront/store/{id}/product/{key}Get a specific product in a store/store/{id}/variant/{key}Get a specific variant in a store/variant/{id}Get a specific product variant/variantList all product variants
/Process a refund for an orderorder/ {id}/refund
Hanzo Identity API Endpoints
/account/loginUser authentication endpoint/accountManage user account details/account/createCreate a new user account/user/{id}Get or update a specific user/userList all users (admin)
Hanzo Marketing API Endpoints
/affiliate/{id}Get a specific affiliate/affiliate/{id}/connectConnect an affiliate to an account/affiliateList all affiliates/affiliate/{id}/transactionsView affiliate transactions/referralList all referrals/referral/{id}Get a specific referral/campaign/{id}Get a specific marketing campaign/campaignList all marketing campaigns/form/{id}Get a specific marketing form/formList all marketing forms/form/{id}/submitSubmit data to a marketing form/referrer/{id}Get a specific referrer/referrer/{id}/referralsList referrals for a specific referrer/referrerList all referrers/referrer/{id}/transactionsView referrer transactions/submission/{id}Get a specific form submission/submissionList all form submissions/subscriber/{id}Get a specific subscriber/subscriberList all subscribers/transaction/{id}Get a specific marketing transaction
Hanzo Payments API Endpoints
/invoice/{id}Get a specific invoice/invoiceList all invoices/payment/{id}Get a specific payment/paymentList all payments/payment/{id}/refundProcess a refund for a payment/plan/{id}Get a specific subscription plan/planList all subscription plans/plan/{id}/refundProcess a refund for a subscription plan/subscription/{id}Get a specific subscription/subscriptionList all subscriptions
/Process a refund for a paymentpayment/ {id}/refund /Process a refund for a subscription planplan/ {id}/refund
Hanzo Platform API Endpoints
/mediaList all media assets/media/{id}Get a specific media asset/organization/{id}Get a specific organization/organizationList all organizations/organization/{id}/integrationsList all integrations for an organization/organization/{id}/integrations/{integrationId}Get a specific integration/webhookList all webhooks/webhook/{id}Get a specific webhook
What it keeps track of
The nouns a shop is made of, each one addressable and none of them assuming what your site looks like.
Carts
01 / 10
A cart is a real object with its own id, so someone can leave and come back, and you can look at what they left in it.
/cartList all carts for the current session/userCommerce/cart/{id}Get details for a specific cart/cart/{id}/setUpdate cart items and quantities/cart/{id}/discardRemove a cart
Products and variants
02 / 10
A product holds the description; a variant holds the size, the colour and the price. Stock is tracked on the variant, which is the thing people actually buy.
/productList all productsCommerce/product/{id}Get a specific product/variantList all product variants/variant/{id}Get a specific product variant/collectionList all product collections/collection/{id}Get a specific product collection/reviewList all product reviews/review/{id}Get a specific product review
Authorize and capture
03 / 10
Two steps, not one. Hold the money when the order is placed and take it when the box ships, which is what your accountant and your customer both expect.
/checkout/authorizeAuthorize payment for later captureCommerce/checkout/capture/{id}Capture payment for a previously authorized checkout/checkout/chargeProcess a direct checkout charge/order/{id}/captureCapture payment for a previously authorized order
Coupons and discounts
04 / 10
Applied to a cart or to an invoice, and recorded as their own line. The reason a total came out lower survives the transaction.
/couponList all available couponsCommerce/coupon/{id}Get details for a specific coupon/discountList all available discounts/discount/{id}Get details for a specific discount
Prices per store
05 / 10
One catalogue can answer differently for different stores. The product does not have to be duplicated to be priced twice.
/storeList all storesCommerce/store/{id}Get a specific store/store/{id}/product/{key}Get a specific product in a store/store/{id}/variant/{key}Get a specific variant in a store
Subscriptions
06 / 10
Plans, prices and renewals sit in the same service as the orders, so a customer who buys once and subscribes once is one customer with one history.
/planList all subscription plansPayments/plan/{id}Get a specific subscription plan/subscriptionList all subscriptions/subscription/{id}Get a specific subscription/plan/{id}/refundProcess a refund for a subscription plan
Orders, refunds and returns
07 / 10
The whole life of an order, including the parts nobody demos. A return is a first-class object rather than a note in a support ticket.
/orderList all ordersCommerce/order/{id}Get a specific order/order/{id}/paymentsView payment details for an order/order/{id}/refundProcess a refund for an order/returnList all returns/return/{id}Get details for a specific return
Many stores, one install
08 / 10
Stores are scoped by organisation, so an agency or a marketplace runs several without running several copies of this.
/organizationList all organizationsPlatform/organization/{id}Get a specific organization/storeList all storesCommerce/site/{siteid}/deployDeploy a site/storefront
It never sees a card
09 / 10
Card numbers are tokenized in a separate service and this one only ever holds the token. That is a smaller thing to secure, and a much smaller thing to be audited on.
/paymentList all paymentsPayments/payment/{id}Get a specific payment/payment/{id}/refundProcess a refund for a payment/invoice/{id}Get a specific invoice
Your data, per tenant
10 / 10
Each organisation's records live in its own store. Isolation is a file boundary rather than a WHERE clause somebody has to remember to write.
/organization/{id}Get a specific organizationPlatform/organization/{id}/integrationsList all integrations for an organization/user/{id}Get or update a specific userIdentity/accountManage user account details
What you are running
Worth knowing before you put your revenue behind it.
A single container with no queue, no cache tier and no companion services to stand up beside it. Run it locally the same way it runs in production.
Tenants are separated by where their data lives rather than by a column, so one tenant's query cannot reach another's rows.
Card numbers are tokenized by a separate service. This one is connected to that boundary without being inside it, which is the whole point of drawing one.
Sign-in, organisations and tokens come from IAM. There is no second user table here to fall out of step with the first.
It runs on its own or as a subsystem inside the unified Hanzo Cloud binary. Same code, same routes, one fewer process to operate.
MIT or Apache-2.0, your choice. Read how your money is handled instead of taking our word for it.
When to reach for it
Four shapes that fit. If none of them is yours, a hosted shop is probably the easier answer.
A storefront you designed
You have a front end you like and do not want a theme system telling you how it works. This gives you the catalogue, the cart and the checkout as calls, and stays out of the rendering.
One catalogue, several stores
A brand with regional shops, or an agency running stores for clients. Stores are scoped by organisation and can price the same product differently.
Selling a subscription and a thing
Hardware with a plan, or a course with a membership. Orders and subscriptions are in one service, so the customer has one history rather than two accounts.
Taking payment inside your own product
You are not building a shop, you are charging for what you already made. Use the checkout, the invoices and the meters, and ignore the rest.
Get Commerce
- Start SellingLaunch your store with our easy-to-use platformTry Hanzo →
- DocumentationExplore our guides and API referencesView Docs →
- For DevelopersIntegrate our APIs into your applicationsAPI Reference →
- Need a Custom Solution?Our team of experts can help you design and implement a tailored e-commerce solution for your unique business needs.Contact Sales →
Create a product, then sell it
The whole thing runs from one container. Point your front end at it and take an order.