Skip to content

Commit 28336c4

Browse files
authored
Merge pull request #6 from Daniel-Ric/feature/2026-01-21/find-out-what-he-means-n0dhm7
Clarify PlayFab e9d1 test endpoint inputs and support title-id overrides
2 parents 26794b2 + 047faee commit 28336c4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ curl -X POST http://localhost:3000/inventory/playfab -H "Authorization: Bearer
194194
```bash
195195
curl -X POST http://localhost:3000/inventory/playfab/test -H "Authorization: Bearer <JWT>" -H "Content-Type: application/json" -d '{"playfabToken":"XBL3.0 x=<uhs>;<xstsToken>","entityType":"title_player_account","count":50}'
196196
```
197+
* `playfabToken` comes from `POST /auth/callback` in this API (response field `playfabToken`).
198+
* Use `entityType=master_player_account` to target the master entity. If you want a specific entity id, pass `entityId`. Otherwise the service uses the PlayFabId returned by LoginWithXbox.
197199

198200
### 10) Captures (screenshots) → `/captures/screenshots`
199201
```bash

src/routes/inventory.routes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,19 @@ router.post("/playfab", jwtMiddleware, asyncHandler(async (req, res) => {
8989
* playfabToken:
9090
* type: string
9191
* description: PlayFab XSTS token in the form XBL3.0 x={uhs};{token}
92+
* example: "XBL3.0 x=<uhs>;<xstsToken>"
9293
* entityType:
9394
* type: string
9495
* enum: [title_player_account, master_player_account]
9596
* default: title_player_account
97+
* example: "title_player_account"
9698
* entityId:
9799
* type: string
98100
* description: Optional entity id override for the chosen entity type
99101
* collectionId:
100102
* type: string
101103
* default: "default"
104+
* example: "default"
102105
* count:
103106
* type: integer
104107
* default: 50

0 commit comments

Comments
 (0)