Merchants¶
These endpoints manage merchant-related data.
GET /api/merchants/
¶
- Description: Lists all merchants available on the blockchain.
- Response Body (Success): An array of merchant summaries.
GET /api/merchants/:id
¶
- Description: Retrieves a single merchant's details, including all associated reviews.
- URL Parameters:
id
: The unique ID of the merchant.
- Response Body (Success):
- Response Body (Failure):
POST /api/merchants/
¶
- Description: Creates a new merchant. Requires authentication.
- Headers:
Authorization: Bearer <token>
- Request Body:
- Response Body (Success):