Skip to main content
A fees resource represents a monetary assessment against an account holder’s general purpose account (GPA). Assessing a fee transfers funds from the account holder’s GPA account to your program’s fee account. By default, every account has a GPA account used for the funding of transfers. You can assess fees either post-transaction or in real time. Real-time fee assessment ensures the account has sufficient funds available to cover both the transaction amount and the fee before authorization of the transaction. To assess fees in real time, you must create a real-time fee group using the /realtimefeegroups endpoint. When assessing a post-transaction fee, you can either debit existing GPA funds, or pull in new funds from a funding source. To use existing GPA funds, use the /feetransfers endpoint. To pull in new funds, use the fees array in /gpaorders.
Note
If your program uses Gateway JIT Funding, you cannot assess fees.

Create fee

Action: POST
Endpoint: /fees
Use this endpoint to create a fee. Add the source details to the body of the request in JSON format.

Request body

Sample request body

JSON

Response body

Sample response body

JSON

List fees

Action: GET
Endpoint: /fees
Use this endpoint to list existing fees. This endpoint supports field filtering and pagination.

URL query parameters

Response body

Sample response body

JSON

Update fee

Action: PUT
Endpoint: /fees/{token}
Use this endpoint to update a fee. Include the token as a path parameter to indicate the fee to update.

URL path parameters

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Retrieve fee

Action: GET
Endpoint: /fees/{token}
Use this endpoint to retrieve a fee. Include the token path parameter to specify the fee to return.

URL path parameters

Response body

Sample response body

JSON