unPLUGDevelopers

Program and catalog API

List rewards

GET/v1/rewards

Returns the rewards catalog: every points reward. It is the same for every member. To know what a member can use on a specific cart, call preview; to see rewards a member already holds, read their wallet.

Permissions: Secret key with program:read, or a member token.

Query parameters#

  • limitinteger
    1 to 100. Default 25.
    Min 1Max 100Default 25
  • cursorstring
    next_cursor from the previous page.

Response fields#

Returns 200 with list of Reward

  • dataarray of Reward
    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.
        Show attributesHide attributes
        • pos_item_idstring
        • namestring
      • categoriesarray of object
        Category scope.
        Show attributesHide attributes
        • pos_category_idstring
        • namestring
      • 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
        Show attributesAvailableTime
        • daysarray of string
          Show valuesHide values
          • mon
          • tue
          • wed
          • thu
          • fri
          • sat
          • sun
        • startstring
          Local time, HH:MM.
        • endstring
          Local time, HH:MM.
      • 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.
  • has_moreboolean
    True when another page exists.
  • next_cursorstringNullable
    Pass as cursor to get the next page.

Error descriptions#

400Bad request
invalid_param

limit is outside 1 to 100, or the cursor is not one we issued.

Any endpoint can also return the common errors.