# Mark a gift as handed over, by its code

`POST /loyalty/gifts/use` · Rivier · contacts

Mark a gift as handed over, by its code.

- Scope: contacts:write
- Sdk: contacts.loyalty.useGift
- Cli: contacts loyalty use gift

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "pattern": "^[A-Za-z0-9-]{6,40}$"
    }
  },
  "required": [
    "code"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: 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/gifts/use' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "code": "string"
}'
```
