> ## Documentation Index
> Fetch the complete documentation index at: https://docs-mx.taxo.ws/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started with Taxo API

> Universal guide to integrating with Taxo's multi-country tax document extraction API

## Welcome to Taxo API

Taxo API provides enterprise-grade automation for tax document extraction across multiple countries and tax authorities. Our unified API interface allows you to integrate once and expand to new jurisdictions seamlessly.

## How It Works

**1. Get API Credentials**

Obtain your API key and configure authentication

**2. Prepare Tax Credentials**

Gather the necessary credentials for your target tax authority

**3. Configure Extraction**

Set up document extraction with appropriate filters and parameters

**4. Monitor & Download**

Track job progress and download completed documents

## Supported Countries

> [card] [Mexico (SAT)](https://docs-mx.taxo.ws/countries/mx/overview.md)
>
> Extract CFDI invoices, tax status certificates, and retention documents from SAT

> [card] More Countries
>
> **Request** - Contact us for additional country support

## Universal API Concepts

### Job-Based Processing

All document extractions use asynchronous job processing:

> [accordion] Job Lifecycle
>
> 1. **Create Job**: Submit extraction request with credentials and filters
> 2. **Processing**: System validates credentials and extracts documents
> 3. **Completion**: Job finishes with success or failure status
> 4. **Download**: Retrieve individual documents using job results

> [accordion] Job Tracking
>
> Every job gets a unique `publicId` for tracking:
>
> ```json theme={null}
> {
>   "publicId": "JOB20250104123456789A",
>   "status": "PROCESSING",
>   "progress": {
>     "discoveryCount": 1500,
>     "completedCount": 750,
>     "percentage": 50
>   }
> }
> ```

### Universal Status Codes

| Status | Description | Next Action |
| - | - | - |
| `PENDING` | Job queued for processing | Wait or check status periodically |
| `PROCESSING` | Actively extracting documents | Monitor progress |
| `COMPLETED` | All documents extracted successfully | Download documents |
| `FAILED` | Job failed due to error | Check error details and retry |

### Common Error Patterns

> [accordion] Authentication Errors
>
> * **Invalid API Key**: Check your API key configuration
> * **Expired Credentials**: Renew tax authority credentials
> * **Permission Denied**: Verify account permissions for the requested operation

> [accordion] Request Errors
>
> * **Invalid Parameters**: Check request format and required fields
> * **Date Range Too Large**: Reduce the time period for extraction
> * **Unsupported Document Type**: Verify document type is available for the country

> [accordion] System Errors
>
> * **Rate Limit Exceeded**: Implement backoff strategy
> * **Service Unavailable**: Tax authority system maintenance
> * **Timeout**: Large extractions may need more time

## Integration Architecture

### Recommended Flow

```mermaid theme={null}
graph TD
    A[Choose Country] --> B[Get API Key]
    B --> C[Prepare Tax Credentials]
    C --> D[Create Extraction Job]
    D --> E[Monitor Progress]
    E --> F{Job Complete?}
    F -->|No| E
    F -->|Yes| G[Download Documents]
    G --> H[Process Documents]
```

### Security Best Practices

> [!TIP]
>
> Store API keys in environment variables or secure vaults

> [!TIP]
>
> Encrypt tax authority credentials at rest

> [!TIP]
>
> Use HTTPS for all API communications

> [!TIP]
>
> Implement proper error handling without exposing credentials

> [!TIP]
>
> Set up webhook endpoints with signature verification

> [!TIP]
>
> Follow rate limiting guidelines to avoid service interruption

## Next Steps

> [card] Choose Your Country
>
> Start with Mexico, our most mature integration
>
> [Mexico SAT Guide →](https://docs-mx.taxo.ws/countries/mx/overview.md)

> [card] Integration Best Practices
>
> Learn production-ready patterns and security practices
>
> [Best Practices →](https://docs-mx.taxo.ws/global/integration-guides/best-practices.md)

> [card] Get API Key
>
> Contact our team to get started with API access
>
> [Contact Sales →](mailto:sales@taxo.co)

> [card] Troubleshooting
>
> Common issues and solutions across all countries
>
> [Troubleshooting →](https://docs-mx.taxo.ws/global/troubleshooting/common-errors.md)

## Support

> [card]
>
> **Need Help Getting Started?**
>
> * **General Support**: [support@taxo.co](mailto:support@taxo.co)
> * **Sales Inquiries**: [sales@taxo.co](mailto:sales@taxo.co)
> * **API Status**: [status.taxo.co](https://status.taxo.co)
> * **Documentation Feedback**: We're always improving our docs

***

> [!NOTE]
>
> This documentation follows our country-first architecture. Each country has its own section with specific implementation details, while global concepts apply across all integrations.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.