Manage Seller Store Contact
Managing Seller Store Contact Data
Endpoint
Base URL
http://localhost:8080
Add Contact
Method and Endpoint
POST /api/sellers/current/stores/:store_id/contact
Headers
Authorization: Bearer access_token
Request Body
Request Body
{
"name": "store-name",
"email": "example@gmail.com",
"phone": "0123456778"
}
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Successfully add store contact"
}
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 Contact
Method and Endpoint
GET /api/sellers/current/stores/:store_id/contact
Headers
Authorization: Bearer access_token
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Successfully get seller contact",
"result": {
"name": "store-name",
"email": "example@gmail.com",
"phone": "0123456778"
}
}
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 Contact
Method and Endpoint
PUT /api/sellers/current/stores/:store_id/contact
Headers
Authorization: Bearer access_token
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Successfully update store contact"
}
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 Contact
Method and Endpoint
DELETE /api/sellers/current/stores/:store_id/contact
Headers
Authorization: Bearer access_token
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Successfully remove store contact"
}
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"
}