This API allows getting any kind of sellable items or specific item.
Shop Builder API (2.0.0)
- Version: 2.0.0
- Servers:
https://store.xsolla.com/api - Contact Us by Email
- Contact URL: https://xsolla.com/
- Required TLS version: 1.2
Shop Builder API provides a third-party solution for implementing the server side for your store interface. Use the endpoints to manage in-game items, in-game currencies, cart, player inventory, promotions, game library, etc.
Personalized catalog
This API allows to specify rules for user attributes. If the user meets all conditions for a concrete rule, personalized items will be shown.
For personalized promotions see Promotions section.
To pass attributes before a purchase, you can use Xsolla Login API or pass them into user.attributes property while generating token using Pay Station API.
Request
Imports items into the store from a JSON file via the specified URL. Refer to the documentation for more information about import from a JSON file.
Project ID. You can find this parameter in your Publisher Account next to the name of the project.
A fixed value that specifies the type of operation for importing items.
The URL of a file with data in JSON format. The file should be hosted on a storage service with public access. You can download the file template in Publisher Account in the Store > Virtual Items > Catalog Management > Import Items (JSON) section.
- Mock serverhttps://xsolla.redocly.app/_mock/api/shop-builder/v1/projects/{project_id}/import/from_external_file
- https://connector.xsolla.com/v1/projects/{project_id}/import/from_external_file
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://xsolla.redocly.app/_mock/api/shop-builder/v1/projects/44056/import/from_external_file \
-H 'Content-Type: application/json' \
-d '{
"connector_external_id": "import_items",
"file_url": "https://my-bucket.s3.amazonaws.com/items.json",
"mode": "create"
}'{ "import_id": "af9f3638a16e11ef880da2cd677d2d24" }
Project ID. You can find this parameter in your Publisher Account next to the name of the project.
- Mock serverhttps://xsolla.redocly.app/_mock/api/shop-builder/v1/admin/projects/{project_id}/connectors/import_items/import/status
- https://connector.xsolla.com/v1/admin/projects/{project_id}/connectors/import_items/import/status
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://xsolla.redocly.app/_mock/api/shop-builder/v1/admin/projects/44056/connectors/import_items/import/statusThe import status has been successfully retrieved.
Import status.
| Enum Value | Description |
|---|---|
| initialized | Import has been initiated. |
| process | Import is in progress. |
| done | Import was successfull. |
| error | Due to errors, the import was not completed or only partially completed. |
The timestamp of the import creation operation in GMT+3 timezone.
The timestamp when the import was interrupted due to an error in GMT+3 timezone.
The timestamp of completion of the import operation in GMT+3 timezone. If the import was interrupted due to an error and no items were imported, an empty string will be returned.
An object with data on the import results and import errors for specific items SKU.
{ "status": "error", "date_created": "2024-11-19T14:27:31+03:00", "date_updated": "2024-11-19T15:27:31+03:00", "date_completed": "2024-11-19T15:27:31+03:00", "progress": 100, "error": null, "error_code": null, "result": { "errors_count": 2, "total_entities_count": 10, "errors_by_sku": [ … ] } }