Offline Billing Bridge

Get Offline Renewal Offer

지금 이 조직이 무통장 구독을 연장할 수 있는가(서버가 정한다) + 연장하면 새 기간 끝 · 금액. 못 하면 eligible=false + 이유.

get/v1/offline-billing/renewal-offer

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/offline-billing/renewal-offer
  • 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)

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

eligibleboolean required
reason'NOT_SUBSCRIBED' | 'NOT_ACTIVE' | 'NOT_OFFLINE' | 'WINDOW_NOT_OPEN' | 'WINDOW_CLOSED' | 'ORDER_PENDING' | 'PLAN_UNAVAILABLE' nullable
subscription_idinteger nullable
plan_idinteger nullable
billing_term'MONTHLY' | 'YEARLY' nullable
current_period_endstring date-time nullable
new_period_endstring date-time nullable
window_opens_atstring date-time nullable
window_closes_atstring date-time nullable
total_amount_minorinteger nullable
currencystring nullable

Changes

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