Set the reward’s state to ‘paid’
cURL
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>", "advocate_uid": "<string>", "lead_id": "<string>", "amount": 123, "currency": "<string>", "state": "<string>", "created_at": 123, "updated_at": 123 } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Reward ID
Reward updated successfully
The response is of type object.
object