Skip to content

SDP-2119 doc: update SDP API reference for 7.0.0 - #2791

Merged
ElliotFriend merged 5 commits into
stellar:mainfrom
hypekostas:chore/SDP-2119-update-SDP-api-reference-for-7.0.0
Aug 31, 2026
Merged

ElliotFriend merged 5 commits into
stellar:mainfrom
hypekostas:chore/SDP-2119-update-SDP-api-reference-for-7.0.0

Conversation

@hypekostas

@hypekostas hypekostas commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

What

Add the multi-wallet API surface to the OpenAPI spec:

  • Add 10 paths / 12 operations and 7 schemas under /distribution-wallets
  • Add distribution_wallet_ids on the API-key schemas
  • Add X-Wallet-Id on the 13 existing operations that honour it.
  • Change circle_transfer_request_id to circle_transaction_id plus the new circle_transaction_type
  • Add source_wallet_id on Payment and Disbursement
  • Add webhook_url on Organization.

Only openapi/stellar-disbursement-platform/main.yaml is hand-edited. Everything else is pnpm api output.

Why

The multi-wallet endpoints shipped in 7.0.0 and require documentation in the API reference. 7.0.0 also introduces some changes to existing endpoints, and the Circle field rename is a breaking change the spec still describes under its old name.

SDP 7.0.0 release changelogs:

Known limitations

  • pnpm api exits 1. api:gen uses brace expansion ({callbacks,platform/transactions}) which dash does not expand, so the Anchor Platform .info.mdx cleanup fails and the SDP one after it never runs. Three .info.mdx files are left behind and were removed by hand.
  • api:clean deletes docs/platforms/stellar-disbursement-platform/api-reference/_category_.json, which the generator does not recreate. Restored by hand.
  • A full pnpm api also regenerates 47 Horizon pages, because the committed Horizon output is stale relative to openapi/horizon/bundled.yml since 4e7fd938. Excluded here as unrelated.

Note: the rest of the SDP Admin Guide is being updated in #2790.

Copilot AI balanced review requested due to automatic review settings August 24, 2026 16:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 129 out of 129 changed files in this pull request and generated 5 comments.

@ElliotFriend ElliotFriend left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, overall! I added a couple notes throughout. the only real "blocker" from my review would be the asset_code and asset_issuer thing.

might also be good to change the info.version in the api spec (currently still sits at 2.1.0). happy to have it as a different PR, if you want, but this feels like the natural time to update that version, too.

asset_issuer:
type: string
description: Issuer of the asset. Empty for the native asset.
example: USDC

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small snag from adding this property: it landed above the example: USDC line that belonged to asset_code, so asset_code lost its example and asset_issuer now documents USDC as an issuer value. (using the circle testnet issuer, since that matches what Balance and Amount already use for asset_issuer.)

Suggested change
example: USDC
asset_code:
type: string
example: USDC
asset_issuer:
type: string
description: Issuer of the asset. Empty for the native asset.
example: GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you. Addressed.

can_create_payment: true
can_retry_payment: true
can_cancel_payment: false
parameters:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameters: node is empty, so it parses as null and the redocly check rejects it:

Expected type `NamedParameters` (object) but got `null`

Nothing in CI runs redocly lint today (and main already fails it on the unused DirectPayment component), so this won't turn the build red. Still worth dropping, since the next person to run the linter will hit it.

If it was a placeholder for a shared X-Wallet-Id parameter, that would be a nice follow-up on its own: the header is spelled out 13 times across this diff with six slightly different descriptions. Two or three shared components (list scoping, write routing, trustline target) would cover it, though I can see the argument for keeping the wording per-operation.

@hypekostas hypekostas Aug 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The placeholder is for exactly that yes. X-Wallet-Id was originally a shared component, but was deliberately changed to be per-operation since the semantics genuinely differ (e.g. optional narrowing vs required source vs default-fallback). The suggestion of 3 shared components is great, so this is how it is now implemented: XWalletIdListScope, XWalletIdWriteSource and XWalletIdTrustlineTarget covering 10 instances where the mechanical description fits very well, and the last 3 are kept inline (they contain nuances that shouldn't be generalized). Also added a comment on the inline ones to explain the inconsistency.

Comment on lines +7202 to +7204
operation:
type: string
description: The change that was recorded

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be written as an enum? I think the backend writes INSERT for a grant and DELETE for a revoke (please correct me if i'm mistaken), and as an unconstrained string described as "The change that was recorded" a consumer doesn't really have anything concrete to branch on.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, the possible values are INSERT, DELETE and UPDATE. Addressed.

required:
- name
properties:
name:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be nice to include a maxLength: 64 here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed.

@hypekostas

Copy link
Copy Markdown
Contributor Author

might also be good to change the info.version in the api spec (currently still sits at 2.1.0). happy to have it as a different PR, if you want, but this feels like the natural time to update that version, too.

Thanks a lot for the review. Regarding the version bump, totally agreed. I'd bump to 3.0.0, but the commit history suggests that this should correspond to the SDP's current version (and it just hasn't been updated in a while), so I've bumped to 7.0.0.

@ElliotFriend ElliotFriend left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great!! thanks for working through everything and getting this finished!

i left one non-blocking note, but feel free to merge whenever you're ready!

@ElliotFriend
ElliotFriend merged commit d2f5cd7 into stellar:main Aug 31, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants