Hi Sophia,
The supported ServiceM8 API access covers job and recorded payment data, but it doesn’t provide a ServiceM8 Pay settlement ledger containing processor capture status, refunds/disputes/reversals, balance transactions, processing fees, payout status or exact payout membership. The supported accounting alternative is ServiceM8 Pay Transactions, which records payments, fees and payout transfers in Xero.
1. Available read-only API data
The relevant endpoints, under https://api.servicem8.com/api_1.0, are:
| Endpoint |
Minimum OAuth scope |
Available information |
GET /jobpayment.json |
read_job_payments |
Recorded payments, including uuid, job_uuid, timestamp, amount, method, note, is_deposit, active and edit_date |
GET /jobpayment/{uuid}.json |
read_job_payments |
An individual recorded payment |
GET /job/{uuid}.json |
read_jobs |
Job details, including generated_job_id, total_invoice_amount, payment_received and payment_processed |
Use the payment’s uuid as its ServiceM8 record identifier and job_uuid to link it to the job. These endpoints don’t expose dedicated Stripe payment, balance-transaction or payout IDs, or a Xero invoice ID. note is optional free text that can contain references, not a dedicated processor-reference field.
Importantly, payment_received indicates that the job is fully paid, while payment_processed indicates export to the connected accounting package. Neither is a processor capture-status field.
For the Xero-side invoice cross-reference, the existing numbering preference matters: by default, the ServiceM8 job number becomes the Xero invoice number. If Xero issues the invoice number instead, the ServiceM8 job number goes into Xero’s Reference field. This doesn’t require changing the preference.
2. Authentication, MCP and pagination
For your strict read-only requirement, use a ServiceM8 OAuth application requesting only read_job_payments read_jobs, rather than write/manage scopes. An OAuth application can remain unlisted and be used privately; creating one requires a Development Partner account. API-key private applications are also supported, but the OAuth scopes above explicitly provide read-only access to these resources. These are ServiceM8 credentials, not Stripe credentials.
MCP doesn’t provide the missing ServiceM8 Pay settlement capabilities. It also includes actions that can modify ServiceM8 data, so the general MCP connector shouldn’t be treated as a read-only finance interface.
For REST pagination, start with cursor=-1, then pass the response’s x-next-cursor value as the next request’s cursor. Each page contains up to 1,000 records; stop when that header is absent. The payment-list endpoint also supports $filter.
3. Supported reconciliation with the existing Xero connection
Where ServiceM8 Pay Transactions is already configured, the workflow is:
- Standard invoice payments sync into the ServiceM8 Pay Clearing Account, usually after the invoice is approved or synced.
- After the payment syncs, ServiceM8 creates the processing-fee Bill and its Bill Payment from the clearing account.
- When ServiceM8 receives and processes the payout event, it creates a transfer from the clearing account to the configured business bank account.
- Reconcile the actual bank-feed deposit against that transfer, not against the individual invoice payments. A grouped payout produces one combined net transfer.
These entries provide the accounting-side payment amounts, processing fees and net payout transfers. However, a Xero transfer can have a generic description rather than list each job, so it isn’t an exact payout-membership feed. Temporary clearing balances can arise while related payments, fees and payout transfers are still being recorded. ServiceM8 doesn’t automatically reconcile the bank feed.
This feature supports Xero and QuickBooks Online. ServiceM8 Pay itself requires a monthly subscription plan. If ServiceM8 Pay Transactions isn’t already configured, treat activation as a separate administrator/accountant decision, not an action for your read-only agent.
4. Reports and remaining gaps
The Advanced Reporting Pack provides a Job List CSV export, but it isn’t a ServiceM8 Pay settlement-ledger export. Reports access is restricted to the Business Owner security role by default. The developer API doesn’t offer an automatic export of the missing processor fee, balance-transaction and payout-membership data.
In short, recorded payments and job links are available through REST, and fee Bills and net payout transfers are available through the existing accounting workflow. Processor capture status, refund/dispute/reversal history, gross/fee/net balance-transaction records and exact payout membership remain outside the ServiceM8 developer API.
We’ll confirm with the team whether merchant-owned restricted Stripe keys or an approved third-party Stripe OAuth/extension connection can be used on an existing ServiceM8-managed Pay profile without changing its connections, which payout-detail reports or automatic exports are supported, and the applicable history limits and access eligibility.
Thanks,
Cody