"Redeem Code" in Market not functional #1285

Closed
opened 2025-03-22 10:02:02 -07:00 by Animan8000 · 1 comment
Contributor

Not really that necessary to emulate, except for maybe redeeming global glyph codes (but those can be given through WebUI anyway).

2025-03-22T18:01:21:145 [0.1.0] http:   GET /api/inbox.php?accountId=67d1c4cf77322d1aed16f26c&nonce=5980838691682751&ct=MSI 200 3.395 ms - 12
2025-03-22T18:01:23:179 [0.1.0] error:  unknown endpoint POST /api/redeemPromoCode.php
2025-03-22T18:01:23:180 [0.1.0] debug:  data provided to /api/redeemPromoCode.php: {"codeId":"MOGAMU"}
2025-03-22T18:01:23:183 [0.1.0] http:   POST /api/redeemPromoCode.php?accountId=67d1c4cf77322d1aed16f26c&nonce=5980838691682751&ct=MSI 404 3.119 ms - 34
Not really that necessary to emulate, except for maybe redeeming [global glyph codes](https://forums.warframe.com/topic/992008-free-promocodes-and-content-creator-glyphs/) (but those can be given through WebUI anyway). ``` 2025-03-22T18:01:21:145 [0.1.0] http: GET /api/inbox.php?accountId=67d1c4cf77322d1aed16f26c&nonce=5980838691682751&ct=MSI 200 3.395 ms - 12 2025-03-22T18:01:23:179 [0.1.0] error: unknown endpoint POST /api/redeemPromoCode.php 2025-03-22T18:01:23:180 [0.1.0] debug: data provided to /api/redeemPromoCode.php: {"codeId":"MOGAMU"} 2025-03-22T18:01:23:183 [0.1.0] http: POST /api/redeemPromoCode.php?accountId=67d1c4cf77322d1aed16f26c&nonce=5980838691682751&ct=MSI 404 3.119 ms - 34 ```
Sainan added the
unimplemented
label 2025-03-22 10:13:52 -07:00
Owner

Response for a claimed glyph:

res.json({
    FlavourItems: ["/Lotus/Types/StoreItems/AvatarImages/AvatarImageBigBytesPizzaGlyph"]
});

Response for an invalid code:

res.status(400).send("INVALID_CODE").end();

Response for an unlimited code that's already been redeemed by the user:

res.status(400).send("USED_CODE").end();

Response for a one-time use code that's already been used by someone (unlikely we'll need this one):

res.status(400).send("LIMIT_ONE").end();
Response for a claimed glyph: ```ts res.json({ FlavourItems: ["/Lotus/Types/StoreItems/AvatarImages/AvatarImageBigBytesPizzaGlyph"] }); ``` Response for an invalid code: ```ts res.status(400).send("INVALID_CODE").end(); ``` Response for an unlimited code that's already been redeemed by the user: ```ts res.status(400).send("USED_CODE").end(); ``` Response for a one-time use code that's already been used by someone (unlikely we'll need this one): ```ts res.status(400).send("LIMIT_ONE").end(); ```
Sign in to join this conversation.
No description provided.