Stores
Create Store

Create Seller Store

Create Store data

Endpoint

Base URL
http://localhost:8080
Method and Endpoint
POST /api/sellers/current/stores
Headers
Authorization: Bearer access_token

Request Body

Request Body
{
	"Name": "store-name",
	"Description": "store-desc",
	"Logo": "logo.png",
	"Banner": "banner.png"
}

Responses

You will get responses like this:

200 (success)

Response Body
{
    "message": "Create store data successfully",
    "result": {
        "InsertId": "6658dde1f6165e50b056027e"
    }
}

400 (bad request)

if name just 1 char

Response Body
{
    "error": "Invalid request bodyname: s does not validate as minstringlength(2)"
}

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"
}