콘텐츠로 건너뛰기

개요

  • 버전: 2.0
  • 서버: https://api.xsolla.com/merchant/v2/

본 API 참조는 정기 결제, 쿠폰 및 프로모션 관리 엔드포인트에 관하여 기술하고 있습니다. 정기 결제에 대한 더 자세한 내용은 제품 가이드용어집을 참조하십시오.

OpenAPI 설명 다운로드
언어
서버
Mock server
https://xsolla.redocly.app/_mock/ko/api/subscriptions/
작업
작업

요청

Creates a subscription-based product.

보안
basicAuth
경로
project_idinteger필수

Project ID.

본문application/json필수
descriptionobject

현지화된 아이템 설명입니다.

group_idstring필수

제품이 연결된 그룹의 ID입니다.

namestring필수

제품 이름입니다.

curl -i -X POST \
  -u <username>:<password> \
  'https://xsolla.redocly.app/_mock/ko/api/subscriptions/projects/{project_id}/subscriptions/products' \
  -H 'Content-Type: application/json' \
  -d '{
    "description": {
      "en": "Kids TV"
    },
    "group_id": "charge",
    "name": "Channel2"
  }'

응답

생성됨.

본문application/json
product_idinteger
응답
application/json
{ "product_id": 172003 }

요청

Deletes a subscription-based product.

보안
basicAuth
경로
project_idinteger필수

Project ID.

product_idinteger필수

Product ID the plans are linked to.

curl -i -X DELETE \
  -u <username>:<password> \
  'https://xsolla.redocly.app/_mock/ko/api/subscriptions/projects/{project_id}/subscriptions/products/{product_id}'

응답

콘텐츠가 없습니다.

요청

Updates a subscription-based product.

보안
basicAuth
경로
project_idinteger필수

Project ID.

product_idinteger필수

Product ID the plans are linked to.

본문application/json필수
descriptionobject

현지화된 아이템 설명입니다.

group_idstring필수

제품이 연결된 그룹의 ID입니다.

namestring필수

제품 이름입니다.

curl -i -X PUT \
  -u <username>:<password> \
  'https://xsolla.redocly.app/_mock/ko/api/subscriptions/projects/{project_id}/subscriptions/products/{product_id}' \
  -H 'Content-Type: application/json' \
  -d '{
    "description": {
      "en": "Description in English."
    },
    "group_id": "charge13",
    "name": "Channel23"
  }'

응답

OK(확인).

본문application/json
idinteger or null

Product ID the plans are linked to.

descriptionobject

현지화된 아이템 설명입니다.

group_idstring

제품이 연결된 그룹의 ID입니다.

namestring

제품 이름입니다.

응답
application/json
{ "description": { "en": "Description in English." }, "group_id": "charge13", "id": 1713603, "name": "Channel23" }
작업
작업
작업
작업
작업