Manage Seller Store Address
Managing Seller Store Address Data
Endpoint
Base URL
http://localhost:8080
Add Address
Method and Endpoint
POST /api/sellers/current/stores/:store_id/address
Headers
Authorization: Bearer access_token
Request Body
Request Body
{
"house_name": "house-name",
"street_name": "street-name",
"city_name": "city-name",
"pin_code": "12345"
}
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Successfully add store address"
}
404 (not found)
Response Body
{
"error": "store not found"
}
401 (unauthorized)
Response Body
{
"error": "Invalid authorization header"
}
401 (unauthorized - expire token)
Response Body
{
"error": "token is expired: token is expired by 2m19s"
}
500 (server error)
Response Body
{
"error": "Internal server error"
}
Get Address
Method and Endpoint
GET /api/sellers/current/stores/:store_id/address
Headers
Authorization: Bearer access_token
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Successfully get seller address",
"result": {
"house_name": "house-name",
"street_name": "street-name",
"city_name": "city-name",
"pin_code": "12345"
}
}
404 (not found)
Response Body
{
"error": "store not found"
}
401 (unauthorized)
Response Body
{
"error": "Invalid authorization header"
}
401 (unauthorized - expire token)
Response Body
{
"error": "token is expired: token is expired by 2m19s"
}
500 (server error)
Response Body
{
"error": "Internal server error"
}
Edit Address
Method and Endpoint
PUT /api/sellers/current/stores/:store_id/address
Headers
Authorization: Bearer access_token
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Successfully update store address"
}
404 (not found)
Response Body
{
"error": "store not found"
}
401 (unauthorized)
Response Body
{
"error": "Invalid authorization header"
}
401 (unauthorized - expire token)
Response Body
{
"error": "token is expired: token is expired by 2m19s"
}
500 (server error)
Response Body
{
"error": "Internal server error"
}
Delete Address
Method and Endpoint
DELETE /api/sellers/current/stores/:store_id/address
Headers
Authorization: Bearer access_token
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Successfully remove store address"
}
404 (not found)
Response Body
{
"error": "store not found"
}
401 (unauthorized)
Response Body
{
"error": "Invalid authorization header"
}
401 (unauthorized - expire token)
Response Body
{
"error": "token is expired: token is expired by 2m19s"
}
500 (server error)
Response Body
{
"error": "Internal server error"
}