---
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

## Changes

- **2026-04-14** `8472a9bd15ea` — 1 info
  - the response property `data/items/allOf[#/components/schemas/TransactionAllocationResponse]/user/external_id` became required for the status `200`
- **2026-03-13** `dd22ecbbe8e5` — 1 info
  - added the required property `data/items/allOf[subschema #2]/posted` to the response with the `200` status
- **2026-03-12** `930de445f98d` — 1 info
  - added the optional property `data/items/allOf[#/components/schemas/TransactionAllocationResponse]/user/external_id` to the response with the `200` status
- **2026-03-11** `9cac9f0a8bdf` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/fragment-dev/apis/fragment-payments-api/changes/transactions/allocations/search/post.md)

---

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