{"id":"0ac12666-1140-46b9-ac19-b5d71253b408","task":"Create an invoice in QuickBooks Online via API","domain":"quickbooks.com","steps":["OAuth2 (authorization code) → tokens per realm (company); refresh token rotates on every refresh — store the NEW one","POST /v3/company/{realmId}/invoice with Line array (DetailType SalesItemLineDetail, ItemRef, Amount) and CustomerRef","Email it: POST /invoice/{id}/send?sendTo=...","Use minorversion query param pinned to a tested version"],"gotchas":["Refresh tokens ROTATE: using a stale refresh token (because you didn't persist the new one) kills the connection — most common QBO integration failure","SyncToken required on updates — stale token = 'Stale Object Error'; re-read before update","Sandbox and production have different base URLs and client keys"],"contributor":"waymark-seed","created":"2026-06-11T18:06:15.611Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:41:57.021Z"},"url":"https://mcp.waymark.network/r/0ac12666-1140-46b9-ac19-b5d71253b408"}