Billing Subscriptions

Get Subscription Usage Summary

구독 이번 결제주기 사용량 조회 (실사용 축, 콘솔 표시 전용 — 청구 계산과 무관).

get/v1/subscriptions/{subscription_id}/usage-summary

Request

  • Base URL: https://api.xdata.kr (the document declares no server; this is the origin it was published from)
  • URL: https://api.xdata.kr/v1/subscriptions/{subscription_id}/usage-summary
  • Auth: one of:
    • HTTP basic
    • OAuth 2 (authorization code, authorization URL https://api.xdata.kr/oauth/authorize, token URL https://api.xdata.kr/oauth/token)

Path parameters

subscription_idinteger required

Query parameters

env_scope'production' | 'real_test' | 'sandbox' nullable

환경을 고릅니다. 값은 production · real_test · sandbox 중 하나입니다. 경로 접두(/v1/sandbox/... · /v1/test/... · /v1/production/...) · X-Env-Scope 헤더 · env_scope 쿼리 가운데 한 통로로 반드시 보내야 합니다. 빼면 자동으로 채우지 않고 거절하며, 두 통로에 서로 다른 값을 담아도 거절합니다. 거절은 HTTP 422 이고 오류 코드는 VALIDATION_ENV_SCOPE_MISMATCH 입니다.

Headers

Authorizationstring nullable
X-Env-Scope'production' | 'real_test' | 'sandbox' nullable

환경을 고릅니다. 값은 production · real_test · sandbox 중 하나입니다. 경로 접두(/v1/sandbox/... · /v1/test/... · /v1/production/...) · X-Env-Scope 헤더 · env_scope 쿼리 가운데 한 통로로 반드시 보내야 합니다. 빼면 자동으로 채우지 않고 거절하며, 두 통로에 서로 다른 값을 담아도 거절합니다. 거절은 HTTP 422 이고 오류 코드는 VALIDATION_ENV_SCOPE_MISMATCH 입니다.

Response

Successful Response

subscription_idinteger required

subscriptions.id.

organization_idinteger required

소유 조직 PK.

env_scope'sandbox' | 'real_test' | 'production' required

환경 스코프.

period_startstring date-time nullable

현재 청구 기간 시작 (미확정 시 NULL).

period_endstring date-time nullable

현재 청구 기간 종료 (미확정 시 NULL).

included_usage_free_unitsinteger nullable

플랜 무료 포함건수(N). NULL=무료 미설정(1건부터 종량 과금).

used_quantityinteger required

현재 청구 기간 내 총 사용량(집계+미집계 합산).

Changes

No recorded changes to this operation across all 1 revision of this API.