diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index dc400eea..ae4be07d 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -323,6 +323,10 @@ export default defineConfig({ { label: 'Get an outgoing payment', link: '/sdk/outgoing-get/' + }, + { + label: 'Get spent amounts for current outgoing payment grant', + link: '/sdk/outgoing-grant-spent-amounts/' } ] }, diff --git a/docs/src/content/docs/sdk/outgoing-grant-spent-amounts.mdx b/docs/src/content/docs/sdk/outgoing-grant-spent-amounts.mdx new file mode 100644 index 00000000..6e8ae503 --- /dev/null +++ b/docs/src/content/docs/sdk/outgoing-grant-spent-amounts.mdx @@ -0,0 +1,82 @@ +--- +title: Get spent amounts for current outgoing payment grant +--- + +import { LinkOut } from '@interledger/docs-design-system' +import { Tabs, TabItem, LinkButton, Badge } from '@astrojs/starlight/components' +import Begin from '/src/content/docs/partials/_before-you-begin.mdx' +import Ts from '/src/content/docs/partials/_ts-init-config.mdx' + +The [Get Spent Amounts for Current Outgoing Payment Grant API](/apis/resource-server/operations/get-outgoing-payment-grant) 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. + +## Before you begin + + + +## Get the spent amounts for an outgoing payment grant + + + + + +Prerequisites + +
+ Initial configuration + +
+ +```ts wrap +// Coming soon +``` + +
+ +Prerequisites + +```rust wrap +// Coming soon +``` + + + +Prerequisites + +```php wrap +// Coming soon +``` + + + +Prerequisites + +```go wrap +// Coming soon +``` + + + +Prerequisites + +```java wrap +// Coming soon +``` + + + +Prerequisites + +```csharp wrap +// Coming soon +``` + + +
+ +## References + +- [API specification](/apis/resource-server/operations/get-outgoing-payment-grant)