Merchant Endpoints
Manage merchants for product and inventory management.
Base Pathβ
/api/merchant
Endpointsβ
List Merchantsβ
GET /api/merchant
Authorization: Bearer {token}
Create Merchantβ
POST /api/merchant
Authorization: Bearer {token}
{
"name": "Online Store",
"code": "STORE-001",
"email": "store@example.com",
"description": "Primary online storefront",
"active": true,
"currency": "USD",
"contact": {
"firstName": "Jane",
"lastName": "Smith",
"phone": "+1234567890"
}
}
Get Merchantβ
GET /api/merchant/:id
Authorization: Bearer {token}
Update Merchantβ
PUT /api/merchant/:id
Authorization: Bearer {token}
Delete Merchantβ
DELETE /api/merchant/:id
Authorization: Bearer {token}
Add Products to Merchantβ
POST /api/merchant/:id/products
Authorization: Bearer {token}
Related Pagesβ
- Product Endpoints β products API
- Warehouse Endpoints β warehouses
- Products & Inventory β feature guide