Project ID.
Digital Distribution Hub (1.0.0)
Digital Distribution Hub is a new Xsolla solution that aims to connect digital and cash based payments via push payments technology and e-commerce.
This reference combines API endpoints for two Xsolla products: In-Game Store and Pay Station. There are two base URLs:
https://store.xsolla.com/apifor the Common, Catalog, Cart, and Order groups.https://ps.xsolla.comfor the Notifications group.
API endpoints in the Catalog group don’t require authorization.
To work with operations in the Cart and Order groups, you need to generate a token via Create user token.
This reference shows a design of a future API and not a fully functioning interface. Currently, you can try only Catalog and Notifications groups endpoints. If you’d like to share your feedback, please email us at techdoc@xsolla.com.
Object with order creation data.
Preferred payment currency. Three-letter currency code per ISO 4217.
- https://store.xsolla.com/api/v2/project/{project_id}/distribution_hub/payment/item/{item_sku}
- Mock serverhttps://xsolla.redocly.app/_mock/api/digital-distribution-hub/v2/project/{project_id}/distribution_hub/payment/item/{item_sku}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://store.xsolla.com/api/v2/project/44056/distribution_hub/payment/item/booster_mega_1 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"geotype": 13038
}'Order was successfully created.
Billing information.
Purchase currency. Three-letter code per ISO 4217.
{ "order_id": 641, "billing_info": { "price": { … }, "indirect_taxes": [ … ], "direct_taxes": [ … ] } }
- https://store.xsolla.com/api/v2/project/{project_id}/distribution_hub/order/{order_id}
- Mock serverhttps://xsolla.redocly.app/_mock/api/digital-distribution-hub/v2/project/{project_id}/distribution_hub/order/{order_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://store.xsolla.com/api/v2/project/44056/distribution_hub/order/656 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful order request.
Order details.
Order price.
Default purchase currency. Three-letter code per ISO 4217.
Order price in virtual currency.
Items list.
Unique item ID. The SKU may only contain lowercase Latin alphanumeric characters, periods, dashes, and underscores.
Item price.
Default purchase currency. Three-letter code per ISO 4217.
{ "order_id": 1, "status": "paid", "content": { "price": { … }, "is_free": "false", "items": [ … ] } }