Skip to content

Bulk-import invoices from a CSV file

POST
/api/public/v1/imports/invoices
Code sample: cURL
curl --request POST \
--url 'https://api.getzutax.com/api/public/v1/imports/invoices' \
--header 'Authorization: Bearer <token>'

Async-only. Required CSV columns: irn_group_key, issue_date, line_number, item_name, quantity, unit_price. Each unique irn_group_key becomes one invoice; multiple line rows share the same group key. See /api/v1/invoices-bulk/template for the full template.

Media type multipart/form-data
Body_import_invoices_csv_api_public_v1_imports_invoices_post
object
file
required
File
string format: binary

Successful Response

Media type application/json
JobAcceptedResponse

202 response body returned when an ERP POSTs ?async=true.

object
job_id
required
Job Id
string format: uuid
status
required
Status
string
Allowed values: queued running succeeded failed
result_url
required
Result Url
string
Examples
Example Sample response

202 response example

{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "queued",
"result_url": "string"
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examples
Example Sample response

422 response example

{
"detail": [
{
"loc": [],
"msg": "string",
"type": "string"
}
]
}