Skip to content
GitHub

Get spent amounts for current outgoing payment grant

The Get Spent Amounts for Current Outgoing Payment Grant API returns the debit and receive amounts spent against an outgoing payment grant.

The grant is identified by the client’s GNAP access token. For grants created with a recurring interval, the amounts returned reflect the current interval only.

The code snippets below let an authorized client retrieve the spent amounts for the current outgoing payment grant.

We recommend creating a wallet account on the test wallet. Creating an account allows you to test your client against the Open Payments APIs by using an ILP-enabled wallet funded with play money.

Get the spent amounts for an outgoing payment grant

Section titled “Get the spent amounts for an outgoing payment grant”
Authenticated client required
Prerequisites
Initial configuration

If you’re using JavaScript, only do the first step.

  1. Add "type": "module" to package.json.

  2. Add the following to tsconfig.json

    {
    "compilerOptions": {
    "target": "ES2022",
    "module": "ES2022"
    }
    }
// Coming soon