> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omneo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Browse Benefits

> A `GET` to the `/benefits` endpoint allows your application to retrieve all a tenants Benefits records.

## Filtering

> [!NOTE]
>
> This endpoint accepts `filter` and `sort` query parameters. See [Filtering, sorting, and search](https://docs.omneo.io/dev-guides/core-setup/filtering-and-sorting.md) for paging and for the shared `search_with`, `custom_field`, and `json_contains` filters.

### Examples

```bash Exact match theme={null}
curl -X GET "https://api.[tenant].getomneo.com/api/v3/benefits?filter[external_id]={external_id}" \
  -H "Authorization: Bearer ${TOKEN}"
```

```bash Date range theme={null}
curl -X GET "https://api.[tenant].getomneo.com/api/v3/benefits?filter[created_at][gte]=2026-01-01&filter[created_at][lt]=2026-02-01" \
  -H "Authorization: Bearer ${TOKEN}"
```

```bash Related attribute theme={null}
curl -X GET "https://api.[tenant].getomneo.com/api/v3/benefits?filter[definition.type]={type}" \
  -H "Authorization: Bearer ${TOKEN}"
```

### Operators

| Operator | Meaning | Example |
| - | - | - |
| `eq` | Equal to. Applied when you give no operator. | `filter[external_id]={external_id}` |
| `ne` | Not equal to. | `filter[external_id][ne]={external_id}` |
| `gt` | Greater than. | `filter[created_at][gt]=2026-01-01` |
| `gte` | Greater than or equal to. | `filter[created_at][gte]=2026-01-01` |
| `lt` | Less than. | `filter[created_at][lt]=2026-02-01` |
| `lte` | Less than or equal to. | `filter[created_at][lte]=2026-02-01` |
| `in` | Matches any value in a comma separated list. | `filter[benefit_definition_id][in]=123,456` |
| `not_in` | Excludes every value in a comma separated list. | `filter[benefit_definition_id][not_in]=123,456` |
| `nullable` | `1` returns records where the attribute is empty. Any other value returns records where it is set. | `filter[expires_at][nullable]=1` |
| `not_has` | Excludes records that have a matching related record. Related attributes only. | `filter[definition.type][not_has]={type}` |

### Filter attributes

| Attribute | Attribute | Attribute |
| - | - | - |
| `benefit_definition_id` | `location_id` | `expires_at` |
| `issued_at` | `meta` | `external_id` |
| `timezone` | `claimed_at` | `redeem_code_pos` |
| `redeem_code_online` | `value` | `is_combined` |
| `combine_meta` | `extended_at` | `source_id` |
| `source_type` | `created_at` | `updated_at` |

Each attribute above is also a valid `sort` key, for example `?sort=-created_at` for descending order.

### Related attributes

Dot notation filters on a related record. Use `not_has` to exclude rows that have a matching related record. Related attributes are filter only, not sort keys.

| Attribute | Relationship |
| - | - |
| `definition.type` | `definition` |


## OpenAPI

````yaml get /v3/benefits
openapi: 3.1.0
info:
  title: Omneo
  version: 0.0.1
servers:
  - url: https://api.{tenant}.getomneo.com/api
    variables:
      tenant:
        default: example
security: []
paths:
  /v3/benefits:
    get:
      tags:
        - Benefit
      summary: Browse Benefits
      description: >-
        A `GET` to the `/benefits` endpoint allows your application to retrieve
        all a tenants Benefits records.
      operationId: benefits.index
      parameters:
        - name: page[size]
          in: query
          schema:
            type: string
        - name: include_expired
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Array of `Benefit`
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Benefit'
                required:
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
components:
  schemas:
    Benefit:
      type: object
      properties:
        id:
          type: integer
        profile_id:
          type: string
        location_id:
          type:
            - integer
            - 'null'
        external_id:
          type:
            - string
            - 'null'
        expires_at:
          type: string
        issued_at:
          type: string
        is_expired:
          type: string
        is_redeemable:
          type: string
        redemptions_remaining:
          type: string
        total_global_redemptions_remaining:
          anyOf:
            - type: 'null'
            - type: object
            - type: integer
        definition:
          $ref: '#/components/schemas/BenefitDefinition'
        timezone:
          type:
            - string
            - 'null'
        claimed_at:
          type: string
        meta:
          type:
            - array
            - 'null'
          items: {}
        redeem_code_pos:
          type:
            - string
            - 'null'
        redeem_code_online:
          type:
            - string
            - 'null'
        created_at:
          type: string
        updated_at:
          type: string
        value:
          type:
            - string
            - 'null'
        combine_meta:
          type:
            - array
            - 'null'
          items: {}
        is_combined:
          type:
            - boolean
            - 'null'
        extended_at:
          type: string
        source_id:
          type:
            - integer
            - 'null'
        source_type:
          type:
            - string
            - 'null'
      required:
        - id
        - profile_id
        - location_id
        - external_id
        - expires_at
        - issued_at
        - is_expired
        - is_redeemable
        - redemptions_remaining
        - total_global_redemptions_remaining
        - definition
        - timezone
        - claimed_at
        - meta
        - redeem_code_pos
        - redeem_code_online
        - created_at
        - updated_at
        - value
        - combine_meta
        - is_combined
        - extended_at
        - source_id
        - source_type
      title: Benefit
    BenefitDefinition:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        handle:
          type: string
        type:
          type:
            - string
            - 'null'
        region_id:
          type:
            - integer
            - 'null'
        region:
          type:
            - object
            - 'null'
          properties:
            id:
              type: integer
            name:
              type: string
            handle:
              type: string
            currency:
              type:
                - string
                - 'null'
          required:
            - id
            - name
            - handle
            - currency
        currency:
          type:
            - string
            - 'null'
        period:
          type:
            - integer
            - 'null'
        description:
          type:
            - string
            - 'null'
        internal_notes:
          type:
            - string
            - 'null'
        meta:
          type:
            - array
            - 'null'
          items: {}
        short_description:
          type:
            - string
            - 'null'
        long_description:
          type:
            - string
            - 'null'
        terms_conditions:
          type:
            - string
            - 'null'
        earn_instructions:
          type:
            - string
            - 'null'
        redeem_instructions_store:
          type:
            - string
            - 'null'
        redeem_instructions_online:
          type:
            - string
            - 'null'
        redeem_code_pos:
          type:
            - string
            - 'null'
        redeem_code_online:
          type:
            - string
            - 'null'
        icon:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
        max_redemptions:
          type:
            - integer
            - 'null'
        is_extendable:
          type: boolean
        is_assignable:
          type: boolean
        is_reassignable:
          type: boolean
        is_published:
          type: boolean
        is_archived:
          type: boolean
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
        is_claimable:
          type: boolean
        max_global_redemptions:
          type:
            - integer
            - 'null'
        claim_period_start_at:
          type: string
        claim_period_end_at:
          type: string
        claim_condition:
          type:
            - array
            - 'null'
          items: {}
        is_reclaimable:
          type:
            - boolean
            - 'null'
        reclaim_after_days:
          type:
            - integer
            - 'null'
        notify_schedule_offset:
          type:
            - integer
            - 'null'
        notify_issue_offset_days:
          type:
            - integer
            - 'null'
        notify_issue_offset_hour:
          type:
            - integer
            - 'null'
        notify_remind_offset_days:
          type:
            - integer
            - 'null'
        notify_remind_offset_hour:
          type:
            - integer
            - 'null'
        notify_extend_offset_days:
          type:
            - integer
            - 'null'
        notify_extend_offset_hour:
          type:
            - integer
            - 'null'
        remind_target_id:
          type:
            - integer
            - 'null'
        extend_target_id:
          type:
            - integer
            - 'null'
        issue_target_id:
          type:
            - integer
            - 'null'
        end_at:
          type: string
        total_allocations:
          type: 'null'
        total_allocations_remaining:
          type: 'null'
        force_allocation:
          type:
            - boolean
            - 'null'
        created_at:
          type: string
        updated_at:
          type: string
        claim_timeframe:
          type:
            - array
            - 'null'
          items: {}
        view_condition:
          type:
            - array
            - 'null'
          items: {}
        allow_user_redeem:
          type:
            - boolean
            - 'null'
        same_campaign_count:
          type: integer
      required:
        - id
        - name
        - handle
        - type
        - region_id
        - region
        - currency
        - period
        - description
        - internal_notes
        - meta
        - short_description
        - long_description
        - terms_conditions
        - earn_instructions
        - redeem_instructions_store
        - redeem_instructions_online
        - redeem_code_pos
        - redeem_code_online
        - icon
        - image_url
        - max_redemptions
        - is_extendable
        - is_assignable
        - is_reassignable
        - is_published
        - is_archived
        - tags
        - is_claimable
        - max_global_redemptions
        - claim_period_start_at
        - claim_period_end_at
        - claim_condition
        - is_reclaimable
        - reclaim_after_days
        - notify_schedule_offset
        - notify_issue_offset_days
        - notify_issue_offset_hour
        - notify_remind_offset_days
        - notify_remind_offset_hour
        - notify_extend_offset_days
        - notify_extend_offset_hour
        - remind_target_id
        - extend_target_id
        - issue_target_id
        - end_at
        - total_allocations
        - total_allocations_remaining
        - force_allocation
        - created_at
        - updated_at
        - claim_timeframe
        - view_condition
        - allow_user_redeem
        - same_campaign_count
      title: BenefitDefinition
    Tag:
      type: string
      title: Tag
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.