kTRDj2FTpXGQcEa0lUsiXZFtkRcZY is an order id GCKHRmtqo7YPAp5GXRopEyoLzUcZY is its associated payment id. You can use the API from either direction Order ↔ Payments but for reconciliation I’d recommend starting from the payments since not all payments have an order. I located the payment above and see a 115c processing fee in the JSON response.
My earlier suggestion to stitch together APIs or use custom reports was too broad for the specific Payroll and Banking breakdowns you need.
What you can automate through the APIs:
If a subset of the data works for you, these options are supported:
- Team and Labor APIs: Team member information, configured wages, timecards, breaks, and declared tips.
- Reporting API: Workweek labor metrics, including regular, overtime, and double-time hours and labor costs. These aren’t finalized payroll results, so they shouldn’t be treated as equivalent to the Accounting Summary for a completed pay run.
- Payouts API: Payout amounts, their banking destinations, and the charges, refunds, fees, and other entries that make up each payout.
The Payouts API’s destination field describes where a payout was sent. It doesn’t provide the Banking screen’s allocation breakdown across Savings, bitcoin, and your main account.
For the complete Payroll breakdown:
The finalized Accounting Summary and Bank Withdrawal Summary you described aren’t available through the public APIs, including the Reporting API. Payroll’s downloadable “custom reports” are separate from the custom report builder I mentioned earlier.
For your workflow, the supported path is to download Payroll reports from Square Dashboard:
- Go to Staff → Payroll → Run payroll.
- Under Payroll history, select View all → Download reports.
- Choose Paycheck Details as a starting point, or Company Totals for summarized pay and tax totals.
- Select the month/date range and relevant team members, then download.
The Payroll reports guide covers the available reports and download steps. Before building around an export, check a sample against your required accounting and withdrawal fields. I don’t want to promise that every line shown on the pay-run detail page appears in each downloadable report.
You could then have your integration read the downloaded files and generate your accounting information automatically. That would leave the Dashboard download manual while automating the formatting and consolidation. For the Banking allocation splits, you’d still need to use the Dashboard details rather than the Payouts API.
If the supported labor metrics and payout details are enough, an API-driven monthly CSV is feasible. For the exact breakdowns you listed, it would need those manual source downloads as well.
The development team is adding more payroll information to the reporting API but I don’t have a release timeline for it.