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

# Get an expense claim

> One submitted claim with its lines. Drafts and deleted claims are never included. Notes, rejection reasons, receipts, supplier bank details and mileage postcodes are never returned. With `expenses.people:read` too, each claim also carries `claimantName` and `description`, and each line its `description`, `supplierName`, `approvedByName` and `settledByName`.



## OpenAPI

````yaml /api-reference/openapi/expenses.json get /expense-claims/{claimId}
openapi: 3.1.0
info:
  title: Scoutworks public API
  version: 1.32.0
  description: >-
    Read your Scout group’s data from your own tools: spreadsheets, scripts,
    Zapier or n8n, add members, waiting-list applications and draft events, keep
    its task boards up to date, and keep its books in step with your accounting
    tools. Every request is scoped to the group that owns the key.


    **Authentication.** Send a group API key as a Bearer token. Keys are created
    by a group admin and shown once.


    **Scopes.** Each operation names the scope it needs. Area scopes
    (`members:read`, `events:read`, `badges:read`, `waiting-list:read`,
    `tasks:read`, `accounting:read`, `expenses:read`, `suppliers:read`,
    `payments:read`, `gift-aid:read`, `adults:read`, `users:read`,
    `access:read`, `compliance:read`, `communications:read`, `hire:read`,
    `fundraising:read`, `moving-on:read`, `files:read`) open an area; a
    `.contacts`, `.people` or `.compliance` scope adds detail to that area’s
    responses. The `:write` scopes change data, as the admin who created the
    key: `members:write`, `waiting-list:write` and `events:write` add and update
    members, waiting-list applications and draft events, `tasks:write` adds and
    updates tasks, `accounting:write` changes the books and attaches receipts,
    and `files:write` uploads to the Knowledge Base, and `users:write` invites,
    changes, suspends and removes users, never a group admin, and `access:write`
    manages access policies and overrides, never an admin’s access. Uploads are
    virus scanned and count towards the group’s storage. A write never emails or
    notifies a family unless it sends `notify: true`. No scope moves money:
    nothing takes, changes, cancels or refunds a payment. Fields a key may not
    see are left out, not sent as null. Health, bank details and free-text notes
    are never available.


    **Pagination.** Lists return `{ data, nextCursor }`. Pass `nextCursor` back
    as `?cursor=`, with the same filters, until it is null. `limit` is 1 to 200.


    **Writing.** Send an `Idempotency-Key` with every `POST`, so a retry answers
    with the first record instead of making a second. Every record a write or a
    single-record `GET` returns carries an `ETag`: send it as `If-Match` on a
    `PATCH`, `PUT` or `DELETE` and a change made since answers 412
    `stale_write`. See https://developers.scoutworks.app/guides/writing-data.


    **Errors.** Every error is `{ error: { code, message } }`. Branch on `code`;
    `message` is for people and may change.


    **Compatibility.** We aim to change v1 only by addition: new endpoints, new
    optional parameters, new response fields and new enum values. Ignore fields
    you do not know and treat an unknown enum value as “other”. We will try to
    warn you before a breaking change, but one can still happen without notice,
    so check responses and fail loudly on an error. Changes are listed in the
    changelog at https://developers.scoutworks.app/changelog.


    **Rate limits.** 120 requests a minute per key. `RateLimit-*` headers report
    what is left. Writes and uploads have smaller limits of their own: see
    https://developers.scoutworks.app/guides/rate-limits.
servers:
  - url: https://api.scoutworks.app/api/v1
    description: Live
  - url: https://api-demo.scoutworks.app/api/v1
    description: Demo (sample data, reset weekly)
security:
  - bearerAuth: []
tags:
  - name: Expenses
    description: Expense claims, read only.
paths:
  /expense-claims/{claimId}:
    get:
      tags:
        - Expenses
      summary: Get an expense claim
      description: >-
        One submitted claim with its lines. Drafts and deleted claims are never
        included. Notes, rejection reasons, receipts, supplier bank details and
        mileage postcodes are never returned. With `expenses.people:read` too,
        each claim also carries `claimantName` and `description`, and each line
        its `description`, `supplierName`, `approvedByName` and `settledByName`.
      operationId: getExpenseClaim
      parameters:
        - name: claimId
          in: path
          required: true
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/V1ExpenseClaim'
                required:
                  - data
                additionalProperties: {}
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
            ETag:
              description: >-
                The record’s version as this key reads it, totals included (a
                budget’s `spent` moves it). Send it as `If-Match` on your next
                change.
              schema:
                type: string
        '401':
          description: >-
            No API key, or one that is unknown, revoked or expired
            (`invalid_api_key`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '403':
          description: The key lacks the scope this operation needs (`insufficient_scope`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '404':
          description: No such record in the key’s group (`not_found`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '429':
          description: Too many requests; wait `retryAfter` seconds (`rate_limited`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
            Retry-After:
              description: Seconds to wait before trying again.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '500':
          description: Our fault; quote `errorRef` to support (`internal_error`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
      security:
        - bearerAuth:
            - expenses:read
components:
  schemas:
    V1ExpenseClaim:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        referenceNumber:
          type: string
          description: The claim’s reference in Scoutworks, for example `EXP-0042`.
        status:
          type: string
          enum:
            - pending
            - approved
            - reimbursed
            - rejected
          description: >-
            As the claims table in Scoutworks shows it, worked out from the
            lines: `rejected` when every line is rejected, else `pending` while
            any line waits for approval, `approved` while an approved line is
            unpaid, and `reimbursed` once the rest are paid. More values may be
            added.
        submittedAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        total:
          $ref: '#/components/schemas/V1Money'
        lines:
          type: array
          items:
            $ref: '#/components/schemas/V1ExpenseClaimLine'
          description: Every line, in the order they were added.
        createdAt:
          type: string
          format: date-time
          description: A UTC timestamp, ISO 8601.
        updatedAt:
          type: string
          format: date-time
          description: The later of the claim’s and its lines’ last change.
        claimantName:
          description: Who made the claim. Only with the `expenses.people:read` scope.
          type:
            - string
            - 'null'
        description:
          description: >-
            The claimant’s summary of the claim. Only with the
            `expenses.people:read` scope.
          type: string
      required:
        - id
        - referenceNumber
        - status
        - submittedAt
        - total
        - lines
        - createdAt
        - updatedAt
      description: >-
        A submitted expense claim. Its `total` is the sum of every line,
        rejected lines included: add up the lines by `status` for what is still
        to pay. An old claim made before claims had lines has none, and its
        `total` is its own amount.
    V1Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - invalid_api_key
                - insufficient_scope
                - invalid_request
                - subscription_required
                - not_found
                - conflict
                - period_closed
                - source_locked
                - over_refund
                - possible_duplicate
                - invalid_transition
                - admin_protected
                - stale_write
                - insufficient_stock
                - not_available
                - not_downloadable
                - file_too_large
                - storage_full
                - unsupported_file_type
                - file_infected
                - scan_unavailable
                - service_unavailable
                - rate_limited
                - internal_error
            message:
              type: string
          required:
            - code
            - message
        errorRef:
          description: 'On a 500: a reference to quote to Scoutworks support.'
          type: string
        retryAfter:
          description: 'On a 429: seconds to wait before trying again.'
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        matchingIds:
          description: >-
            On a 409 `possible_duplicate`: the ids of the records this one looks
            like, which `GET /members/{memberId}` or `GET
            /waiting-list/{entryId}` reads.
          type: array
          items:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      required:
        - error
    V1Money:
      type: string
      pattern: ^-?\d+\.\d{2}$
      description: >-
        Pounds, as a decimal string with two places: `"12.50"`. Never a float. A
        refund or contra entry is negative.
    V1ExpenseClaimLine:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        paymentType:
          type: string
          enum:
            - reimburse
            - pay_supplier
            - group_card
          description: >-
            `reimburse` pays the claimant back; `pay_supplier` pays a supplier
            direct; `group_card` is spend already made on a group card, which
            nobody is paid for.
        amount:
          $ref: '#/components/schemas/V1Money'
        expenseDate:
          type: string
          format: date
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
          description: A date, `YYYY-MM-DD`.
        categoryId:
          anyOf:
            - type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            - type: 'null'
        sectionId:
          anyOf:
            - type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            - type: 'null'
        eventId:
          anyOf:
            - type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            - type: 'null'
        restrictedFundId:
          anyOf:
            - type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            - type: 'null'
        budgetId:
          anyOf:
            - type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            - type: 'null'
        sectionShares:
          type: array
          items:
            $ref: '#/components/schemas/V1ExpenseLineSectionShare'
          description: >-
            A line split across sections: each section’s part, adding up to
            `amount`. A split line has a null `sectionId`; read its sections
            here. Empty when the line belongs to one section or none.
        status:
          type: string
          enum:
            - pending
            - approved
            - settled
            - rejected
          description: >-
            `settled` once it has been paid and booked to the ledger. More
            values may be added.
        approvedAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        rejectedAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        settledAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        settledAs:
          anyOf:
            - type: string
              enum:
                - reimbursed
                - paid_supplier
                - paid_by_card
            - type: 'null'
        transactionId:
          anyOf:
            - type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            - type: 'null'
          description: >-
            The ledger transaction the line was paid into, once settled. The
            same id `GET /transactions` uses.
        supplierId:
          anyOf:
            - type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            - type: 'null'
          description: >-
            On a `pay_supplier` line, the supplier from `GET /suppliers`. Null
            if the supplier was removed.
        dueDate:
          anyOf:
            - type: string
              format: date
              pattern: >-
                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
              description: A date, `YYYY-MM-DD`.
            - type: 'null'
          description: When a supplier expects payment, if one was given.
        mileage:
          anyOf:
            - $ref: '#/components/schemas/V1ExpenseMileage'
            - type: 'null'
          description: >-
            Set on a mileage line, whose amount Scoutworks worked out from these
            figures. Null on every other line.
        description:
          description: What the line was for. Only with the `expenses.people:read` scope.
          type: string
        supplierName:
          description: >-
            The supplier’s name as it was when the line was submitted. Only with
            the `expenses.people:read` scope.
          type:
            - string
            - 'null'
        approvedByName:
          description: Who approved the line. Only with the `expenses.people:read` scope.
          type:
            - string
            - 'null'
        settledByName:
          description: >-
            Who marked the line paid. Only with the `expenses.people:read`
            scope.
          type:
            - string
            - 'null'
      required:
        - id
        - paymentType
        - amount
        - expenseDate
        - categoryId
        - sectionId
        - eventId
        - restrictedFundId
        - budgetId
        - sectionShares
        - status
        - approvedAt
        - rejectedAt
        - settledAt
        - settledAs
        - transactionId
        - supplierId
        - dueDate
        - mileage
    V1ExpenseLineSectionShare:
      type: object
      properties:
        sectionId:
          anyOf:
            - type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            - type: 'null'
          description: >-
            The section, as `GET /sections` lists it. Null once the section has
            been deleted; its amount still counts.
        amount:
          $ref: '#/components/schemas/V1Money'
      required:
        - sectionId
        - amount
    V1ExpenseMileage:
      type: object
      properties:
        miles:
          type: number
          description: >-
            The one-way distance, as the claimant entered it. A return journey
            is paid on twice this.
        returnJourney:
          type: boolean
        passengers:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Passengers carried, each paid at `passengerRatePence`.
        ratePence:
          anyOf:
            - type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            - type: 'null'
          description: >-
            Pence a mile, as the group’s rate stood when the line was submitted.
            A later change to the rate does not restate it. Null when the line
            recorded no rate.
        passengerRatePence:
          anyOf:
            - type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            - type: 'null'
          description: >-
            Pence a mile for each passenger, as submitted. Null when the line
            recorded no rate.
      required:
        - miles
        - returnJourney
        - passengers
        - ratePence
        - passengerRatePence
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A group API key, sent as `Authorization: Bearer sw_live_…`. Keys from
        staging and the demo start `sw_test_` instead. A group admin creates
        keys in Settings → Integrations → API keys.

````

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