Skip to Content
Sayren 유저가이드
구매자

구매자 적립금 내역 조회

적립·회수·소멸·조정 내역. 최신순.

GET
/v1/customers/{customerId}/points/history

적립·회수·소멸·조정 내역. 최신순.

Authorization

accessToken
headerAuthorizationBearer <JWT>

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

Path Parameters

customerId*string

Query Parameters

page?integer
Range1 <= value
size?integer
Range1 <= value <= 100
type?string

유형(EARN_PURCHASE 등)

from?string

이 시각 이후(포함)

Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
to?string

이 시각 이전(미포함)

Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time

Header Parameters

X-Store-Id*string

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

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
Example Request
curl -X GET 'https://api.sayren.io/v1/customers/string/points/history' \
  -H 'X-Store-Id: string'
Example Response
{
  "meta": {
    "status": 200,
    "code": "OK",
    "message": "OK",
    "isSuccess": true
  },
  "data": {
    "page": 0,
    "size": 0,
    "totalElements": 0,
    "totalPages": 0,
    "contents": [
      {
        "entryId": "string",
        "memberId": "string",
        "type": "EARN_REVIEW",
        "amount": 0,
        "balanceAfter": 0,
        "refType": "string",
        "refId": "string",
        "memo": "string",
        "actor": "string",
        "createdAt": "string"
      }
    ]
  },
  "error": null
}