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.
個人用カタログ
ユーザー属性に応じたルールを指定することができるAPIです。 ユーザーが具体的なルールの条件をすべて満たした場合、パーソナライズされたアイテムが表示されます。
パーソナライズされたプロモーションについては、プロモーションセクションを参照してください。
購入前に属性を渡すには、Xsolla Login APIを使うか、Pay Station APIを使ってトークンを生成する際にそれをuser.attributesプロパティに渡します。
- Mock serverhttps://xsolla.redocly.app/_mock/ja/api/shop-builder/v3/project/{project_id}/admin/unique_catalog_offer
- https://store.xsolla.com/api/v3/project/{project_id}/admin/unique_catalog_offer
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://xsolla.redocly.app/_mock/ja/api/shop-builder/v3/project/44056/admin/unique_catalog_offer?limit=50&offset=0'{ "active_promotions_count": 2, "inactive_promotions_count": 0, "items": [ { … }, { … } ], "total_promotions_count": 2 }
プロモーションが終了する日付。nullにすることができます。 date_endがnullの場合、プロモーションは時間無制限となります。
プロモーションを開始する日付。
一意のプロモーションID。external_idには、小文字と大文字のラテン英数字、ピリオド、ダッシュ、およびアンダースコアのみが含まれます。
ユニークカタログオファー使用後に利用可能なアイテムSKUリスト。
プロモーションの名前。キーと値のペアを含む必要があります。 キーは"^[a-z]{2}-[A-Z]{2}$"形式のロケール、値は文字列です。
クーポンの総数を制限します。
- Mock serverhttps://xsolla.redocly.app/_mock/ja/api/shop-builder/v3/project/{project_id}/admin/unique_catalog_offer
- https://store.xsolla.com/api/v3/project/{project_id}/admin/unique_catalog_offer
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://xsolla.redocly.app/_mock/ja/api/shop-builder/v3/project/44056/admin/unique_catalog_offer \
-H 'Content-Type: application/json' \
-d '{
"date_end": "2020-04-25T18:16:00+05:00",
"date_start": "2020-04-15T18:16:00+05:00",
"external_id": "offer_external_id",
"items": [
"elven_sword",
"elven_boots"
],
"name": {
"de-DE": "Neujahrsangebot",
"en-US": "New Year Offer"
},
"redeem_code_limit": 1,
"redeem_total_limit": 100,
"redeem_user_limit": 1
}'{ "external_id": "coupon_external_id" }
リクエスト
ユニークなカタログオファープロモーションを削除します。削除されたプロモーション:
- プロジェクトで設定されたプロモーションのリストから消えます。
- アイテムカタログとカートに適用されなくなります。
削除後、プロモーションは復元できません。
- Mock serverhttps://xsolla.redocly.app/_mock/ja/api/shop-builder/v3/project/{project_id}/admin/unique_catalog_offer/{external_id}
- https://store.xsolla.com/api/v3/project/{project_id}/admin/unique_catalog_offer/{external_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
-u <username>:<password> \
https://xsolla.redocly.app/_mock/ja/api/shop-builder/v3/project/44056/admin/unique_catalog_offer/coupon_44056_1