unPLUGDevelopers

Wallet API

List wallet items

GET/v1/members/{id}/wallet

GET/v1/members/me/wallet

Returns the member's wallet items. Without a filter you get only available items, which is what a rewards screen shows.

Permissions: {id}: secret key with members:read. me: member token.

Path parameters#

  • idstring (uuid)Required

Query parameters#

  • statusstring
    available (default), reserved, used or expired.
    Default available
    One of available, reserved, used, expired
  • limitinteger
    1 to 100. Default 25.
    Min 1Max 100Default 25
  • cursorstring
    next_cursor from the previous page. See Pagination.

Show expires_at next to each item, in the guest's time zone: Maya's pastry expires at the end of November 12 in Austin. To know whether an item works on the current cart (right items, right time, right location), call preview; don't check the rules yourself.

Response fields#

Returns 200 with list of WalletItem

  • dataarray of WalletItem
    Show attributesWalletItem
    • idstring (uuid)
      Send this as wallet_item_id on previews and redemptions.
    • rewardReward
      The reward, in the same shape as the catalog, with kind: "wallet" and no points_cost. Its rules apply at checkout.
      Show attributesReward
      • idstring (uuid)
        Send this as reward_id on previews and redemptions.
      • namestring
        For example Free drip coffee.
      • descriptionstring
        Short text for the guest.
      • image_urlstring (uri)Nullable
        HTTPS image URL.
      • kindstring
        points (catalog) or wallet (given to one member). May grow.
        One of points, wallet
      • points_costinteger
        Points the reward costs. Only on points rewards; wallet rewards don't have it.
      • discountDiscount
        Show attributesDiscount
        • typestring
          One of amount, percent, free_item, bogo
        • amount_centsinteger
          For amount.
        • percentnumber
          For percent.
        • itemsarray of object
          Item scope, by Square variation id.
        • categoriesarray of object
          Category scope.
        • max_itemsinteger
      • rulesRules
        Show attributesRules
        • min_subtotal_centsinteger
          Integer cents.
          Min 0
        • channelsarray of string
          One of app, web
        • location_idsarray of string (uuid)
        • fulfillmentarray of string
          One of pickup, delivery, curbside, dine_in
        • available_timesarray of AvailableTime
        • tier_idsarray of string (uuid)
      • starts_atstring (date-time)Nullable
        When the reward becomes available. null means it already is.
      • ends_atstring (date-time)Nullable
        When it stops being available. null means no end date.
    • sourcestring
      How the member got it. See the table below. May grow.
      One of tier, offer, challenge, journey, support, birthday
    • offer_idstring (uuid)Nullable
      The offer, when source is offer.
    • statusstring
      available, reserved, used or expired.
      One of available, reserved, used, expired
    • issued_atstring (date-time)
      When it landed in the wallet.
    • expires_atstring (date-time)Nullable
      After this time it can't be used. null means it doesn't expire.
    • used_atstring (date-time)Nullable
      When an order used it.
    • order_idstring (uuid)Nullable
      The order that used it.
  • has_moreboolean
    True when another page exists.
  • next_cursorstringNullable
    Pass as cursor to get the next page.

Error descriptions#

400Bad request
invalid_param

status isn't one of the four values.

401Unauthorized
token_expired

The member token expired. Get a new one from your server.

404Not found
member_not_found

No member with this id.

410Gone
member_deleted

The member was deleted.

Any endpoint can also return the common errors.