Features
DreamAPI Accounting for developers
- Universal Compatibility: Connect effortlessly with platforms like QuickBooks Online, Xero, Sage, Zoho Books, Odoo, and more.
- Unified Data Format: Use a single JSON format for bills and invoices across all supported platforms.
- Automated Setup: Automatically create charts of accounts, vendors, and customers as needed during integration.
- Currency Management: Handle multi-currency transactions seamlessly with built-in currency conversion.
- Tax Allocation: Allocate taxes accurately to individual line items without manual adjustments.
- Developer-Friendly: Achieve full integration with just one line of code.
- Intuitive Management: Manage all your connections easily through the DreamAPI portal.
CONNECTED BY dreamapi.io
Example JSON Payload
{ "tax": 5.4, "items": [ { "qty": 1, "tax": 5.4, "total": 92.99, "category": "Supplies", "currency": "CAD", "discount": 0, "unit_price": 92.99, "description": "SPR INT FL EXTRA", "is_tax_line": false } ], "total": 114.4, "vendor": { "trn": "2345678901", "name": "Sherwin-Williams", "phone": "(587) 625-0667", "address": "65 Shawville Blvd SE, Calgary, AB T2Y3W5", "country": "CA" }, "currency": "CAD", "customer": { "trn": "1234567890", "name": "Alexander", "phone": "", "address": "", "country": "CA" }, "discount": 0, "subtotal": 108.57, "invoice_no": "E007/21678", "attachments": [ { "mime_type": "image/jpeg", "media_file": "/tmp/bb1285aa-f8df-409e-8496-4a79331851b5.jpg.jpeg" } ], "delivery_fee": 0, "invoice_date": "2024-09-07", "invoice_summary": "Purchase of paint supplies including SPR INT FL EXTRA, sponges, and spackling." }
Example Node.js Code
import axios from 'axios'; async function callApi() { try { const response = await axios.post('https://your-api-url.com/endpoint', { "tax": 5.4, "items": ...}); console.log('Response:', response.data); } catch (error) { console.error('Error calling API:', error); } } callApi();