---
title: "Join a price-0 plan without a payment (quota_token_v1 6-6)"
method: POST
path: "/v1/subscriptions/zero-price-plan"
tags: ["Billing Subscriptions"]
---

# Join a price-0 plan without a payment (quota_token_v1 6-6)

`POST /v1/subscriptions/zero-price-plan`

## 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/zero-price-plan`
- 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

- `Authorization` string, 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 입니다.

## Request body

- ZeroPricePlanJoinRequest: 결제 없이 그 요금제의 ACTIVE 구독을 만든다. 같은 요금제에 다시 부르면 바뀌는 것 없이 같은 구독이 온다 - 그래서 Idempotency-Key 를 받지 않는다.
  - `organization_id` integer, required
  - `plan_id` integer, required

## Response `200`

Successful Response

- ZeroPricePlanJoinResponse
  - `organization_id` integer, required
  - `plan_id` integer, required
  - `subscription_id` integer, required
  - `membership_tier` string, required
  - `subscription_status` string, required
  - `idempotent` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xdata/apis/xboss-api.md) · [All operations](https://skmtc.dev/xdata/apis/xboss-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xdata/apis/xboss-api/revisions/816de78950db?raw)
