Get customer transactions
Retrieve deposit and withdrawal history for a customer.
Returns the transaction history for a specific customer. Only includes DEPOSIT and WITHDRAWAL transactions. For deposit transactions where developerFee is present, wallet receive amount = targetAmount - developerFee.amount.
For AUD-only customers, each AUD payment is a DEPOSIT with paymentRail: "AU_BANK_TRANSFER", sourceCurrency: "AUD" and payerName; payments on hold are reported as PROCESSING. A returned AUD payment reports PENDING_REVERSAL while the return is in flight and REVERSED once it settles. An AUD withdrawal the recipient's bank returns, before or after COMPLETED, reports PENDING_REVERSAL while it is refunded, then REVERSED, refunded less the reversal fee (see reversal).
Authorization
bearerAuth Organization API key obtained on Settings > API Keys page in Compose UI.
In: header
Path Parameters
Unique identifier of the customer
Query Parameters
Return only the withdrawal created with this idempotencyKey: an array with one withdrawal, or empty if none matches.
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET 'https://compose.finance/api/v2/customers/{customerId}/transactions' \ -H 'Authorization: Bearer YOUR_API_KEY'[
{
"id": "txn_dep_eur_001",
"type": "DEPOSIT",
"status": "COMPLETED",
"paymentRail": "SEPA",
"createdAt": "2024-01-15T10:30:00.000Z",
"completedAt": "2024-01-15T10:35:00.000Z",
"reference": "FLGVNY3H9F",
"sourceCurrency": "EUR",
"targetCurrency": "USDC",
"sourceAmount": "1000",
"targetAmount": "1167.95886",
"exchangeRate": "1.1691279887",
"fee": "1",
"depositInstructions": {
"accountType": "sharedAccount",
"reference": "FLGVNY3H9F"
},
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
"developerFee": {
"developerSpreadFeeBps": 100,
"amount": "11.679589"
},
"txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
},
{
"id": "txn_dep_usd_002",
"type": "DEPOSIT",
"status": "COMPLETED",
"paymentRail": "FEDWIRE",
"createdAt": "2024-01-16T11:00:00.000Z",
"completedAt": "2024-01-16T11:03:00.000Z",
"reference": "USDREF12345",
"sourceCurrency": "USD",
"targetCurrency": "USDC",
"sourceAmount": "750",
"targetAmount": "748.5",
"exchangeRate": "1",
"fee": "1.5",
"depositInstructions": {
"accountType": "sharedAccount",
"reference": "USDREF12345"
},
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
"developerFee": null,
"txHash": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd"
},
{
"id": "txn_wdr_eur_003",
"type": "WITHDRAWAL",
"status": "COMPLETED",
"idempotencyKey": "6f1c2d3e-4b5a-4c6d-8e7f-001122334455",
"requiresUiAction": false,
"paymentRail": "SEPA",
"createdAt": "2024-01-20T14:00:00.000Z",
"completedAt": "2024-01-20T14:12:00.000Z",
"reference": "Compose-txn_wdr_eur_003",
"sourceCurrency": "USDC",
"targetCurrency": "EUR",
"sourceAmount": "500",
"targetAmount": "430",
"exchangeRate": "0.865",
"fee": "2.5",
"withdrawalBank": {
"id": "bank_123abc",
"beneficiaryName": "JOHN DOE",
"currency": "EUR",
"paymentRail": "SEPA",
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX"
},
"walletAddress": null,
"developerFee": null,
"txHash": "0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321",
"reversal": null
},
{
"id": "txn_wdr_usd_004",
"type": "WITHDRAWAL",
"status": "PROPOSED",
"idempotencyKey": "6f1c2d3e-4b5a-4c6d-8e7f-001122334456",
"requiresUiAction": true,
"paymentRail": "FEDWIRE",
"createdAt": "2024-01-22T09:15:00.000Z",
"completedAt": null,
"reference": null,
"sourceCurrency": "USDC",
"targetCurrency": "USD",
"sourceAmount": "800",
"targetAmount": "797.5",
"exchangeRate": "1",
"fee": "2.5",
"withdrawalBank": {
"id": "bank_789ghi",
"beneficiaryName": "JOHN DOE",
"currency": "USD",
"paymentRail": "FEDWIRE",
"accountNumber": "214033031443",
"routingNumber": "101019644"
},
"walletAddress": null,
"developerFee": null,
"txHash": null,
"reversal": null
}
]{
"error": "idempotencyKey must be a valid UUID"
}{
"error": "Unauthorized - Invalid or missing API key or session"
}{
"error": "Customers feature is not enabled for your organization"
}{
"error": "Customer not found"
}{
"error": "Rate limit exceeded. Please try again later."
}{
"error": "Internal server error"
}Get customer transaction GET
Returns details for a specific customer transaction. Use this to check the current status of a withdrawal or deposit. For deposit transactions where `developerFee` is present, wallet receive amount = `targetAmount - developerFee.amount`. **Status Values** - `PROCESSING` — Transaction is being processed - `PROPOSED` — Awaiting approval in dashboard - `PARTIALLY_SIGNED` — If multiple approvers configured: requires more approvals. - `COMPLETED` — Successfully completed - `FAILED` — Transaction failed - `CANCELLED` — Cancelled by user - `EXPIRED` — Expired before completion - `PENDING_REVERSAL` — A return is in flight: a deposit being returned to the sender, before or after `COMPLETED`, or a withdrawal the recipient's bank returned that is being refunded. It always ends `REVERSED`. - `REVERSED` — Deposit returned to the sender's bank account, or withdrawal returned by the recipient's bank **Action Required** When `requiresUiAction` is `true`, the transaction needs user approval in the dashboard. For AUD-only customers, each AUD payment is a `DEPOSIT` with `paymentRail: "AU_BANK_TRANSFER"`, `sourceCurrency: "AUD"` and `payerName`; payments on hold are reported as `PROCESSING`. A returned AUD payment reports `PENDING_REVERSAL` while the return is in flight and `REVERSED` once it settles. An AUD withdrawal the recipient's bank returns, before or after `COMPLETED`, reports `PENDING_REVERSAL` while it is refunded, then `REVERSED`, refunded less the reversal fee (see `reversal`).
Get whitelisted addresses GET
Returns all whitelisted addresses for the authenticated organization, including entries pending approval.

