Compose Finance
Transactions

Get customer transactions

Returns the transaction history for a specific customer. Only includes DEPOSIT and WITHDRAWAL transactions.

GET
/api/v2/customers/{customerId}/transactions

Returns the transaction history for a specific customer. Only includes DEPOSIT and WITHDRAWAL transactions.

Authorization

bearerAuth
AuthorizationBearer <token>

Organization API key obtained from PropelAuth

In: header

Path Parameters

customerId*string

Unique identifier of the customer

Response Body

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": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "type": "DEPOSIT",
    "status": "COMPLETED",
    "createdAt": "2024-01-15T10:30:00.000Z",
    "completedAt": "2024-01-15T10:35:00.000Z",
    "reference": "FLGVNY3H9F",
    "sourceCurrency": "EUR",
    "targetCurrency": "USDC",
    "sourceAmount": "1000",
    "targetAmount": "1157.43",
    "exchangeRate": "1.1691279887",
    "fee": "1",
    "depositInstructions": {
      "accountType": "sharedAccount",
      "reference": "FLGVNY3H9F"
    },
    "walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "developerFee": {
      "developerSpreadFeeBps": 100,
      "amount": "2.50"
    },
    "txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
  },
  {
    "id": "cltx456def789xyz012",
    "type": "WITHDRAWAL",
    "status": "PROPOSED",
    "requiresUiAction": true,
    "createdAt": "2024-01-20T14:00:00.000Z",
    "completedAt": null,
    "reference": "cltx456def789xyz012",
    "sourceCurrency": "USDC",
    "targetCurrency": "EUR",
    "sourceAmount": "500",
    "targetAmount": "432.5",
    "exchangeRate": "0.865",
    "fee": "2.5",
    "withdrawalBank": {
      "id": "bank_123abc",
      "beneficiaryName": "JOHN DOE",
      "iban": "DE89370400440532013000"
    },
    "walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "developerFee": null,
    "txHash": null
  }
]
{
  "error": "Unauthorized - Invalid or missing API key or session"
}
{
  "error": "Customers feature is not enabled for your organization"
}
{
  "error": "Customer not found"
}
{
  "error": "Internal server error"
}