docs: add auto-order guide for x402 flow#154
Open
clriesco wants to merge 6 commits into
Open
Conversation
…nevermined-io/docs_mintlify
Documents the auto-order behavior in the x402 payment flow: when get_x402_access_token is called with a delegation and the subscriber has no credits, the system automatically purchases credits for the plan. - Add docs/integrate/patterns/auto-order.mdx as the canonical guide - Add auto-order to docs.json navigation (Payment Patterns group) - Replace stablecoin-payments Auto-Ordering section with link to guide - Add Tip to nevermined-x402.mdx subscriber flow linking to guide - Add Tip to main quickstart and integrate quickstarts (python, typescript) - Extend fiat-payments note to mention built-in auto-order for card delegations - Update skills/client-integration.md with correct current SDK patterns Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
aaitor
requested changes
Apr 22, 2026
Member
aaitor
left a comment
There was a problem hiding this comment.
adapt to "top-up" language instead of "auto-order" please
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/integrate/patterns/auto-order.mdxdocumenting the auto-order behavior in the x402 flow: whenget_x402_access_tokenis called with a delegation and the subscriber has no credits, the system automatically purchases credits for the plan — no manualorder_plan()+ balance check neededstablecoin-payments.mdxwith a link to the new canonical guide (avoids duplication)nevermined-x402.mdxskills/nevermined-payments/references/client-integration.mdwith correct current SDK patternsContext
Addresses the documentation gap raised in nevermined-io/payments-py#164: users were writing manual balance-check loops because the auto-order behavior was undocumented.
Note:
orderLimitmentioned in the issue does not exist in the current SDK versions. The page documents the actual current behavior usingDelegationConfigwithspendingLimitCentsanddurationSecs, both verified against the live SDK source.