API Reference
Hanzo Commerce API
Hanzo Commerce API provides a complete e-commerce platform with support for
Hanzo Commerce API provides a complete e-commerce platform with support for
bearerAuth — HTTP bearer
BearerAuth — HTTP bearer
All Hanzo APIs share one bearer credential and common error and pagination conventions. See API conventions.
curl -H "Authorization: Bearer $HANZO_API_KEY" https://commerce.hanzo.ai
| Method | Endpoint | Description |
|---|
GET | /v1/commerce/access/{mode}/{id} | Get access token |
POST | /v1/commerce/access/{mode}/{id} | Create or delete access token |
DELETE | /v1/commerce/access/{mode}/{id} | Delete access token |
| Method | Endpoint | Description |
|---|
GET | /v1/commerce/account | Get current account |
PUT | /v1/commerce/account | Update account |
PATCH | /v1/commerce/account | Partially update account |
POST | /v1/commerce/account/login | Login to account |
POST | /v1/commerce/account/create | Create new account |
GET | /v1/commerce/account/exists/{emailorusername} | Check if account exists |
POST | /v1/commerce/account/enable/{tokenid} | Enable account with token |
POST | /v1/commerce/account/reset | Request password reset |
POST | /v1/commerce/account/confirm/{tokenid} | Confirm password reset |
GET | /v1/commerce/account/order/{orderid} | Get account order |
PATCH | /v1/commerce/account/order/{orderid} | Update account order |
POST | /v1/commerce/account/withdraw | Withdraw funds |
POST | /v1/commerce/account/paymentmethod/{paymentmethodtype} | Create payment method |
| Method | Endpoint | Description |
|---|
GET | /v1/commerce/affiliate | List affiliates |
POST | /v1/commerce/affiliate | Create affiliate |
GET | /v1/commerce/affiliate/{affiliateid} | Get affiliate |
GET | /v1/commerce/affiliate/{affiliateid}/connect | Connect affiliate |
| Method | Endpoint | Description |
|---|
POST | /v1/commerce/auth | Authenticate user (OAuth2) |
| Method | Endpoint | Description |
|---|
GET | /v1/commerce/cart | List carts |
POST | /v1/commerce/cart | Create cart |
GET | /v1/commerce/cart/{cartid} | Get cart |
PUT | /v1/commerce/cart/{cartid} | Update cart |
PATCH | /v1/commerce/cart/{cartid} | Partially update cart |
DELETE | /v1/commerce/cart/{cartid} | Delete cart |
POST | /v1/commerce/cart/{cartid}/set | Set item in cart |
POST | /v1/commerce/cart/{cartid}/discard | Discard cart |
| Method | Endpoint | Description |
|---|
POST | /v1/commerce/checkout/authorize | Authorize new payment |
POST | /v1/commerce/checkout/authorize/{orderid} | Authorize payment for existing order |
POST | /v1/commerce/checkout/capture/{orderid} | Capture authorized payment |
POST | /v1/commerce/checkout/charge | Authorize and capture in one step |
POST | /v1/commerce/checkout/confirm/{orderid} | Confirm order |
POST | /v1/commerce/checkout/cancel/{orderid} | Cancel order |
GET | /v1/commerce/checkout/ethereum/lookup/{proxyaddress} | Lookup Ethereum proxy address |
| Method | Endpoint | Description |
|---|
POST | /v1/commerce/counter | Search counters |
POST | /v1/commerce/counter/dashboard/daily | Get daily dashboard metrics |
GET | /v1/commerce/counter/product/{productid} | Get product counters |
GET | /v1/commerce/counter/topline | Get topline metrics |
| Method | Endpoint | Description |
|---|
GET | /v1/commerce/form | List forms |
POST | /v1/commerce/form | Create form |
GET | /v1/commerce/form/{formid} | Get form |
POST | /v1/commerce/form/{formid}/submit | Submit form |
POST | /v1/commerce/form/{formid}/subscribe | Subscribe via form |
| Method | Endpoint | Description |
|---|
POST | /v1/commerce/marketing | Create marketing campaign |
| Method | Endpoint | Description |
|---|
GET | /v1/commerce/order | List orders |
POST | /v1/commerce/order | Create order |
GET | /v1/commerce/order/{orderid} | Get order |
PUT | /v1/commerce/order/{orderid} | Update order |
PATCH | /v1/commerce/order/{orderid} | Partially update order |
DELETE | /v1/commerce/order/{orderid} | Delete order |
POST | /v1/commerce/order/{orderid}/authorize | Authorize payment for order |
POST | /v1/commerce/order/{orderid}/capture | Capture authorized payment |
POST | /v1/commerce/order/{orderid}/charge | Authorize and capture payment (single step) |
POST | /v1/commerce/order/{orderid}/refund | Refund order |
GET | /v1/commerce/order/{orderid}/payments | Get order payments |
GET | /v1/commerce/order/{orderid}/returns | Get order returns |
GET | /v1/commerce/order/{orderid}/status | Get order status |
GET | /v1/commerce/order/{orderid}/sendorderconfirmation | Send order confirmation email |
GET | /v1/commerce/order/{orderid}/sendrefundconfirmation | Send refund confirmation email |
GET | /v1/commerce/order/{orderid}/sendfulfillmentconfirmation | Send fulfillment confirmation email |
| Method | Endpoint | Description |
|---|
GET | /v1/commerce/product | List products |
POST | /v1/commerce/product | Create product |
GET | /v1/commerce/product/{productid} | Get product |
PUT | /v1/commerce/product/{productid} | Update product |
PATCH | /v1/commerce/product/{productid} | Partially update product |
DELETE | /v1/commerce/product/{productid} | Delete product |
| Method | Endpoint | Description |
|---|
GET | /v1/commerce/search/user | Search users |
GET | /v1/commerce/search/order | Search orders |
POST | /v1/commerce/search/note | Search notes |
| Method | Endpoint | Description |
|---|
GET | /v1/commerce/store | List stores |
POST | /v1/commerce/store | Create store |
GET | /v1/commerce/store/{storeid} | Get store |
GET | /v1/commerce/store/{storeid}/product/{key} | Get store product |
GET | /v1/commerce/store/{storeid}/variant/{key} | Get store variant |
GET | /v1/commerce/store/{storeid}/listing | List store listings |
GET | /v1/commerce/store/{storeid}/listing/{key} | Get store listing |
POST | /v1/commerce/store/{storeid}/listing/{key} | Create store listing |
PUT | /v1/commerce/store/{storeid}/listing/{key} | Update store listing |
PATCH | /v1/commerce/store/{storeid}/listing/{key} | Partially update store listing |
DELETE | /v1/commerce/store/{storeid}/listing/{key} | Delete store listing |
POST | /v1/commerce/store/{storeid}/checkout/authorize | Authorize payment via store |
POST | /v1/commerce/store/{storeid}/checkout/charge | Charge payment via store |
| Method | Endpoint | Description |
|---|
POST | /v1/commerce/subscribe | Create subscription |
GET | /v1/commerce/subscribe/{subscriptionid} | Get subscription |
PATCH | /v1/commerce/subscribe/{subscriptionid} | Update subscription |
DELETE | /v1/commerce/subscribe/{subscriptionid} | Cancel subscription |
| Method | Endpoint | Description |
|---|
POST | /v1/commerce/transaction | Create transaction |
GET | /v1/commerce/transaction/{kind}/{id} | List transactions for entity |
POST | /v1/commerce/transaction/hold | Create hold |
DELETE | /v1/commerce/transaction/hold/{id} | Remove hold |
| Method | Endpoint | Description |
|---|
GET | /v1/commerce/user | List users |
POST | /v1/commerce/user | Create user |
GET | /v1/commerce/user/{userid} | Get user |
PUT | /v1/commerce/user/{userid} | Update user |
PATCH | /v1/commerce/user/{userid} | Partially update user |
DELETE | /v1/commerce/user/{userid} | Delete user |
GET | /v1/commerce/user/{userid}/password/reset | Reset user password (admin) |
GET | /v1/commerce/user/{userid}/orders | Get user orders |
GET | /v1/commerce/user/{userid}/referrals | Get user referrals |
GET | /v1/commerce/user/{userid}/referrers | Get user referrers |
GET | /v1/commerce/user/{userid}/transactions | Get user transactions |
GET | /v1/commerce/user/{userid}/paymentmethods | Get user payment methods |
GET | /v1/commerce/user/{userid}/wallet | Get user wallet |
POST | /v1/commerce/user/{userid}/wallet/account | Create wallet account |
GET | /v1/commerce/user/{userid}/wallet/account/{name} | Get wallet account |
POST | /v1/commerce/user/{userid}/wallet/pay | Send payment from wallet |
Hanzo Commerce API guide · All Hanzo APIs · OpenAPI spec
How is this guide?