unPLUGDevelopers

Checkouts and redemptions API

Get a redemption

GET/v1/redemptions/{id}

Returns a redemption. Use it after a timeout to see whether the hold is still reserved before you send the order.

Permissions: Secret key with checkout:write, or a member token for its own member's redemptions.

Path parameters#

  • idstring (uuid)Required

Response fields#

Returns 200 with Redemption

  • idstring (uuid)
    Send it in redemption_ids on the order.
  • statusstring
    One of reserved, captured, canceled, expired, reversed
  • member_idstring (uuid)Nullable
    null for a guest code.
  • reward_idstring (uuid)Nullable
    What was redeemed. One is set.
  • wallet_item_idstring (uuid)Nullable
    What was redeemed. One is set.
  • codestringNullable
    What was redeemed. One is set.
  • discount_centsinteger
    The discount on the cart it was created for.
    Min 0
  • points_costinteger
    Points held, then spent on capture. 0 for wallet items and codes.
  • affected_line_idsarray of string
    Cart lines the discount applies to.
  • order_idstring (uuid)Nullable
    The order that captured it.
  • expires_atstring (date-time)
    End of the hold, 15 minutes after creation.
  • created_atstring (date-time)

Error descriptions#

404Not found
not_found

No redemption with this id in your brand, or it belongs to another member (member token).

Any endpoint can also return the common errors.