콘텐츠로 건너뛰기

개요

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

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

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

요청

Lists all subscription-based products.

보안
basicAuth
경로
project_idinteger필수

Project ID.

쿼리
offsetinteger

Number of the element from which the list is generated (the count starts from 0).

limitinteger필수

Limit for the number of elements on the page.

group_idstring

이러한 요금제가 연결된 그룹의 ID입니다.

product_idinteger

Product ID the plans are linked to.

curl -i -X GET \
  -u <username>:<password> \
  'https://xsolla.redocly.app/_mock/ko/api/subscriptions/projects/{project_id}/subscriptions/products?offset=0&limit=0&group_id=string&product_id=0'

응답

OK(확인).

본문application/jsonArray [
idinteger or null

Product ID the plans are linked to.

descriptionobject

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

group_idstring

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

namestring

제품 이름입니다.

]
응답
application/json
[ { "description": {}, "group_id": "charge", "id": 714, "name": "Channel" }, { "description": {}, "group_id": "notify", "id": 715, "name": "notify" }, { "description": {}, "group_id": "charge", "id": 716, "name": "charge2" }, { "description": {}, "group_id": "charge", "id": 486, "name": "Channel2" } ]

요청

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}'

응답

콘텐츠가 없습니다.

작업
작업
작업
작업
작업