Skip to main content
Invoice Creation API

Authentication

All requests require an API key in the request headers. Headers:

Request

Content-Type: multipart/form-data

Body Parameters

File Requirements

  • Maximum file size: 50 MB
  • Supported formats: PDF (application/pdf), JPEG (image/jpeg), JPG (image/jpg), PNG (image/png)
  • The file should contain a readable invoice document

Code Examples

Success Response

HTTP Status: 200 OK Response Fields:

Response Example

Status Values

  • PROCESSING: The invoice is currently being processed and parsed
  • QUEUED: The invoice has been queued for processing
After successful upload, the invoice will be processed asynchronously. Use the returned id to check the invoice status and retrieve details once processing is complete.

Error Responses

Missing File

HTTP Status: 400 Bad Request

Invalid File Type

HTTP Status: 400 Bad Request

File Too Large

HTTP Status: 413 Payload Too Large (or 400 Bad Request)

Authentication Errors

HTTP Status: 401 Unauthorized

Permission Errors

HTTP Status: 403 Forbidden

Processing Errors

HTTP Status: 500 Internal Server Error

Best Practices

File Uploads

  • Verify file size before upload (max 50 MB)
  • Ensure file format is supported (PDF, JPEG, JPG, PNG)
  • Use appropriate MIME types when setting Content-Type headers
  • Handle upload errors gracefully with retry logic

Invoice Processing

  • Store the returned id for future reference
  • Poll the invoice status using the invoice detail endpoint
  • Wait for isReady to become true before using the invoice data
  • The status field will indicate if the invoice is still being processed