Shop

Purchases the order scanned

Required role: STAFF

Note: Do not pass the full uri (hackillinois://user?qr=abcd) but just the QR token part (abcd).

post/shop/cart/redeem/

Request

  • Base URL: https://adonix.hackillinois.org
  • URL: https://adonix.hackillinois.org/shop/cart/redeem/
  • Auth: none declared

Request body

QRCodestring required

Example request

{
  "QRCode": "3e7eea9a-7264-4ddf-877d-9e004a888eda"
}

Response

The successfully purchased order

userIdstring required

Id of a specific user. Can start with github or google.

Example response

{
  "userId": "github1234",
  "items": [
    {
      "itemId": "3e7eea9a-7264-4ddf-877d-9e004a888eda",
      "name": "Cool Item",
      "quantity": 5
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.