## Search Allocations **post** `/transactions/allocations/search` Searches transaction allocations. ### Body Parameters - `filter: object { invoice_id }` Filter for searching transaction allocations. - `invoice_id: object { any }` Invoice ID filter. - `any: array of string` Match allocations where invoice_id is any of these values, using OR logic. ### Returns - `data: array of object { id, amount, invoice_id, 4 more }` List of allocation search results. - `id: string` FRAGMENT generated unique ID. - `amount: string` Allocated amount, as a non-negative string in the smallest currency unit, such as cents for USD. - `invoice_id: string` Invoice the allocation is applied against. - `posted: string` Timestamp when the parent transaction was posted. Uses ISO 8601 format. - `transaction: object { id, external_id }` Transaction the allocation is applied to. - `id: string` FRAGMENT generated unique ID. - `external_id: string` User-provided unique ID. - `type: "invoice_payin" or "invoice_payout"` Type of allocation. - `"invoice_payin"` - `"invoice_payout"` - `user: object { id, external_id }` User associated with the allocation. - `id: string` FRAGMENT generated unique ID. - `external_id: string` User-provided unique ID. ### Example ```http curl https://api.us-west-2.fragment.dev/billing/transactions/allocations/search \ -H 'Content-Type: application/json' \ -d '{ "filter": { "invoice_id": { "any": [ "inv_abc123" ] } } }' ``` #### Response ```json { "data": [ { "id": "alloc_abc123", "amount": "1000", "invoice_id": "inv_abc123", "posted": "2024-01-13T00:00:00Z", "transaction": { "id": "txn_dHhuX2ZyYWdfMDAx", "external_id": "bank_txn_123" }, "type": "invoice_payin", "user": { "id": "user_abc123", "external_id": "user_ext_001" } } ] } ```