Getting started
Connect your AI assistant
Use an AI assistant to inspect your NexPay records and ask questions about the API. The connection acts as your signed-in account and uses its current permissions.
Server URL
https://api.nexpay.com.au/v2/mcp
Choose OAuth authentication. Customers do not need to create an API key, paste credentials or supply OAuth client credentials. Sign in with your normal NexPay account when prompted, then review and approve the connection.
Claude
- In Claude, open Settings → Customize → Connectors.
- Choose Add connector → Add custom connector.
- Enter NexPay as the name and paste the server URL, then choose Continue.
- On the second screen, select Sign in now and Register automatically. Leave request headers empty, then choose Add.
- Sign in to NexPay, review the account and read access, and approve the connection.
- Start a conversation with NexPay enabled and ask: Show my payment-intent status counts.
Workspace administrators may need to enable custom connectors. See Claude’s current setup guide.
ChatGPT
In ChatGPT, open Settings → Apps → Advanced settings → Developer mode, then create an app using the NexPay server URL and OAuth. Complete the NexPay sign-in and consent screen. Availability depends on your plan and workspace permissions. See OpenAI’s current setup guide.
Other assistants
Choose Other in the NexPay setup modal for general connection steps. Your assistant must support remote MCP servers using Streamable HTTP and OAuth sign-in.
- Find custom connectors or MCP servers in your assistant’s settings.
- Add a remote server named NexPay using the server URL above.
- Choose OAuth or secure sign-in. If prompted for a client registration method, select automatic registration; NexPay supports dynamic client registration.
- Complete NexPay sign-in, review the account and read access, and approve.
- Enable the connection in your assistant. Exact labels vary by assistant.
Available tools
The launch catalog covers payment-intent lists, details and status counts; students, employees, payers and payees; commissions and outstanding totals; settlements and inbound payments; conversations; existing reports; organization profiles; FX rates; country and payment-method lookups; and sourced API documentation.
Report lists and downloads require a linked organization account. Individual accounts retain their owner-scoped records and cannot read organization exports.
Integrators can read the standard server descriptor. MCP initialization also advertises the NexPay logo as public 192px and 512px PNGs on the API's own origin. Logo display depends on the assistant's support for icon metadata. The descriptor does not imply a listing in any assistant's directory.
Read-only connections cannot create, submit or cancel payments, request withdrawals, send messages or change customer records. Payment creation requires a separate, explicit OAuth grant and an enabled deployment. Payment-intent detail reads may refresh status from the connector. Bearer payment links, bank-routing details and execution plans are excluded from conversational results.
Amount values retain NexPay’s REST major units, such as 99.99; recipient shares use basis points (10000 means 100%). List count is the current page size. Use total when provided, or aggregate tools for totals.
Payment creation through your assistant
Payment creation is an opt-in capability. Existing connections keep their read-only access. When enabled, reconnect with the mcp:payments scope alongside mcp:read and review the payment-creation permission on the NexPay consent screen. Payment approval happens in the assistant; there is no redirect to the NexPay payment wizard.
Scenario-specific tools are available for:
create_supplier_paymentcreate_payroll_paymentcreate_refund_paymentcreate_tuition_paymentcreate_allowance_paymentcreate_student_paymentcreate_payment_requestcreate_split_payment
Each tool defaults to action: "preview". Incomplete requests return questions, missing requirements and a previewId; the assistant uses the normal lookup tools to identify saved recipients, employees, students and payers. Payment details are replaced as a whole when revised; passing only the previewId and methods keeps the previous payment details and selects a quoted payment method.
A complete preview contains the recipients, amount currency and fixed side, quoted payer amount, fees and tax, split shares, documents, expiry and applicable limitations. Creating a payment request issues a link; it does not email it. Percentage split tools create a reusable tuition link whose payer chooses the payment amount and method later. No commission percentage is assumed.
After reviewing that exact summary and accepting the linked Terms & Conditions, the customer can instruct the assistant to call the same tool with:
{
"action": "commit",
"previewId": "the-returned-preview-id",
"userApproved": true,
"termsAccepted": true
}
The commit cannot include replacement payment details. Pricing, recipient or eligibility changes require another preview and approval. Previews expire after at most 15 minutes, sooner if a quote expires. Retry an uncertain submission with the same previewId; never create a replacement just because a response was interrupted. Payment creation does not mean the recipient has received funds.
Use payment_document_upload for actual customer-provided PDF, JPEG or PNG bytes encoded as base64, up to 3 MiB per file. The returned document ID can supply an identity or payment-purpose requirement. This does not submit a payment.
The initial creation tools use saved beneficiaries and employees. New beneficiary onboarding and installment payment methods are not exposed by these tools.
Disconnect
Open Claude & ChatGPT from your NexPay profile menu, or choose Claude & ChatGPT in the homepage’s Others section. Under Connected assistants, choose Disconnect. Access and refresh tokens for that connection are immediately revoked. You can also remove the connector from your assistant.
Developer access
The same endpoint accepts X-API-Key: clientId:secret for developer clients. This keeps the API key’s existing identity and permissions. MCP bearer tokens are restricted to this MCP endpoint and cannot authenticate ordinary REST calls.
The transport is stateless: POST handles JSON-RPC and GET/DELETE return 405. GET /v2/mcp/health returns health and the registered tool count. Clients send Accept: application/json, text/event-stream and Content-Type: application/json.
Troubleshooting
- No sign-in window: reconnect the assistant and ensure custom connectors are enabled.
- Expired connection: restart sign-in. Reused refresh tokens revoke their whole connection.
- No records: verify the connected account and its permissions. Results remain account-scoped.
- Documentation unavailable: retry; the tool reports an outage separately from no matching pages.
- Too many requests: retry after one minute.
Agents can use the connection prompt, model instructions, and documentation corpus.
What needs my attention?
Ask your assistant “What needs my attention in NexPay?” The attention_summary tool checks payments needing action, saved employees missing payout details, outstanding commissions by currency and unread payment conversations. Results contain bounded samples and indicate when a section is unavailable. It does not submit payments, send messages or request withdrawals.
Find and save recipients or employees
payee_search uses the same recipient pools as the payment wizard. employee_search finds saved payroll employees by name or email and can restrict results to the payroll country. Resolve ambiguous matches before selecting one.
For a new private recipient, recipient_create asks for the missing contact, banking and tax details, returns a review, and saves only after approval. Never invent these details. Verified public schools require NexPay support onboarding.
employee_create can create a payroll-ready employee with payout details, adopt a saved individual recipient with fromPayeeId, or complete an existing employee’s missing payout details using employeeId. It does not edit already linked banking details. Search first to avoid duplicate employees.
These setup tools require the separate mcp:operations OAuth grant. Existing read or payment grants do not gain this access automatically. Reconnect and review the requested setup access on the NexPay consent screen.
All setup tools default to action: "preview". Supply partial data and answer the returned questions. Previewing never creates a record. After the customer approves the review, call the same tool with action: "commit", previewId and userApproved: true, without changed data. Approvals expire after 15 minutes. Banking details are encrypted in the preview store and masked in the review. Completed retries return the saved result; an uncertain save must be inspected before attempting another creation, to avoid duplicates.
Continue the payment without repeating details
After selecting or creating the recipient, call the original payment tool with its previewId and recipientUpdates: [{row: 1, payeeId: 123}]. For payroll use recipientUpdates: [{row: 1, employeeId: "the-saved-Core-id"}]. Row numbers start at one. Core preserves amounts, references, documents and other details, refreshes pricing and returns a new payment review. Payment approval remains separate from approval to save the recipient or employee.
Generate a report
Ask “Generate my September payment report.” Use report_entities to select the exact entity and offered filters, then report_create to preview the request and queue it after approval. This also requires mcp:operations and an organization account. It uses the existing asynchronous reporting pipeline and sends the normal completion email to the creator. It cannot send a report to another user.
The result contains reportId and status: "queued", not a finished download. Poll report_list for that ID, then call report_download once completed. Do not create another report while waiting. Unsupported filters and tenant overrides are rejected before generation.