unPLUGDevelopers

Program and catalog API

Get a reward

GET/v1/rewards/{id}

Returns one reward from the catalog.

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

Path parameters#

  • idstring (uuid)Required
    The reward id.

Response fields#

Returns 200 with Reward

  • 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.

Error descriptions#

404Not found
reward_not_found

No reward with this id in your brand.

Any endpoint can also return the common errors.