curl --request GET \
--url https://api.fernhq.com/transactions \
--header 'Authorization: Bearer <token>'{
"transactions": [
{
"transactionId": "1d8beb26-b4d1-47ee-8e5d-0d3905f200c7",
"customerId": "0423300f-ae6d-4e82-8afb-a3b430e22e29",
"quoteId": "1d8beb26-b4d1-47ee-8e5d-0d3905f200c7",
"transactionStatus": "PROCESSING",
"source": {
"sourceCurrency": {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
},
"sourcePaymentMethod": "ACH",
"sourceAmount": "100.00",
"sourcePaymentAccountId": "072a8b7b-38c7-429a-a6cf-35dae7f2fb77",
"sourceReferenceId": "0x5332ee2726b7a1b818447d116f81af3be3518a801fb229ebf43e563c0ac4b4bc"
},
"destination": {
"destinationPaymentAccountId": "072a8b7b-38c7-429a-a6cf-35dae7f2fb77",
"destinationPaymentMethod": "ETHEREUM",
"destinationCurrency": {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
},
"exchangeRate": "1.2",
"destinationAmount": "100",
"destinationReferenceId": "0x5332ee2726b7a1b818447d116f81af3be3518a801fb229ebf43e563c0ac4b4bc"
},
"fees": {
"feeCurrency": {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
},
"fernFee": {
"feeAmount": "5.45",
"feeUSDAmount": "5.45"
},
"developerFee": {
"feeAmount": "5.45",
"feeUSDAmount": "5.45"
}
},
"createdAt": "2023-08-01T12:00:00Z",
"updatedAt": "2023-08-01T12:00:00Z",
"correlationId": "03b7030f-6da1-4e76-3352-3debd82112c8",
"transferInstructions": {
"type": "fiat",
"transferPaymentMethod": "ACH",
"transferMessage": "Payment for order #12345",
"transferBankName": "First National Bank",
"transferBankAddress": "123 Bank St, Finance City",
"transferBankAccountNumber": "987654321",
"transferRoutingNumber": "123456789",
"transferBankBeneficiaryName": "John Doe",
"transferIban": "GB29NWBK60161331926819",
"transferBicSwift": "DEUTDEFF",
"transferIfscCode": "SBIN0005943",
"transferSortCode": "40-47-36",
"transferBsbNumber": "082-902",
"transferTransitNumber": "12345",
"transferBankCode": "001",
"transferClabeNumber": "002010077777777771",
"transferRoutingCode": "ROUT1234",
"transferBranchCode": "0001",
"transferClearingCode": "110000",
"transferCnapsCode": "102033003330",
"transferNubanCode": "1234567890",
"transferPixCode": "[email protected]",
"transferPaymentLink": "https://secure.payzen.lat/t/paxsz1d7"
},
"expiresAt": "2023-08-01T12:05:00Z"
}
],
"nextPageToken": "ZDE4YmViMjYtYjRkMS00N2VlLThlNWQtMGQzOTA1ZjIwMGM3"
}List all transactions for a customer with pagination
curl --request GET \
--url https://api.fernhq.com/transactions \
--header 'Authorization: Bearer <token>'{
"transactions": [
{
"transactionId": "1d8beb26-b4d1-47ee-8e5d-0d3905f200c7",
"customerId": "0423300f-ae6d-4e82-8afb-a3b430e22e29",
"quoteId": "1d8beb26-b4d1-47ee-8e5d-0d3905f200c7",
"transactionStatus": "PROCESSING",
"source": {
"sourceCurrency": {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
},
"sourcePaymentMethod": "ACH",
"sourceAmount": "100.00",
"sourcePaymentAccountId": "072a8b7b-38c7-429a-a6cf-35dae7f2fb77",
"sourceReferenceId": "0x5332ee2726b7a1b818447d116f81af3be3518a801fb229ebf43e563c0ac4b4bc"
},
"destination": {
"destinationPaymentAccountId": "072a8b7b-38c7-429a-a6cf-35dae7f2fb77",
"destinationPaymentMethod": "ETHEREUM",
"destinationCurrency": {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
},
"exchangeRate": "1.2",
"destinationAmount": "100",
"destinationReferenceId": "0x5332ee2726b7a1b818447d116f81af3be3518a801fb229ebf43e563c0ac4b4bc"
},
"fees": {
"feeCurrency": {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
},
"fernFee": {
"feeAmount": "5.45",
"feeUSDAmount": "5.45"
},
"developerFee": {
"feeAmount": "5.45",
"feeUSDAmount": "5.45"
}
},
"createdAt": "2023-08-01T12:00:00Z",
"updatedAt": "2023-08-01T12:00:00Z",
"correlationId": "03b7030f-6da1-4e76-3352-3debd82112c8",
"transferInstructions": {
"type": "fiat",
"transferPaymentMethod": "ACH",
"transferMessage": "Payment for order #12345",
"transferBankName": "First National Bank",
"transferBankAddress": "123 Bank St, Finance City",
"transferBankAccountNumber": "987654321",
"transferRoutingNumber": "123456789",
"transferBankBeneficiaryName": "John Doe",
"transferIban": "GB29NWBK60161331926819",
"transferBicSwift": "DEUTDEFF",
"transferIfscCode": "SBIN0005943",
"transferSortCode": "40-47-36",
"transferBsbNumber": "082-902",
"transferTransitNumber": "12345",
"transferBankCode": "001",
"transferClabeNumber": "002010077777777771",
"transferRoutingCode": "ROUT1234",
"transferBranchCode": "0001",
"transferClearingCode": "110000",
"transferCnapsCode": "102033003330",
"transferNubanCode": "1234567890",
"transferPixCode": "[email protected]",
"transferPaymentLink": "https://secure.payzen.lat/t/paxsz1d7"
},
"expiresAt": "2023-08-01T12:05:00Z"
}
],
"nextPageToken": "ZDE4YmViMjYtYjRkMS00N2VlLThlNWQtMGQzOTA1ZjIwMGM3"
}To authenticate server-side requests
Token for forward pagination
Number of items per page (default: 10, max: 100)
x >= 1Customer to list transaction for
Payment account to list transaction for
Organization to list transactions for
Response schema for listing transactions with pagination
Response schema for listing transactions with pagination
Retrieved transactions
Show child attributes
Unique identifier of the transaction
"1d8beb26-b4d1-47ee-8e5d-0d3905f200c7"
ID of the customer associated with this transaction
"0423300f-ae6d-4e82-8afb-a3b430e22e29"
ID of the quote used for this transaction
"1d8beb26-b4d1-47ee-8e5d-0d3905f200c7"
Current status of the transaction
AWAITING_TRANSFER, PROCESSING, COMPLETED, FAILED, CANCELLED, CREATED, EXPIRED "PROCESSING"
Show child attributes
Schema representing either a fiat or crypto currency
Show child attributes
The chain the crypto currency is on
ARBITRUM, BASE, ETHEREUM, OPTIMISM, POLYGON, SOLANA {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
}The payment method for the source transaction
ACH, WIRE, SEPA, AE_UAEFTS, AR_TRANSFERS_3, AU_BECS, BD_BEFTN, BO_RTGS, BR_TED_DOC_PIX, CA_INTERAC, CL_TEF, CN_CNAPS, CO_ACH, CR_SINPE, CZ_CERTIS, DK_NEMKONTO_FI, DO_ACH, EC_LOCAL, EG_RTGS_IPN, GB_BACS_CHAPS_FPS, GH_GHIPSS, GT_ACH, HK_HKICL_CHATS_ECG, HU_GIRO, ID_SKN_RTGS, IL_ZAHAV, IN_NEFT_RTGS_IMPS, JM_LOCAL, JO_ACH, JP_ZENGIN, KE_KIBBS_PESALINK, KR_LOCAL, LK_LOCAL, MX_SPEI, MY_IBG_RENTAS, NG_NIBSS_NEFT, NO_NICS, NP_LOCAL, NZ_LOCAL, PE_CCE, PH_INSTAPAY_PESONET, PK_RAAST_IBFT, PL_ELIXIR_BLUE_CASH, QA_QPS, RO_RTGS, SA_MADA, SE_BANKGIROT, SG_FAST_MEPS, SV_LOCAL, SWIFT, TH_BAHTNET_PROMPTPAY, TR_FAST_EFT, TZ_RTGS, VN_IBPS, ZA_RTGS_EFT, ACH_SAME_DAY "ACH"
The amount to be sent
"100.00"
The sending Payment Account Id.
"072a8b7b-38c7-429a-a6cf-35dae7f2fb77"
The source reference id or on chain transaction hash when applicable
"0x5332ee2726b7a1b818447d116f81af3be3518a801fb229ebf43e563c0ac4b4bc"
Show child attributes
The receiving Payment Account Id.
"072a8b7b-38c7-429a-a6cf-35dae7f2fb77"
The payment method for the destination transaction
ACH, WIRE, SEPA, AE_UAEFTS, AR_TRANSFERS_3, AU_BECS, BD_BEFTN, BO_RTGS, BR_TED_DOC_PIX, CA_INTERAC, CL_TEF, CN_CNAPS, CO_ACH, CR_SINPE, CZ_CERTIS, DK_NEMKONTO_FI, DO_ACH, EC_LOCAL, EG_RTGS_IPN, GB_BACS_CHAPS_FPS, GH_GHIPSS, GT_ACH, HK_HKICL_CHATS_ECG, HU_GIRO, ID_SKN_RTGS, IL_ZAHAV, IN_NEFT_RTGS_IMPS, JM_LOCAL, JO_ACH, JP_ZENGIN, KE_KIBBS_PESALINK, KR_LOCAL, LK_LOCAL, MX_SPEI, MY_IBG_RENTAS, NG_NIBSS_NEFT, NO_NICS, NP_LOCAL, NZ_LOCAL, PE_CCE, PH_INSTAPAY_PESONET, PK_RAAST_IBFT, PL_ELIXIR_BLUE_CASH, QA_QPS, RO_RTGS, SA_MADA, SE_BANKGIROT, SG_FAST_MEPS, SV_LOCAL, SWIFT, TH_BAHTNET_PROMPTPAY, TR_FAST_EFT, TZ_RTGS, VN_IBPS, ZA_RTGS_EFT, ACH_SAME_DAY "ETHEREUM"
Schema representing either a fiat or crypto currency
Show child attributes
The chain the crypto currency is on
ARBITRUM, BASE, ETHEREUM, OPTIMISM, POLYGON, SOLANA {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
}The rate at which the source currency is multiplied to determine the equivalent amount in the destination currency
"1.2"
The amount to convert and send, expressed in decimals and denominated in the source currency
"100"
The destination reference id or on chain transaction hash when applicable
"0x5332ee2726b7a1b818447d116f81af3be3518a801fb229ebf43e563c0ac4b4bc"
Fee structure for a transaction
Show child attributes
Schema representing either a fiat or crypto currency
Show child attributes
The chain the crypto currency is on
ARBITRUM, BASE, ETHEREUM, OPTIMISM, POLYGON, SOLANA {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
}ISO timestamp when this transaction was created
"2023-08-01T12:00:00Z"
ISO timestamp when this transaction was last updated
"2023-08-01T12:00:00Z"
Optional: You can add your own correlationId to match the transaction to your own internal records.
"03b7030f-6da1-4e76-3352-3debd82112c8"
Instructions for the customer to initiate the transfer
Show child attributes
fiat The fiat payment method used for the transaction
ACH, WIRE, SEPA, AE_UAEFTS, AR_TRANSFERS_3, AU_BECS, BD_BEFTN, BO_RTGS, BR_TED_DOC_PIX, CA_INTERAC, CL_TEF, CN_CNAPS, CO_ACH, CR_SINPE, CZ_CERTIS, DK_NEMKONTO_FI, DO_ACH, EC_LOCAL, EG_RTGS_IPN, GB_BACS_CHAPS_FPS, GH_GHIPSS, GT_ACH, HK_HKICL_CHATS_ECG, HU_GIRO, ID_SKN_RTGS, IL_ZAHAV, IN_NEFT_RTGS_IMPS, JM_LOCAL, JO_ACH, JP_ZENGIN, KE_KIBBS_PESALINK, KR_LOCAL, LK_LOCAL, MX_SPEI, MY_IBG_RENTAS, NG_NIBSS_NEFT, NO_NICS, NP_LOCAL, NZ_LOCAL, PE_CCE, PH_INSTAPAY_PESONET, PK_RAAST_IBFT, PL_ELIXIR_BLUE_CASH, QA_QPS, RO_RTGS, SA_MADA, SE_BANKGIROT, SG_FAST_MEPS, SV_LOCAL, SWIFT, TH_BAHTNET_PROMPTPAY, TR_FAST_EFT, TZ_RTGS, VN_IBPS, ZA_RTGS_EFT, ACH_SAME_DAY Message or memo that the customer must include with the deposit
"Payment for order #12345"
Name of the bank for deposit
"First National Bank"
Address of the bank
"123 Bank St, Finance City"
Bank account number for deposit
"987654321"
Routing number of the bank
"123456789"
Beneficiary name associated with the bank account
"John Doe"
IBAN for international transfers
"GB29NWBK60161331926819"
BIC/SWIFT code of the bank
"DEUTDEFF"
IFSC code for Indian bank transfers
"SBIN0005943"
UK sort code
"40-47-36"
BSB number for Australian banks
"082-902"
Canadian transit number
"12345"
Generic bank code
"001"
CLABE number for Mexican bank transfers
"002010077777777771"
Alternate routing code
"ROUT1234"
Branch code
"0001"
Clearing code
"110000"
CNAPS code for Chinese banks
"102033003330"
NUBAN number for Nigerian banks
"1234567890"
PIX key for Brazilian instant payments
Payment link for making the transfer (used for Colombian pesos)
"https://secure.payzen.lat/t/paxsz1d7"
ISO timestamp when this transaction expires (only for AWAITING_TRANSFER status)
"2023-08-01T12:05:00Z"
Token for fetching the next page of results
"ZDE4YmViMjYtYjRkMS00N2VlLThlNWQtMGQzOTA1ZjIwMGM3"
Was this page helpful?