Sortpay API Documentation

Programmatic access to invoice data extraction. Process invoices at scale with our REST API.

Quick Start

1. Get API Key

Sign up for Developer (credits) to get your API credentials and start making requests.

2. Upload Invoice

Use our upload endpoint to send PDF or image files for processing.

3. Get Results

Retrieve extracted data including vendor info, amounts, line items, and more.

Authentication

All API requests require authentication using API keys. Include your API key in the Authorization header:

curl -H "Authorization: Bearer YOUR_API_KEY" \
     https://api.sortpay.io/v1/invoices

Example: Upload Invoice

Request
curl -X POST https://api.sortpay.io/v1/invoices/upload \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: multipart/form-data" \ -F "file=@invoice.pdf"
Response
{ "id": "inv_abc123", "status": "processing", "fileName": "invoice.pdf", "uploadedAt": "2024-01-15T10:30:00Z" }

Example: Extracted Data

GET /v1/invoices/inv_abc123
{ "id": "inv_abc123", "status": "completed", "extractedData": { "vendorName": "Acme Corporation", "invoiceNumber": "INV-2024-001", "invoiceDate": "2024-01-15", "totalAmount": 156750, "currency": "USD", "lineItems": [ { "description": "Professional Services", "quantity": 10, "unitPrice": 15000, "amount": 150000 } ] } }

API Features

RESTful Design

Clean, predictable REST API with standard HTTP methods and status codes.

Secure & Reliable

Enterprise-grade security with rate limiting, authentication, and 99.9% uptime SLA.

Multiple Formats

Support for PDF, PNG, JPEG files. Export data as JSON or CSV.

Fast Processing

AI-powered extraction with results typically available in under 30 seconds.

Rate Limits

Developer (Credits)
Requests per minute: 60
Invoices: Credits-based

Billing & Credits

  • Developer uses pre‑purchased credits via one‑off Stripe payments. You can enable optional auto top‑up with a low balance threshold and preset amount.

Ready to get started?

Join hundreds of developers using Sortpay API to automate invoice processing.

Sortpay - Zero Manual Data Entry