---
title: "POST /transactions/allocations/search"
method: POST
path: "/transactions/allocations/search"
tags: ["Transactions"]
---

# POST /transactions/allocations/search

`POST /transactions/allocations/search`

Searches transaction allocations.

## Request body

- SearchAllocationsRequest — Request body for searching transaction allocations.
  - `filter` SearchAllocationFilter, required — Filter for searching transaction allocations.
    - `invoice_id` SearchAllocationInvoiceIdFilter, required — Invoice ID filter.
      - `any` string[], required — Match allocations where invoice_id is any of these values, using OR logic.

## Response `200`

Success

- SearchAllocationsResponse
  - `data` AllocationSearchResult[], required — List of allocation search results.
    - `invoice_id` string, required — Invoice the allocation is applied against.
    - `amount` string, required — Allocated amount, as a non-negative string in the smallest currency unit, such as cents for USD.
    - `type` 'invoice_payin' | 'invoice_payout', required — Type of allocation.
    - `user` TransactionAllocationUserReferenceResponse, required — User associated with the allocation.
      - `id` string, required — FRAGMENT generated unique ID.
      - `external_id` string, required — User-provided unique ID.
    - `id` string, required — FRAGMENT generated unique ID.
    - `posted` string, date-time, required — Timestamp when the parent transaction was posted. Uses ISO 8601 format.
    - `transaction` AllocationSearchResultTransactionReferenceResponse, required — Transaction the allocation is applied to.
      - `id` string, required — FRAGMENT generated unique ID.
      - `external_id` string, required — User-provided unique ID.

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.net/fragment-dev/apis/fragment-payments-api.md) · [All operations](https://skmtc.net/fragment-dev/apis/fragment-payments-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fragment-dev/fragment-payments-api/versions/41ca2c686012/schema)
