Skip to Content
Sayren 유저가이드
주문 플로우

플로우 시크릿 저장

같은 이름이면 덮어쓴다. https 외부 주소만(사설·루프백은 400 `FLOW_SECRET_URL_INVALID`), 상점당 20개(409 `FLOW_SECRET_LIMIT_EXCEEDED`).

PUT
/v1/commerce-flows/secrets/{name}

같은 이름이면 덮어쓴다. https 외부 주소만(사설·루프백은 400 FLOW_SECRET_URL_INVALID), 상점당 20개(409 FLOW_SECRET_LIMIT_EXCEEDED).

Authorization

accessToken
headerAuthorizationBearer <JWT>

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

Path Parameters

name*string

Header Parameters

X-Store-Id*string

대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다

Request Body

application/json
  1. body
url*string

요청 주소. https만, 사설·루프백 주소는 400 FLOW_SECRET_URL_INVALID

Formaturi
headers?

함께 보낼 헤더(인증 등). 값은 암호화해 두고 다시 보여 주지 않는다

Default{}

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
Example Request
curl -X PUT 'https://api.sayren.io/v1/commerce-flows/secrets/string' \
  -H 'X-Store-Id: string' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "http://example.com"
}'
Example Response
{
  "meta": {
    "status": 200,
    "code": "OK",
    "message": "OK",
    "isSuccess": true
  },
  "data": {
    "name": "string",
    "url": "string",
    "headerNames": [
      "string"
    ],
    "updatedAt": "string"
  },
  "error": null
}