PUT
/
v1
/
rewards
/
{id}
curl --request PUT \
  --url https://api.getreditus.com/api/v1/rewards/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "state": "paid"
}'
{
  "data": {
    "id": "<string>",
    "type": "<string>",
    "attributes": {
      "id": "<string>",
      "advocate_id": "<string>",
      "lead_id": "<string>",
      "amount": 123,
      "currency": "<string>",
      "state": "<string>",
      "created_at": 123,
      "updated_at": 123
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Reward ID

Body

application/json

Response

200
application/json

Reward updated successfully

The response is of type object.