Rivier/ Reference/ contacts

Take a reward for a customer who asked

post/loyalty/members/{contactId}/redeem

Take a reward for a customer who asked: the points are spent and a one-use code is made.

Before you call

Credential
Authorization: Bearer $KEY
Scope
contacts:write
Sdk
contacts.loyalty.redeem
Cli
contacts loyalty redeem

Parameters

  • contactIdstring (uuid)required
    In the path

Request bodyapplication/json, required

  • rewardIdstring (uuid)required

Responses

  • 201application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown