Skip to main content
GET
/
api
/
v1
/
subscriptions
/
{subscriptionId}
/
calculate
사용량 정산
curl --request GET \
  --url https://api.steppay.kr/api/v1/subscriptions/{subscriptionId}/calculate \
  --header 'Secret-Token: <api-key>'
{
  "amount": 123,
  "items": [
    {
      "subscriptionItemId": 123,
      "amount": 123,
      "quantity": 123,
      "name": "<string>",
      "type": "SKU",
      "currency": "<string>",
      "count": 123,
      "unit": "<string>",
      "additionalBillings": {
        "id": 123,
        "type": "USAGE_BASED_WITH_RANGE",
        "ranges": [
          {
            "id": 123,
            "until": 123,
            "price": 123
          }
        ]
      },
      "usageFormula": "<string>"
    }
  ],
  "startDate": "2023-11-07T05:31:56Z",
  "endDate": "2023-11-07T05:31:56Z"
}

Authorizations

Secret-Token
string
header
required

Path Parameters

subscriptionId
integer<int64>
required

구독 번호

Response

정상적으로 조회됨

amount
number
required

예상 결제 금액

items
object[]
required

예상 결제 금액 항목들

startDate
string<date-time>
required

측정 시작 시점

endDate
string<date-time>
required

측정 종료 시점