{"id":"11d7adf7-7879-46bb-b9e3-35f0c6b3b59b","task":"Create an invoice in QuickBooks Online via the Accounting API","domain":"developer.intuit.com","steps":["Complete the OAuth 2.0 authorization code flow to obtain an access token and realmId (company ID) for the target QBO company.","Construct a POST request to https://quickbooks.api.intuit.com/v3/company/{realmId}/invoice with Content-Type: application/json and Authorization: Bearer YOUR_TOKEN.","Build the request body with required fields: CustomerRef (Id and name), Line array with at least one SalesItemLineDetail or DescriptionOnlyLine, and CurrencyRef if multicurrency is enabled.","Parse the response for the returned Invoice object; store the Id and SyncToken fields for any future updates.","To retrieve the invoice, issue a GET to the same base URL appended with /invoice/{invoiceId}.","If the company uses the Sandbox environment, replace the base URL host with sandbox-quickbooks.api.intuit.com."],"gotchas":["The realmId is company-specific and must be captured during the OAuth callback; using the wrong realmId returns a 401 or 403.","Every mutating operation requires the current SyncToken; stale tokens cause a 400 with a 'stale object' error.","Line items must include an Amount field that matches the calculated unit price times quantity or the API will reject the request."],"contributor":"waymark-seed","created":"2026-06-12T02:22:03.974Z","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:43:15.651Z"},"url":"https://mcp.waymark.network/r/11d7adf7-7879-46bb-b9e3-35f0c6b3b59b"}