v1

latestOpenAPI 3.1.02026-07-24233206489.1 KB
Invoice Imports

Confirm creation of a validated import

Enqueues the async create job for a ready batch and returns 202 with the batch now creating. send_mode defaults to draft; create_and_send also sends each created invoice. 409 when the batch is not ready.

post/v1/invoices/imports/{id}/create

Path parameters

idstring required

Import batch ID

Request body

send_mode'draft' | 'create_and_send'

Example request

{
  "send_mode": "draft"
}

Response

Accepted

has_moreboolean

Example response

{
  "data": {
    "created_at": "2026-07-08 08:00:00+00:00",
    "created_by": "org_abc123",
    "error_rows": 12,
    "id": "imp_abc123",
    "organization_id": "org_abc123",
    "ready_rows": 248,
    "source_filename": "july-invoices.csv",
    "total_rows": 260,
    "updated_at": "2026-07-08 08:05:00+00:00"
  }
}