Exporting to QuickBooks Online
The QuickBooks Online integration is a one-way export: Vespy pushes its accounting transactions into QBO. Nothing flows back, and QBO is never the source of truth for a Vespy record.
connect ──> map accounts ──> export ──> review records1. Connect
Section titled “1. Connect”curl -X POST https://api.getvespy.com/api/integrations/qbo/connect \ -H "Authorization: Bearer $ACCESS_TOKEN"{ "redirectUrl": "https://appcenter.intuit.com/connect/oauth2?..." }Send the user to redirectUrl. They authorize in Intuit’s UI, and Intuit redirects back to
/api/integrations/qbo/oauth-callback, which stores the connection and bounces the browser
to your app. Those callback endpoints are browser-facing — never call them directly.
Confirm the result with GET /api/integrations, or with the connected field on the
export status endpoint below.
2. Map the chart of accounts
Section titled “2. Map the chart of accounts”Vespy categories must be paired with QBO accounts before anything can export. Read both sides:
curl https://api.getvespy.com/api/integrations/qbo/accounts \ -H "Authorization: Bearer $ACCESS_TOKEN"
curl https://api.getvespy.com/api/integrations/qbo/mappings \ -H "Authorization: Bearer $ACCESS_TOKEN"For a fresh connection, let Vespy do the obvious pairings first:
curl -X POST https://api.getvespy.com/api/integrations/qbo/mappings/auto \ -H "Authorization: Bearer $ACCESS_TOKEN"This creates and saves mappings for the accounts it can match confidently. Then set the
remainder with PUT /api/integrations/qbo/mappings, which replaces the whole mapping
set — send the complete list, not a delta.
GET /api/integrations/qbo/export/status reports requiredMappings, each with a mapped
flag. Every one must be true before an export will run.
3. Export
Section titled “3. Export”curl -X POST https://api.getvespy.com/api/integrations/qbo/export \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -H 'Content-Type: application/json' \ -d '{"fromDate":"2026-09-01","toDate":"2026-09-30"}'Both dates are YYYY-MM-DD and both are optional — omit them to export everything not yet
exported. Dates are calendar days in your organization’s time zone, and each journal
entry is dated on the local day its transaction was posted: a payment recorded at 9pm on
March 31 in New York lands in March, not April. The call queues the work and returns
immediately.
4. Watch it
Section titled “4. Watch it”curl https://api.getvespy.com/api/integrations/qbo/export/status \ -H "Authorization: Bearer $ACCESS_TOKEN"{ "connected": true, "exportFromDate": "2026-09-01", "exportToDate": "2026-09-30", "recordCounts": { "pending": 0, "synced": 214, "failed": 2, "skipped": 6, "conflict": 1 }, "lastRun": {}}Then drill into the individual transactions:
curl "https://api.getvespy.com/api/integrations/qbo/export/records?status=conflict" \ -H "Authorization: Bearer $ACCESS_TOKEN"| Record status | Meaning |
|---|---|
pending |
Queued, not yet sent |
synced |
Accepted by QuickBooks |
failed |
QuickBooks rejected it — the reason is on the record |
skipped |
Deliberately not exported, for example a voided transaction |
conflict |
The matching QuickBooks record changed since Vespy last saw it |
Edits after export
Section titled “Edits after export”If a transaction changes in Vespy after it was exported — an expense’s amount or category is corrected, for example — the next export updates its existing QuickBooks journal entry instead of creating a second one. If that entry was deleted in QuickBooks, it is recreated.
Conflicts
Section titled “Conflicts”conflict is the status worth paying attention to. It means the QuickBooks side no
longer matches what Vespy wrote: someone edited the journal entry in QuickBooks after
Vespy exported it, or another entry already uses Vespy’s document number. Overwriting
would silently discard their edit, so Vespy stops instead of choosing for you.
Resolve it in QuickBooks, then export the range again. Exporting again is the decision to let Vespy’s version win: an entry edited in QuickBooks is overwritten with the Vespy transaction. Since the export is one-way, a conflict is always a signal that QBO is being edited directly, which is worth correcting at the source.