Create a new resource
Authorizations
Enter your API key with the Bearer prefix — e.g. Bearer sk_live_xxx (production) or Bearer sk_test_xxx (sandbox)
Headers
Identifier of the end user whose connected provider should be queried. This is the same endUserId you supplied when creating the connect token. Required on every CRM and accounting call.
"user-001"
Path Parameters
Canonical accounting resource type to create. Must be one of the values in the enum below. RouteMCP maps this to the equivalent provider-native object (e.g. invoice → QuickBooks Online Invoice/Bill, Xero Invoice, Zoho Books Invoice). Read-only resources — reports (balance_sheet, income_statement, cash_flow_statement), bank feeds, general_ledger_transaction, address, phone_number, and the generic transaction — cannot be created.
invoice, contact, account, payment, tax_rate, journal_entry, expense, purchase_order, sales_order, credit_note, vendor_credit, company_info, item, tracking_category, accounting_period, payment_method, payment_term, address, balance_sheet, bank_feed_account, bank_feed_transaction, cash_flow_statement, employee, expense_report, general_ledger_transaction, income_statement, item_fulfillment, phone_number, project, transaction Query Parameters
Provider slug identifying which connected provider to target (e.g. hubspot, pipedrive, zoho-crm, quickbooks-online, xero, zoho-books). Required — single-record operations always target a specific provider.
"hubspot"
Body
Accounting resource body. Pick an example from the dropdown to see the schema for each resource type. For attachment uploads, see the dedicated POST /accounting/attachment endpoint — it uses multipart and is documented separately.
- Invoice
- Contact
- Account
- Payment
- Tax Rate
- Journal Entry
- Expense
- Purchase Order
- Sales Order
- Credit Note
- Vendor Credit
- Company Info
- Item
- Tracking Category
- Accounting Period
- Payment Method
- Payment Term
- Employee
- Expense Report
- Item Fulfillment
- Project
AR invoice or AP bill (no separate Bill resource exists).
ACCOUNTS_RECEIVABLE, ACCOUNTS_PAYABLE "ACCOUNTS_RECEIVABLE"
UUID of the associated contact (customer for AR, vendor for AP).
"019d04a5-contact-uuid-here"
Provider-native document number (invoice number, PO number, expense number, etc.).
"INV-2026-0001"
Date the document was issued (ISO 8601 date).
"2026-05-01"
Date payment is due (ISO 8601 date).
"2026-05-31"
Date the document was paid in full (ISO 8601 date). null until paid.
"2026-05-25"
Free-text memo / private note. May not be visible to the counterparty depending on the provider.
"Net 30 — Q2 services"
UUID of the company this record belongs to (used by multi-entity providers).
"019d04a5-2012-7119-bc07-75c081250434"
UUID of the associated employee.
"019d04a5-employee-uuid"
ISO 4217 currency code (e.g. USD, EUR, GBP).
"USD"
Stringified decimal exchange rate from currency to the company's base currency. 1.0 when they match.
"1.0"
UUID of the associated payment term.
"019d04a5-term-uuid"
Total discount applied to the document, in currency.
0
Document subtotal before tax and discount, in currency.
1500
Lifecycle status. One of DRAFT, OPEN, SUBMITTED, PARTIALLY_PAID, PAID, VOID. Mapped to the closest provider-native value.
PAID, DRAFT, SUBMITTED, PARTIALLY_PAID, OPEN, VOID "OPEN"
Total tax amount on the document, in currency.
120
Document grand total (subtotal + tax − discount), in currency.
1620
Outstanding balance.
1620
UUIDs of tracking categories (classes / locations / departments) attached to this record.
UUID of the accounting period this record belongs to.
"019d04a5-period-uuid"
UUIDs of associated purchase orders.
UUIDs of associated sales orders.
Line items that make up the document.
true when total_amount (and unit_price on line items) already include tax. false when tax is added on top.
false
Provider-specific passthrough fields.
Response
Resource created successfully
Standard envelope returned by POST /accounting/{resource}. Contains the newly created record. The shape of data depends on the {resource} path parameter — see the tabs to switch between resource variants.
Always true for successful (2xx) responses.
true
HTTP status code mirrored inside the envelope. 201 for successful creation.
201
"Created"
Fields present on every accounting resource returned by RouteMCP.
- Invoice
- Contact
- Account
- Payment
- TaxRate
- JournalEntry
- Expense
- PurchaseOrder
- SalesOrder
- CreditNote
- VendorCredit
- CompanyInfo
- Item
- TrackingCategory
- Period
- PaymentMethod
- PaymentTerm
- Employee
- ExpenseReport
- ItemFulfillment
- Project