Nextapi
Use when the task involves general NextPay Partners API v2 integration work, especially setting up Basic Auth, choosing between merchant, account, funding-method, payment-intent, payout, webhook, or sandbox simulation endpoints, generating request or response examples, or explaining integration behavior from the OpenAPI spec.From its SKILL.md
npx -y skills add nextpay-ai/skills --skill nextapiAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.3 KB, 891 tokens by cl100k_base, as published. Nobody here has run it
NextPay Partners API
Overview
Use this as the broad integration skill for NextPay Partners API v2. Start with references/README.md for routing, then read the topic directory that matches the task, and use the live OpenAPI URL for exact current endpoints, schemas, enums, and parameter details.
Freshness
Treat the markdown references as routing guides, not the source of truth for current wire shapes. Use https://api.partners.nextpay.world/v2/openapi when exact fields, enums, endpoint availability, or behavior matter.
Quick Decision Tree
Need merchant or account work?
└─ references/core/
Need to collect money?
└─ references/money-in/
Need to disburse money?
└─ references/money-out/
Need webhooks or event delivery?
└─ references/integration/
Need sandbox testing?
└─ references/sandbox/
Need exact wire shapes?
└─ `https://api.partners.nextpay.world/v2/openapi`
Workflow
- Use
https://api.partners.nextpay.worldas the API base URL. - Use HTTP Basic Auth with the Client ID as the username and the Client Secret as the password.
- Read
references/README.mdto choose the right resource family before writing code. - Read the matching topic directory under
references/for the operational model and endpoint shortlist. - Read targeted sections of
https://api.partners.nextpay.world/v2/openapifor exact request bodies, enums, headers, and response fields. - Explain
PHP/2whenever it appears. Precision notation means the integer amount stores minor units, so10000means PHP 100.00.
Resource Selection
- Use merchants for legal-entity level onboarding and updates.
- Use accounts for balances, postings, and account-to-account transfers.
- Use funding methods for reusable receiving instruments.
- Use payment intents for one-time collection flows tied to a payment instrument lifecycle.
- Use payout requests to initiate disbursements. A payout request can fan out into multiple payouts when rail limits require splitting.
- Use payouts to inspect the individual disbursement records created from a payout request.
- Use webhooks to register event delivery endpoints and manage
activeorinactivestatus. - Use payment simulation only in test environments to exercise the real payment-processing and webhook paths without live provider traffic.
Integration Notes
- Prefer idempotency keys on create endpoints that expose
X-Idempotency-Key. Idempotency means a retry can avoid creating duplicate side effects. - Do not promise a payment-intent expiry webhook. The spec says expiry is represented by
expires_at, so fetch the resource if confirmation is needed. - When event timing matters, read
references/integration/webhooks.md.v2.payment_instrument.payment_receivedis the earliest positive payment signal,v2.payment_instrument.payment_settledis the stronger settlement signal, andv2.payment_intent.succeededis the one-time business completion event. - Expect mixed error payloads. Rate limits often use Problem Details fields such as
type,title,status,detail, andcode, while some validation or not-found responses use simplererrorandcodefields. - Read the live OpenAPI event enum before hard-coding handlers, because the allowed values include both older event names and v2-specific event names.
- Use sandbox payment simulation to test success, failure, and idempotent replay behavior. The simulation response can return
payment_processed,payment_failed, oralready_processed.
Quick Start
curl -u "$NEXTPAY_CLIENT_ID:$NEXTPAY_CLIENT_SECRET" \
https://api.partners.nextpay.world/v2/merchants
References
- Read
references/README.mdfirst for routing and domain differences. - Read
references/core/,references/money-in/,references/money-out/,references/integration/, orreferences/sandbox/for topic-specific guidance. - Read
references/integration/webhooks.mdwhen webhook event meaning or timing matters. - Read
https://api.partners.nextpay.world/v2/openapifor the live current contract.
What ships with it: 8 files
15.9 KB alongside SKILL.md
agents/
- openai.yaml212 B
references/
- core/README.md1.5 KB
- integration/README.md1.0 KB
- integration/webhooks.md4.9 KB
- money-in/README.md2.3 KB
- money-out/README.md1.9 KB
- README.md3.4 KB
- sandbox/README.md671 B