Get Local Seller by ID
Method: GET
/api/v1/local-sellers/{localSellerId}
Description
This endpoint retrieves the details of a specific local seller using their unique seller ID. It returns all available information about the local seller, such as name, address, type, and contact details.
🔑 Authentication
This endpoint requires authentication via headers.
| Param | Value | Type |
|---|---|---|
userId | {{userId}} | string |
tenantId | {{tenantId}} | string (optional) |
Path Parameter
| Name | Type | Description |
|---|---|---|
localSellerId | string | The unique ID of the local seller. |
Response: 200 OK
A successful response returns the details of the local seller.
Example Response:
{
"sellerId": "12345",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+2348012345678",
"address": "123 Farm Road",
"country": {
"name": "Nigeria",
"code": "NG",
"currency": "NGN"
},
"state": {
"name": "Lagos",
"code": "LA"
},
"lga": {
"name": "Ikeja",
"code": "IK"
},
"type": "FARMER",
"createdAt": "2025-02-12T04:04:39.986Z",
"status": "ACCEPTED"
}
LANGUAGE
CURL REQUEST
curl --request GET \
--url /api/v1/local-sellers/{localSellerId} \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!