출고지·반품지
출고지·반품지 수정
PUT
accessTokenheader
AuthorizationBearer <JWT>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
addressId*stringX-Store-Id*string대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다
application/json- body
type*stringValue in
"SHIPPING""RETURN"name*stringLength
1 <= length <= 50contactName*stringLength
1 <= lengthphone*stringMatch
^01[0-9]{8,9}$zipCode*stringMatch
^[0-9]{5}$address1*stringLength
1 <= lengthaddress2?stringinventoryLocationId?string재고 위치 ID. 등록에서 생략하면 기본 위치, 수정에서 생략하면 지금 연결을 유지한다
Length
1 <= length성공
application/json- response
meta*data*error*|nullcurl -X PUT 'https://api.sayren.io/v1/seller-addresses/string' \
-H 'X-Store-Id: string' \
-H 'Content-Type: application/json' \
-d '{
"type": "SHIPPING",
"name": "string",
"contactName": "string",
"phone": "string",
"zipCode": "string",
"address1": "string"
}'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"addressId": "string",
"type": "SHIPPING",
"name": "string",
"isDefault": true,
"contactName": "string",
"phone": "string",
"zipCode": "string",
"address1": "string",
"address2": "string",
"inventoryLocationId": "string",
"createdAt": "string"
},
"error": null
}