GPAs and Balances

Learn about general purpose accounts (GPAs), their balances, and how to get them.

Overview

A general purpose account (GPA) is a user’s default account. Funds are transferred from a funding source to a user’s GPA.

Types of GPA balances

Let’s take a look at the different types of GPA balances that are available for a user or a business:

  • In regards to standard funding, a ledger balance is an amount that refers to available funds. This includes those from authorized transactions that are yet to be cleared. In regards to Just-in-Time (JIT) fundingJust-in-Time (JIT) funding allows funds to be moved automatically from the program’s funding source to the appropriate account when a transaction is conducted., this refers to authorized funds that are yet to be cleared and are currently on hold.
  • Available balance refers to the user’s purchasing power. This is the amount that results from the deduction of authorized transactions that are yet to be cleared from the ledger balance. This balance is 0.00 if the user uses JIT funding.
  • Pending credits refer to the ACHThis stands for Automated Clearing House and is a payment system used by US banking networks. Transactions performed are sent to the network for clearance once a day at a designated time. loads that are accepted but are still pending clearance.
  • Cached balance and credit balance are not used at this time.

Get GPA balances

We can get all GPA balances for a user or a business by making a GET request to the {BASE_URL}/balances/{token} endpoint. The path parameter ({token}) refers to the token of the user or business whose GPA balances we want to get. This endpoint also provides us with a link to the GPA balances of the specified user or business in the response.

Path Parameter

Parameter

Type

Category

Description

token

string

required

Token of the user or business whose GPA balances we want to get

Line 1: We use the saved USER_TOKEN for the value of token, which is a required path parameter.

Click the “Run” button in the code widget below to see the output.

Press + to interact
token = '{{USER_TOKEN}}'
url = '{{BASE_URL}}balances/' + token
response = requests.get(url, headers=headers)
printResponse(response)

When the code is executed successfully, the output displays and provides a link to all the GPA balances for the user or business that corresponds to the given token.

In case of failure, an appropriate error message is displayed.