Skip to Content
Sayren 유저가이드
상점 만들기

상점 만들기

새 상점을 만들고 만든 사람을 OWNER로 둔다. Sayren 계정으로 로그인한 상점 플랫폼·CLI 토큰만 부를 수 있다. 계정당 상점 한도를 넘으면 409. 같은 `Idempotency-Key`로 다시 부르면 처음 만든 상점을 돌려준다

POST
/v1/stores

새 상점을 만들고 만든 사람을 OWNER로 둔다. Sayren 계정으로 로그인한 상점 플랫폼·CLI 토큰만 부를 수 있다. 계정당 상점 한도를 넘으면 409. 같은 Idempotency-Key로 다시 부르면 처음 만든 상점을 돌려준다

Authorization

accessToken
headerAuthorizationBearer <JWT>

Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)

Header Parameters

idempotency-key?string

멱등키. 같은 키로 다시 보내면 처음 결과를 돌려주고 한 번만 적용한다. 재시도에는 같은 키를 쓴다

Lengthlength <= 255

Request Body

application/json
  1. body
name*string

상점 이름(2~50자). 나중에 상점 정보에서 바꿀 수 있다

Length2 <= length <= 50

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
Example Request
curl -X POST 'https://api.sayren.io/v1/stores' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string"
}'
Example Response200
{
  "meta": {
    "status": 200,
    "code": "OK",
    "message": "OK",
    "isSuccess": true
  },
  "data": {
    "storeId": "string",
    "storeName": "string",
    "storeCode": "string",
    "role": "OWNER",
    "status": "ACTIVE"
  },
  "error": null
}