From 784833ffaffec730c2ef6252c27833f03842d562 Mon Sep 17 00:00:00 2001
From: brad-dow <162852233+brad-dow@users.noreply.github.com>
Date: Fri, 15 May 2026 14:38:12 -0500
Subject: [PATCH 1/2] docs: add SDK page for get spent amounts on outgoing
payment grant
Adds a new SDK page scaffolding the 'Get spent amounts for current outgoing payment grant' operation across all six SDK languages (TS/NodeJS, Rust, PHP, Go, Java, .NET). Code snippets are placeholders pending developer contributions. Page is wired into the Outgoing payments sidebar section.
---
docs/astro.config.mjs | 4 +
.../docs/sdk/outgoing-grant-spent-amounts.mdx | 82 +++++++++++++++++++
2 files changed, 86 insertions(+)
create mode 100644 docs/src/content/docs/sdk/outgoing-grant-spent-amounts.mdx
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..9d5b5aea
--- /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 amounts spent and received for a specific outgoing payment grant.
+
+Using the ID of the outgoing payment resource, a client can check how much of the grant's authorized limit has been consumed so far.
+
+The code snippets below let an authorized client retrieve the spent amounts for a given 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)
From 65f1ac7ceaf3c5511d448b5849c2624e7912d372 Mon Sep 17 00:00:00 2001
From: brad-dow <162852233+brad-dow@users.noreply.github.com>
Date: Mon, 18 May 2026 11:24:45 -0500
Subject: [PATCH 2/2] docs: clarify wording
---
docs/src/content/docs/sdk/outgoing-grant-spent-amounts.mdx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/src/content/docs/sdk/outgoing-grant-spent-amounts.mdx b/docs/src/content/docs/sdk/outgoing-grant-spent-amounts.mdx
index 9d5b5aea..6e8ae503 100644
--- a/docs/src/content/docs/sdk/outgoing-grant-spent-amounts.mdx
+++ b/docs/src/content/docs/sdk/outgoing-grant-spent-amounts.mdx
@@ -7,11 +7,11 @@ 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 amounts spent and received for a specific outgoing payment grant.
+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.
-Using the ID of the outgoing payment resource, a client can check how much of the grant's authorized limit has been consumed so far.
+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 a given outgoing payment grant.
+The code snippets below let an authorized client retrieve the spent amounts for the current outgoing payment grant.
## Before you begin