Mark as paid/pending
Finance > Rewards
PATCH update state
Endpoint
PATCH /api/v1/finance/rewards/bulk_update
Parameters
Name | Description | In |
---|---|---|
reward[reward_ids] required | Array of reward ids | |
reward[state] required | State to update | ["paid", "pending"] |
Request
Route
PATCH /api/v1/finance/rewards/bulk_update
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0NzciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NjAsImV4cCI6MTc0MDE0MzU2MCwianRpIjoiN2I2N2MzMDAtMDZlMC00OWI0LTgxZTEtYzU0NmM1ZDE0MTIyIn0.82qTyrBRCU3DqVU2Pf1twlfsruIOivyoDWKRDpuDbJg
Host: example.org
Cookie:
Body
{
"reward": {
"reward_ids": [
465,
470,
475,
480,
485
],
"state": "paid",
"passcode": 1234
}
}
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
per-page: 20
total: 5
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"11f98dbe568942083740c02602e7f233"
cache-control: max-age=0, private, must-revalidate
x-request-id: bf3e04ae-ffb6-45dc-9924-71d573c0fb0f
x-runtime: 0.044432
content-length: 1500
Body
{
"rewards": [
{
"id": 465,
"bonus": "10.0",
"completed_at": "2025-01-13T00:00:00.000Z",
"referee": {
"id": 468,
"first_name": "Jacob",
"last_name": "Considine",
"profile_id": 170,
"referral_code": "716860"
},
"referrer": {
"id": 467,
"first_name": "Lee",
"last_name": "Littel",
"profile_id": 169,
"referral_code": "238318"
},
"state": "paid"
},
{
"id": 470,
"bonus": "10.0",
"completed_at": "2025-01-13T00:00:00.000Z",
"referee": {
"id": 470,
"first_name": "Dana",
"last_name": "Cremin",
"profile_id": 172,
"referral_code": "301617"
},
"referrer": {
"id": 469,
"first_name": "Herma",
"last_name": "Jacobi",
"profile_id": 171,
"referral_code": "161200"
},
"state": "paid"
},
{
"id": 475,
"bonus": "10.0",
"completed_at": "2025-01-13T00:00:00.000Z",
"referee": {
"id": 472,
"first_name": "Rodger",
"last_name": "Heidenreich",
"profile_id": 174,
"referral_code": "784040"
},
"referrer": {
"id": 471,
"first_name": "Parthenia",
"last_name": "Vandervort",
"profile_id": 173,
"referral_code": "832840"
},
"state": "paid"
},
{
"id": 480,
"bonus": "10.0",
"completed_at": "2025-01-13T00:00:00.000Z",
"referee": {
"id": 474,
"first_name": "Leif",
"last_name": "Murray",
"profile_id": 176,
"referral_code": "781651"
},
"referrer": {
"id": 473,
"first_name": "Jody",
"last_name": "Veum",
"profile_id": 175,
"referral_code": "092358"
},
"state": "paid"
},
{
"id": 485,
"bonus": "10.0",
"completed_at": "2025-01-13T00:00:00.000Z",
"referee": {
"id": 476,
"first_name": "Boris",
"last_name": "Halvorson",
"profile_id": 178,
"referral_code": "399159"
},
"referrer": {
"id": 475,
"first_name": "Neville",
"last_name": "Homenick",
"profile_id": 177,
"referral_code": "730577"
},
"state": "paid"
}
]
}