콘텐츠로 건너뛰기
OpenAPI 설명 다운로드
언어
서버
Mock server
https://xsolla.redocly.app/_mock/ko/api/metaframe/
http://orbs.babka.com/
작업
작업
작업
작업

요청

Creates a manual purchase.

보안
Bearer
경로
merchantIdstring필수

Merchant ID of the client

projectIdstring필수

Project ID of the project

헤더
X-GEOIP-COUNTRYstring

Determine country based on user's ip

X-IFRAME-HOST-ORIGINstring(uri)

Determine parent payment page

X-HOST-IDstring(UUID)= 36 characters필수

Unique operator ID.

본문application/json
package_item_skustring

Package Item SKU.

예제: "xxx-xxx-xxx"
ps_ui_close_buttonboolean

PayStation 4 UI close button.

ps_ui_localestring

PayStation 4 UI lanugage

열거형"en""de""es""ja""ko""pt""cn""ru"
ps_ui_themestring

PayStation 4 appearance.

예제: "babka_dark"
quantityinteger(int64)>= 1

Number of items.

예제: 1
curl -i -X POST \
  'https://xsolla.redocly.app/_mock/ko/api/metaframe/v2/merchants/{merchantId}/projects/{projectId}/purchase' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -H 'X-GEOIP-COUNTRY: string' \
  -H 'X-HOST-ID: stringstringstringstringstringstring' \
  -H 'X-IFRAME-HOST-ORIGIN: http://example.com' \
  -d '{
    "package_item_sku": "xxx-xxx-xxx",
    "ps_ui_theme": "babka_dark",
    "quantity": 1
  }'

응답

Operation success

본문application/json
order_idinteger(uint32)

Order ID.

예제: "641,"
tokenstring

Payment token.

예제: "f4puMEFFDZcx9nv5HoNHIkPe9qghvBQo"
응답
application/json
{ "order_id": "641,", "token": "f4puMEFFDZcx9nv5HoNHIkPe9qghvBQo" }