# Welcome to the DualEntry Public API

Build powerful accounting integrations with programmatic access to your organization's financial data. The DualEntry Public API is a RESTful API that enables you to automate accounting workflows, sync data with external systems, and create custom financial applications.

## Quick Start

Get up and running in minutes:

1. **Get your API key** - Ask your DualEntry administrator to generate an API key for you
2. **Make your first request** - Include your API key in the `X-API-KEY` header
3. **Start building** - Explore our endpoints and integrate with your systems


cURL

```bash
curl https://api.dualentry.com/public/v1/invoices \
  -H "X-API-KEY: your_api_key_here" \
  -H "Content-Type: application/json"
```

Python

```python
import requests

headers = {
    "X-API-KEY": "your_api_key_here",
    "Content-Type": "application/json"
}

response = requests.get("https://api.dualentry.com/public/v1/invoices", headers=headers)
print(response.json())
```

JavaScript

```javascript
fetch('https://api.dualentry.com/public/v1/invoices', {
  headers: {
    'X-API-KEY': 'your_api_key_here',
    'Content-Type': 'application/json'
  }
})
.then(response => response.json())
.then(data => console.log(data));
```

## Core Concepts

🔐 Authentication
Secure your API requests using API keys. Learn how to authenticate and manage your credentials.

⚡ Rate Limiting
Understand rate limits and throttling to ensure reliable API access and optimal performance.

📄 Pagination
Efficiently navigate through large datasets using cursor-based or offset pagination.

⚠️ Errors
Handle errors gracefully with standard HTTP status codes and detailed error messages.

## What You Can Do

**Financial Transactions**
Create and manage invoices, bills, payments, journal entries, and purchase orders.

**Customer & Vendor Management**
Maintain customer and vendor records with complete contact and payment term information.

**Chart of Accounts**
Configure and manage your accounting structure with accounts, items, and classifications.

**Automation**
Set up recurring transactions for subscriptions, rent, and other regular financial activities.

## API Reference

**[View API Reference](/resources-v2)** — Browse all available endpoints, request/response schemas, and detailed parameter descriptions.

Looking for the previous API version? [View V1 Documentation](/resources-v1)

## Need Help?

- **[Introduction](/introduction)** - Overview of the API and its capabilities
- **[API Reference](/resources-v2)** - Complete endpoint documentation
- **Support** - Contact your DualEntry administrator for assistance


## Base URLs

| Environment | URL |
|  --- | --- |
| **Production** | `https://api.dualentry.com` |
| **Development** | `https://api-dev.dualentry.com` |


All API requests use HTTPS. The API accepts and returns JSON-formatted data.