# Take a reward for a customer who asked

`POST /loyalty/members/{contactId}/redeem` · Rivier · contacts

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

- Scope: contacts:write
- Sdk: contacts.loyalty.redeem
- Cli: contacts loyalty redeem

## Parameters

- `contactId` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "rewardId": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "rewardId"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/loyalty/members/{contactId}/redeem' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "rewardId": "string"
}'
```
