🔗
Linker Studio
  • Welcome!!
  • 🚀GETTING STARTED
    • Set up your custom project from Linker Studio
    • How to run the project
    • Linker Features
      • Glossary
      • Web
      • Mobile
        • Aggregators
        • Analytics
        • Authentication
        • BaaS
        • Carousel
        • Client Support
        • Error and Crash Reporting
        • Info Onboarding
        • KYC
        • Payroll
        • Pii Onboarding
        • Push Notifications - OneSignal
        • Settings
        • Subscriptions
      • Backend
        • Authentication
        • MFA
        • BaaS
        • Aggregators
        • Notifications
        • Payments
        • Deposit Switching
        • Support
        • Vault
        • Storage
        • Monitoring
        • Analytics
  • 🖥️WEB FEATURES
    • Page 2
  • 📱Mobile App Features
    • Project File Structure
    • Figma Tokens Integration
    • Core Module
      • Core UI Components
        • Atoms
        • Molecules
        • Organisms
        • Templates
      • Core Elements
      • Hooks
        • Force update
      • Endpoints used
      • States And Selectors
        • contentsDocuments
    • Modules
      • [New Feature Template]- Feature Name
        • UI Components - Template
          • Atoms
          • Molecules
          • Organisms
          • Templates
        • Hooks - Template
        • Endpoints Used
        • States and Selectors - Template
      • 📥KYC
        • Alloy
        • Baas
          • UI Components
            • Templates
          • Hooks - Template
          • Endpoints Used
          • States and Selectors - Template
        • common
          • UI Components
            • Templates
          • Endpoints Used
      • 🤝Aggregators
        • Plaid
          • Plaid/Rize notification before disabling account
      • 🤖Analytics
        • Amplitude
      • 🔐Authentication
        • Hooks
        • Auth0
          • Hooks
            • Login
            • Forgot password
          • 📧Verify Email
            • Hooks
        • Biometrics
          • Hooks
        • Auto Logout
        • States And Selectors
          • Authentication
      • 💰BaaS
        • Common
          • BaaS Navigation
          • External Accounts
          • UI Components
            • Molecules
            • Organisms
            • Templates
          • Hooks
            • Statements
            • Recurrent Transfers
            • Cards
              • Get Full Card
              • Lock and Unlock
              • Request Physical Debit Card
              • Reissue Debit Card
              • Set / Reset Debit Card Pin
            • Transfer
          • States And Selectors
            • Customer
            • Accounts
            • Cards
            • Transactions
          • Endpoints used
          • Constants
            • ACH_SERVICES
        • treasury
          • Constants
            • CONFIG_VALUES
      • 🛂Client Support
      • 🐛Error and Crash Reporting
        • Crashlytics
      • ℹ️Info Onboarding
        • States and Selectors
        • Hooks
          • Physical Card Request
      • 🌯Linker Wrapper
        • Linker Wrapper Messages Structure
        • Linker Wrapper Features
          • Push Notifications
            • Braze
          • In-App Purchase
      • 🛗MFA Verification Code
        • UI Components
          • Molecules
          • Templates
        • Hooks
        • Endpoints used
        • Configurable Constants
      • 🗞️Payroll
        • UI Components
          • Organisms
          • Templates
        • Hooks
        • States and Selectors
      • 📋PII Onboarding
        • UI Components
          • Atoms
          • Molecules
          • Organisms
          • Templates
        • Hooks
        • States and Selectors
      • 🔔Push Notifications
        • OneSignal
      • 🔧Settings
      • 🗄️Vault
        • VGS Show
        • VGS Collect
    • Cookbook
      • 🏦Neobank
        • Linked Functionalities
          • Edit Personal Details Linking
          • Request Physical Debit Card Linking
          • Get customer Data after SignUp/Login
  • ⛓️Backend API
    • Environments
    • Migrations
      • Configuration
      • Migration Commands
      • Base Model
      • Migration Structure
    • Seeds and Factories
      • Configuration
      • Seeds And Factories
    • SoftDelete
    • DB Fields Encryption
    • DB Structure
    • DB Configuration Table
      • API Endpoints
    • Orchestrator
    • Swagger
      • Setup
      • Decorators for Requests and Responses
      • Decorators for Controllers and HTTP Responses
      • Auth Decorator
      • Multiple Decorators
  • 🪙Finance Integrations
    • Recurring Transfers
      • Architecture
      • Jobs Server
      • Functionality
      • BaaS
        • Rize API Endpoints
        • Treasury Prime API Endpoints
        • Business Treasury Prime API Endpoints
    • BaaS
      • Rize
        • Env Variables
        • Rize API authentication
        • Onboarding
          • Customer Enrollment
          • Get Compliance Workflow
          • Acknowledge Compliance Workflow
          • Customer Complete Enrollment
        • KYC - Know Your Customer
          • Get KYC Documents
          • Upload KYC Document
        • Accounts
          • Get Customer Accounts
          • Get Customer Account By ID
          • Create Customer Account
          • Archive Customer Account
          • Get ACH Customer Accounts
        • Debit Cards
          • Get Debit Cards
          • Get Debit Card Image
          • Lock Debit Card
          • Unlock Debit Card
          • Create Physical Card
          • Activate Debit Card
          • Get Debit Card Set-Pin URL
          • Reissue Debit Card
        • Transactions
          • Get Transactions
        • Transfers
          • Internal Transfers
          • ACH transfers
        • Statements
          • Get Statements
          • Get Statement Document
        • Fake Transactions
        • Message Queue
        • Web Sockets
        • API Endpoints
          • Account Enums
          • Debit Card Enums
          • Transaction Enums
          • KYC Enums
      • Galileo
        • Environment Variables
        • Onboarding
          • Get Customer
          • Customer Enrollment
          • Customer Complete Enrollment
        • Customer Management
          • Get Profile
          • Update Profile
        • Accounts
        • Add Accounts
        • Card Management
          • Get Debit Cards
          • Get Image Card
          • Card Statuses
          • Debit Card Activation
          • Request Physical Card
          • Set PIN
          • Lock/Unlock
        • Transfer
        • Transactions
          • Get Transactions
          • Filter Transactions
        • ACH
          • Add ACH Account
          • Get ACH Accounts
          • Remove ACH Account
          • ACH Transactions
        • Statements
        • Plaid Integration
      • Synapse
        • Environment Variables
        • Terminology
        • Resources
        • API Endpoints
    • Aggregators
      • Add Account Service and new DB Table
      • Plaid
        • Plaid Configuration
        • Application Creation
        • Custom Application
        • Configure Single or Multi Accounts
        • Security Settings
        • Verification of Environment Variables
        • API Endpoints
        • Resources
        • Integrations
          • Rize
      • MX
        • Env Configuration
        • API Endpoints
  • 🔐Authentication
    • Auth0
      • Configuration
      • Protecting an endpoint
      • Email verification
      • API Reference
    • Twilio
      • 2FA
        • Verify Service Configuration
        • Verification Workflow
        • API Endpoints
  • 🪪 KYC
    • Persona
      • Configuration
      • Environment Variables
      • KYC Flow
  • ✉️ Mailings
    • Sendgrid
      • Configuration
      • Environment Variables
      • Send Email with Attachments
  • 🆘Supports
    • Zendesk
      • Configuration
      • API Endpoints
  • 📳NOTIFICATIONS
    • OneSignal
      • Schema
      • Setup
      • Environment Variables
      • API Endpoints
  • 🔐Security
    • VGS
      • Configuration
      • Rize Route Configuration
      • VGS Vault Basics
      • VGS Show
  • 🖥️MONITORING
    • New Relic
      • Configuration
      • Interceptor
  • 🧑‍🔧CONTENT ADMINISTRATOR
    • Notifications
    • Onboardings
      • DB Schema
      • Admin - API Endpoints
      • Client - API Endpoints
    • Documents
      • Document Category
      • Document
      • Client - API Endpoints
      • Admin - API Endpoints
    • App Versions
      • Device App Versions
      • API - Administrator
      • API - Client
  • 💵Payments
    • Stripe
      • Configuration
      • Customers
      • Sources
      • Authorization
      • Charges
      • API Endpoints
Powered by GitBook
On this page

Was this helpful?

  1. Finance Integrations
  2. BaaS
  3. Galileo
  4. Transactions

Get Transactions

PreviousTransactionsNextFilter Transactions

Last updated 2 years ago

Was this helpful?

Endpoint: BASE_URL/bass/transactions

To obtain all the transactions of an account, the endpoint is being used.

Example response:

{
  "status_code": 0,
  "status": "Success",
  "processing_time": 0.577,
  "response_data": {
    "transaction_count": 1,
    "page": 1,
    "total_record_count": 1,
    "number_of_pages": 1,
    "start_date": "2020-06-15 00:00:00",
    "end_date": "2020-07-16 23:59:59",
    "sums": {
      "unsettled": 6.52,
      "settled": 23.55,
      "adjustment": 0,
      "fee": -1.57,
      "payment": 0
    },
    "transactions": [
      {
        "is_savings": true,
        "deny_code": null,
        "disputable": false,
        "details": "Pending Payment",
        "act_type": "PE",
        "act_type_description": "Pending Payment",
        "post_ts": "2020-07-15 14:13:26",
        "amt": 1,
        "source_id": "7353070",
        "type": "VL",
        "type_description": "Visa Load",
        "trans_code": "PEVL",
        "arn": "",
        "merchant_id": null,
        "external_trans_id": "",
        "calculated_balance": 30.11,
        "ach_trans_id": null,
        "auth_ts": null,
        "prior_id": "0",
        "card_id": "N/A",
        "formatted_merchant_desc": null,
        "network_code": null,
        "auth_id": null,
        "local_amt": null,
        "local_curr_code": null,
        "settle_amt": null,
        "settle_curr_code": null,
        "billing_amt": null,
        "billing_curr_code": null,
        "pmt_ref_no": "005461522202",
        "mcc_code": null,
        "iac_tax": "0",
        "iva_tax": "0"
      },
    ],
    "beginning_balance": 0
  },
  "echo": {
    "provider_transaction_id": "",
    "provider_timestamp": null,
    "transaction_id": "681a5fab-9570-4b40-a531-69ae657d3264"
  },
  "rtoken": "8cc16de0-5eda-4e2a-968e-3b08fce6f778",
  "system_timestamp": "2020-07-15 14:13:28"
}

In the API, you can see that many things are handled through numeric codes, alphanumeric or through an alphabetic code.

export enum ActivityTypeCodesHumanize {
  'AB' = 'Allpoint Backout',
  'AD' = 'Adjustment',
  'AP' = 'Allpoint Authorization',
  'AS' = 'Allpoint Settlement',
  'AU' = 'MasterCard Authorization',
  'AX' = 'Allpoint Auth Expiration',
  .......,
  'SX' = 'Star Expired Authorization',
  'TE' = 'Transaction Expired',
  'TH' = 'Transaction Hold',
  'VI' = 'Visa Authorization',
  'VS' = 'Visa Settlement',
  'VX' = 'Visa Expired Auth',
}

In the src/baas/galileo/galileo.utils.ts file, in the function formatTransactionInfo, we transform the response we receive from Galileo to the response expected by our Linker client:

public async formatTransactionInfo(
  transaction: GalileoTransactionResponse,
): Promise<Transaction> {
  return {
    id: transaction.source_id,
    amount: this.removeDashSign(transaction.amt),
    description: transaction.description,
    createdAt: transaction.post_ts.toString(),
    currencyCode: CurrencyCode.USD,
    type: ActivityTypeCodesHumanize[transaction.act_type],
    status: TransferStatus.SETTLED,
    direction: this.returnTransactionDirection(parseFloat(transaction.amt)),
  };
}
type: ActivityTypeCodesHumanize[transaction.act_type],

In this line we take the code that is sent by Galileo, and we get its equivalence from ActivityTypeCodesHumanize.

amount: this.removeDashSign(transaction.amt),

Within this function we also remove the negative sign of transactions, since the direction field will indicate the sign of the amount.

direction: this.returnTransactionDirection(parseFloat(transaction.amt)),

The returnTransctionDirection function will return debit if the amount is negative, and credit if the amount is positive.

In the transaction state, settled is always being returned. because if an account transfer fails for some reason (for example, 445-06 Sender Insufficient Balance), the transaction won't even be created, but if a successful response is returned, the transaction will complete. (This only happens on internal Galileo transfers).

ACH transactions are stateful because they go through the clearinghouse and out of the Galileo system.

Linker example response:

{
    "statusCode": 200,
    "data": {
        "totalCount": 2,
        "count": 2,
        "limit": 1,
        "offset": 1,
        "transactions": [
            {
                "id": "1002",
                "amount": "3.99",
                "description": "Adjustment",
                "createdAt": "2022-10-05 08:49:21",
                "currencyCode": "USD",
                "type": "Adjustment",
                "status": "settled",
                "direction": "debit"
            },
            {
                "id": "801",
                "amount": "100",
                "description": "Payment",
                "createdAt": "2022-09-18 12:05:39",
                "currencyCode": "USD",
                "type": "Payment",
                "status": "settled",
                "direction": "credit"
            }
        ]
    }
}

For example, act_type refers to an . This field is returned in the Linker's response template. But to make it more readable for a user, an enumeration was created, which contains the equivalence of each code:

🪙
Get All Transaction History
activity type