콘텐츠로 건너뛰기

개요

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

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

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

요청

Lists all subscription payments.

보안
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.

user_idstring

User ID.

statusstring

트랜잭션 상태입니다.

열거형 값설명
done

결제가 성공적으로 처리되었습니다.

fail

결제가 성공적으로 처리되지 않았거나 환불이 이루어지지 않았습니다.

datetime_fromstring(datetime)

날짜 범위의 시작입니다.

datetime_tostring(datetime)

날짜 범위의 끝입니다.

subscription_idinteger

Subscription ID.

curl -i -X GET \
  -u <username>:<password> \
  'https://xsolla.redocly.app/_mock/ko/api/subscriptions/projects/{project_id}/subscriptions/payments?offset=0&limit=0&user_id=string&status=done&datetime_from=string&datetime_to=string&subscription_id=0'

응답

OK(확인).

본문application/json
응답
application/json
[ { "date_payment": "2016-04-05T10:02:01+03:00", "id": 67683, "id_payment": 203960, "status": "fail", "subscription": {} }, { "date_payment": "2015-09-21T17:06:47+03:00", "id": 1531, "id_payment": 168866, "status": "done", "subscription": {} } ]

요청

Lists all payments made by a specific user.

보안
basicAuth
경로
project_idinteger필수

Project ID.

user_idstring필수

User ID.

쿼리
statusstring

트랜잭션 상태입니다.

열거형 값설명
done

결제가 성공적으로 처리되었습니다.

fail

결제가 성공적으로 처리되지 않았거나 환불이 이루어지지 않았습니다.

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.

datetime_fromstring(datetime)

Sample date. Use this to find subscriptions created later than the request.

datetime_tostring(datetime)

Sample date. Use this to find subscriptions created later than the request.

subscription_idinteger

Subscription ID.

curl -i -X GET \
  -u <username>:<password> \
  'https://xsolla.redocly.app/_mock/ko/api/subscriptions/projects/{project_id}/users/{user_id}/subscriptions/payments?status=done&offset=0&limit=0&datetime_from=string&datetime_to=string&subscription_id=0'

응답

OK(확인).

본문application/json
응답
application/json
[ { "date_payment": "2016-04-05T10:02:01+03:00", "id": 6746083, "id_payment": 202789960, "status": "fail", "subscription": {} } ]
작업
작업
작업