# Bonusly

> Give recognition and look up bonuses, users, achievements and rewards.

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/bonusly

## Actions

### Delete a bonus

Archives a bonus (soft delete).

**Inputs**

- Bonus ID (`bonus_id`, text, required): BSON ObjectId of the bonus.

**Outputs**

- `data` (object): The response from delete a bonus.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": {
      "message": "example"
    },
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### Find users

Returns up to limit (default 20) users matching search.

**Inputs**

- Search (`search`, text, required): Search query (matches display name, username, email).
- Limit (`limit`, number): Max number of results to return. At least 1.
- Include non receivable (`include_non_receivable`, true/false): When true, include users whose can_receive is false.

**Outputs**

- `data` (object): The response from find users.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": [
      {
        "can_receive": true,
        "display_name": "example",
        "email": "example",
        "full_pic_url": "example",
        "id": "example",
        "profile_pic_url": "example",
        "user_mode": "normal",
        "username": "example"
      }
    ],
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get a bonus

Returns a single bonus by id, scoped to the authenticated user's company.

**Inputs**

- Bonus ID (`bonus_id`, text, required): BSON ObjectId of the bonus.
- Include children (`include_children`, true/false): When true, include the full child_bonuses array (instead of just child_count).

**Outputs**

- `data` (object): The response from get a bonus.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": {
      "amount": 1,
      "amount_with_currency": "example",
      "child_bonuses": [],
      "child_count": 1,
      "created_at": "2026-11-18T12:00:00Z",
      "editable_until": "2026-11-18T12:00:00Z",
      "family_amount": 1,
      "giver": {},
      "hashtag": "example",
      "id": "example",
      "initiator": {},
      "parent_bonus_id": "example",
      "reason": "example",
      "reason_decoded": "example",
      "reason_html": "example",
      "receiver": {},
      "receivers": [],
      "value": "example",
      "via": "example"
    },
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get a redemption

Returns a single redemption by ID, scoped to the authenticated user's company.

**Inputs**

- Redemption ID (`redemption_id`, text, required): BSON ObjectId of the redemption.

**Outputs**

- `data` (object): The response from get a redemption.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": {
      "auto_approvable": true,
      "catalog_item_id": "example",
      "certificate_url": "example",
      "claim_url": "example",
      "created_at": "2026-11-18T12:00:00Z",
      "id": "example",
      "reward_details": {},
      "state": "example"
    },
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get a user

Returns a single user by id, scoped to the authenticated user's company.

**Inputs**

- Member (`member_id`, text, required): BSON ObjectId of the user.

**Outputs**

- `data` (object): The response from get a user.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": {
      "admin": true,
      "all_usernames": [],
      "budget_boost": 1,
      "can_give": true,
      "can_receive": true,
      "client_ids": {},
      "cost_center": "example",
      "country": "example",
      "created_at": "2026-11-18T12:00:00Z",
      "custom_properties": {},
      "display_name": "example",
      "earning_balance": 1,
      "earning_balance_with_currency": "example",
      "email": "example",
      "external_unique_id": "example",
      "first_name": "example",
      "full_name": "example",
      "full_pic_url": "example",
      "give_amounts": [],
      "giving_balance": 1,
      "giving_balance_with_currency": "example",
      "hired_on": "2026-11-18",
      "id": "example",
      "intercom_id": "example",
      "last_active_at": "2026-11-18T12:00:00Z",
      "last_name": "example",
      "lifetime_earnings": 1,
      "lifetime_earnings_with_currency": "example",
      "manager_email": "example",
      "path": "example",
      "preferred_first_name": "example",
      "profile_pic_url": "example",
      "short_name": "example",
      "status": "example",
      "suggested_give_amounts": [],
      "super_admin": true,
      "time_zone": "example",
      "user_mode": "normal",
      "username": "example"
    },
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get the company

Returns the authenticated user's company.

**Inputs**: None.

**Outputs**

- `data` (object): The response from get the company.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": {
      "brand_color": "example",
      "budget": {},
      "catalog_countries": [],
      "company_hashtags": [],
      "custom_user_properties": [],
      "example_reason": "example",
      "give_amounts": [],
      "hashtagging_mode": "example",
      "id": "example",
      "name": "example",
      "show_bonus_amounts": true,
      "valid_billing_information": true
    },
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get the connected user

Returns the authenticated user.

**Inputs**: None.

**Outputs**

- `data` (object): The response from get the connected user.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": {
      "admin": true,
      "all_usernames": [],
      "budget_boost": 1,
      "can_give": true,
      "can_receive": true,
      "client_ids": {},
      "cost_center": "example",
      "country": "example",
      "created_at": "2026-11-18T12:00:00Z",
      "custom_properties": {},
      "display_name": "example",
      "earning_balance": 1,
      "earning_balance_with_currency": "example",
      "email": "example",
      "external_unique_id": "example",
      "first_name": "example",
      "full_name": "example",
      "full_pic_url": "example",
      "give_amounts": [],
      "giving_balance": 1,
      "giving_balance_with_currency": "example",
      "hired_on": "2026-11-18",
      "id": "example",
      "intercom_id": "example",
      "last_active_at": "2026-11-18T12:00:00Z",
      "last_name": "example",
      "lifetime_earnings": 1,
      "lifetime_earnings_with_currency": "example",
      "manager_email": "example",
      "path": "example",
      "preferred_first_name": "example",
      "profile_pic_url": "example",
      "short_name": "example",
      "status": "example",
      "suggested_give_amounts": [],
      "super_admin": true,
      "time_zone": "example",
      "user_mode": "normal",
      "username": "example"
    },
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### Give a bonus

Creates a bonus.

**Inputs**

- Reason (`reason`, text, required): Reason.
- Giver email (`giver_email`, text): Giver email.
- Giver ID (`giver_id`, text): Giver ID.
- Initiator email (`initiator_email`, text): Initiator email.
- Parent bonus ID (`parent_bonus_id`, text): Parent bonus ID.
- Privacy (`privacy`, text): Privacy. One of: `publicly_visible`, `privately_visible`, `immediate_team`.

**Outputs**

- `data` (object): The response from give a bonus.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": {
      "amount": 1,
      "amount_with_currency": "example",
      "child_bonuses": [],
      "child_count": 1,
      "created_at": "2026-11-18T12:00:00Z",
      "editable_until": "2026-11-18T12:00:00Z",
      "family_amount": 1,
      "giver": {},
      "hashtag": "example",
      "id": "example",
      "initiator": {},
      "parent_bonus_id": "example",
      "reason": "example",
      "reason_decoded": "example",
      "reason_html": "example",
      "receiver": {},
      "receivers": [],
      "value": "example",
      "via": "example"
    },
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### List achievements

Returns the 50 most recent achievements earned by users in the authenticated user's company.

**Inputs**: None.

**Outputs**

- `data` (object): The response from list achievements.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": [
      {
        "achievement_type_key": "example",
        "bonus_id": "example",
        "created_at": "2026-11-18T12:00:00Z",
        "deactivated_at": "2026-11-18T12:00:00Z",
        "hashtag": "example",
        "headline": "example",
        "id": "example",
        "importance": 1,
        "scope": {},
        "title": "example",
        "user": {}
      }
    ],
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### List achievements for a user

Requires a token with the recognition:read or recognition:administer scope.

**Inputs**

- Member (`member_id`, text, required): Member ID.

**Outputs**

- `data` (object): The response from list achievements for a user.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": [],
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### List bonuses

Returns a paginated list of bonuses for the authenticated user's company.

**Inputs**

- Limit (`limit`, number): Number of bonuses to retrieve (min: 1, max: 100). From 1 to 100.
- Skip (`skip`, number): Number of bonuses to skip, for pagination (min: 0). At least 0.
- Start time (`start_time`, date and time): ISO8601 lower bound on bonus created_at (inclusive).
- End time (`end_time`, date and time): ISO8601 upper bound on bonus created_at (inclusive).
- Previous hours (`previous_hours`, number): Shorthand for start_time, restricts to bonuses created in the last N hours.
- Giver email (`giver_email`, text): Filter to bonuses given by the user with this email.
- Receiver email (`receiver_email`, text): Filter to bonuses received by the user with this email.
- User email (`user_email`, text): Filter to bonuses where this user is either giver or receiver.
- Hashtag (`hashtag`, text): Filter to bonuses tagged with this hashtag.
- Relevant (`relevant`, true/false): When true, filter to bonuses involving the authenticated user or their most-relevant colleagues.
- Non zero (`non_zero`, true/false): When true, exclude zero-amount bonuses (e.g. add-ons).
- Exclude archived (`exclude_archived`, true/false): When true, exclude archived bonuses.
- Include children (`include_children`, true/false): When true, include the full child_bonuses array on each parent (instead of just child_count).
- Show private bonuses (`show_private_bonuses`, true/false): When true, include private bonuses the authenticated user can see (admin-only).

**Outputs**

- `data` (object): The response from list bonuses.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": [
      {
        "amount": 1,
        "amount_with_currency": "example",
        "child_bonuses": [],
        "child_count": 1,
        "created_at": "2026-11-18T12:00:00Z",
        "editable_until": "2026-11-18T12:00:00Z",
        "family_amount": 1,
        "giver": {},
        "hashtag": "example",
        "id": "example",
        "initiator": {},
        "parent_bonus_id": "example",
        "reason": "example",
        "reason_decoded": "example",
        "reason_html": "example",
        "receiver": {},
        "receivers": [],
        "value": "example",
        "via": "example"
      }
    ],
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### List bonuses for a user

Requires a token with the recognition:read or recognition:administer scope.

**Inputs**

- Member (`member_id`, text, required): Member ID.
- Limit (`limit`, number): Limit. At least 1.
- Skip (`skip`, number): Skip. At least 0.
- Start time (`start_time`, date and time): Start time.
- End time (`end_time`, date and time): End time.
- Hashtag (`hashtag`, text): Hashtag.
- Include children (`include_children`, true/false): Include children.
- Role (`role`, text): 'giver' or 'receiver'.

**Outputs**

- `data` (object): The response from list bonuses for a user.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": [],
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### List custom reward redemptions

Returns rewards redeemed for items in the company's custom catalog (e.g. branded swag, in-house perks).

**Inputs**

- Limit (`limit`, number): Number of records to retrieve (min: 1, max: 100). From 1 to 100.
- Skip (`skip`, number): Number of records to skip, for pagination (min: 0). At least 0.
- State (`state`, text): Filter by state. One of: `new`, `approved`, `fulfilled`.
- Fulfillment partner (`fulfillment_partner`, text): Filter by fulfillment_partner.

**Outputs**

- `data` (object): The response from list custom reward redemptions.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": [
      {
        "amount_in_points": 1,
        "approved_date": "2026-11-18T12:00:00Z",
        "categories": [],
        "claim_date": "2026-11-18T12:00:00Z",
        "color": "example",
        "fulfilled_date": "2026-11-18T12:00:00Z",
        "fulfillment_partner": "example",
        "id": "example",
        "name": "example",
        "shipping_address": "example",
        "size": "example",
        "state": "example",
        "user_email": "example",
        "user_id": "example"
      }
    ],
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### List fulfilled redemptions

Returns fulfilled redemptions for the authenticated admin's company, newest first.

**Inputs**

- Limit (`limit`, number): Number of redemptions to retrieve (min: 1, max: 100). From 1 to 100.
- Skip (`skip`, number): Number of redemptions to skip, for pagination (min: 0). At least 0.

**Outputs**

- `data` (object): The response from list fulfilled redemptions.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": [
      {
        "amount_in_points": 1,
        "amount_in_usd": "example",
        "categories": [],
        "giftee_email": "example",
        "id": "example",
        "title": "example",
        "user_email": "example",
        "user_id": "example"
      }
    ],
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### List redemptions for a user

Requires a token with the rewards:read or rewards:administer scope.

**Inputs**

- Member (`member_id`, text, required): Member ID.
- Limit (`limit`, number): Limit. At least 1.
- Skip (`skip`, number): Skip. At least 0.

**Outputs**

- `data` (object): The response from list redemptions for a user.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": [],
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### List users

Returns a paginated list of users in the authenticated user's company.

**Inputs**

- Limit (`limit`, number): Number of users to retrieve (min: 1, max: 100). From 1 to 100.
- Skip (`skip`, number): Number of users to skip, for pagination (min: 0). At least 0.
- Email (`email`, text): Filter to users whose email contains this substring (case-insensitive).
- Sort (`sort`, text): Sort by one of created_at, last_active_at, display_name, first_name, last_name, email, country, time_zone. One of: `created_at`, `last_active_at`, `display_name`, `first_name`, `last_name`, `email`, `country`, `time_zone`.
- Include archived (`include_archived`, true/false): When true, include deactivated users.
- Show financial data (`show_financial_data`, true/false): When true and the requester is an admin, include earning_balance / lifetime_earnings / giving_balance in each user.
- User mode (`user_mode`, list): Only include users with these modes. One or more of: `normal`, `observer`, `receiver`, `benefactor`, `bot`.

**Outputs**

- `data` (object): The response from list users.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": [
      {
        "admin": true,
        "all_usernames": [],
        "budget_boost": 1,
        "can_give": true,
        "can_receive": true,
        "client_ids": {},
        "cost_center": "example",
        "country": "example",
        "created_at": "2026-11-18T12:00:00Z",
        "custom_properties": {},
        "display_name": "example",
        "earning_balance": 1,
        "earning_balance_with_currency": "example",
        "email": "example",
        "external_unique_id": "example",
        "first_name": "example",
        "full_name": "example",
        "full_pic_url": "example",
        "give_amounts": [],
        "giving_balance": 1,
        "giving_balance_with_currency": "example",
        "hired_on": "2026-11-18",
        "id": "example",
        "intercom_id": "example",
        "last_active_at": "2026-11-18T12:00:00Z",
        "last_name": "example",
        "lifetime_earnings": 1,
        "lifetime_earnings_with_currency": "example",
        "manager_email": "example",
        "path": "example",
        "preferred_first_name": "example",
        "profile_pic_url": "example",
        "short_name": "example",
        "status": "example",
        "suggested_give_amounts": [],
        "super_admin": true,
        "time_zone": "example",
        "user_mode": "normal",
        "username": "example"
      }
    ],
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### Update a bonus

Updates the reason of an existing bonus.

**Inputs**

- Bonus ID (`bonus_id`, text, required): BSON ObjectId of the bonus.
- Reason (`reason`, text, required): Reason.

**Outputs**

- `data` (object): The response from update a bonus.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "result": {
      "amount": 1,
      "amount_with_currency": "example",
      "child_bonuses": [],
      "child_count": 1,
      "created_at": "2026-11-18T12:00:00Z",
      "editable_until": "2026-11-18T12:00:00Z",
      "family_amount": 1,
      "giver": {},
      "hashtag": "example",
      "id": "example",
      "initiator": {},
      "parent_bonus_id": "example",
      "reason": "example",
      "reason_decoded": "example",
      "reason_html": "example",
      "receiver": {},
      "receivers": [],
      "value": "example",
      "via": "example"
    },
    "success": true
  },
  "has_more": false,
  "next_cursor": null
}
```
