정산 (지원 종료 예정)
정산 상세 조회 (폐기 예정)
**폐기 예정(deprecated).** 플랫폼 수수료를 공제하는 정산 모델은 폐기됐다 — PG는 셀러가 직접 계약하고 대금도 PG에서 셀러에게 바로 정산된다. 새 정산 레코드는 더 이상 만들어지지 않으며, 이 API는 기존 레코드 조회만 유지한다. 대체 API는 `GET /v1/sales-report`(PG별 결제·환불 매출 리포트)다.
Deprecated
GET
폐기 예정(deprecated). 플랫폼 수수료를 공제하는 정산 모델은 폐기됐다 — PG는 셀러가 직접 계약하고 대금도 PG에서 셀러에게 바로 정산된다. 새 정산 레코드는 더 이상 만들어지지 않으며, 이 API는 기존 레코드 조회만 유지한다. 대체 API는 GET /v1/sales-report(PG별 결제·환불 매출 리포트)다.
accessTokenheader
AuthorizationBearer <token>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
settlementId*stringpage?string페이지 번호 (1부터, 기본 1)
size?string페이지 크기 (기본 100, 최대 300)
X-Store-Id*string대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다
성공
application/json- response
meta*data*error*|nullcurl -X GET 'https://api.sayren.io/v1/settlements/string' \ -H 'X-Store-Id: string'{ "meta": { "status": 200, "code": "OK", "message": "OK", "isSuccess": true }, "data": { "settlementId": "string", "settlementDate": "string", "payoutDate": "string", "status": "SCHEDULED", "totalPaymentAmount": 0, "totalCommission": 0, "totalDeliveryFee": 0, "adjustmentAmount": 0, "settlementAmount": 0, "itemCount": 0, "details": [ { "orderItemId": "string", "productName": "string", "settlementType": "SALE", "paymentAmount": 0, "salesCommission": 0, "paymentCommission": 0, "commissionRate": 0, "deliveryFee": 0, "settlementAmount": 0, "purchaseDecidedAt": "string" } ] }, "error": null}