Saltar al contenido

Metaverse Orbs API (1.0.0)

Metaverse Orbs API

Descargar descripción de OpenAPI
Idiomas
Servidores
Mock server
https://xsolla.redocly.app/_mock/es/api/metaframe/
http://orbs.babka.com/
Operaciones
Operaciones
Operaciones
Operaciones

Solicitud

Creates a manual purchase.

Seguridad
Bearer
Ruta
merchantIdstringrequerido

Merchant ID of the client

projectIdstringrequerido

Project ID of the project

Encabezados
X-GEOIP-COUNTRYstring

Determine country based on user's ip

X-IFRAME-HOST-ORIGINstring(uri)

Determine parent payment page

X-HOST-IDstring(UUID)= 36 charactersrequerido

Unique operator ID.

Cuerpoapplication/json
package_item_skustring

Package Item SKU.

Ejemplo: "xxx-xxx-xxx"
ps_ui_close_buttonboolean

PayStation 4 UI close button.

ps_ui_localestring

PayStation 4 UI lanugage

Enumeración"en""de""es""ja""ko""pt""cn""ru"
ps_ui_themestring

PayStation 4 appearance.

Ejemplo: "babka_dark"
quantityinteger(int64)>= 1

Number of items.

Ejemplo: 1
curl -i -X POST \
  'https://xsolla.redocly.app/_mock/es/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
  }'

Respuestas

Operation success

Cuerpoapplication/json
order_idinteger(uint32)

Order ID.

Ejemplo: "641,"
tokenstring

Payment token.

Ejemplo: "f4puMEFFDZcx9nv5HoNHIkPe9qghvBQo"
Respuesta
application/json
{ "order_id": "641,", "token": "f4puMEFFDZcx9nv5HoNHIkPe9qghvBQo" }