Skip to content

Bulk-import parties from a CSV file

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

Async-only. Returns 202 with a job_id; poll GET /api/public/v1/jobs/{id} for status. Required CSV columns: legal_name, party_type (the same template the internal /api/v1/parties-bulk/import endpoint uses). The internal CSV pipeline does not yet read an external_id column for parties — see the integration guide for matching rules.

Media type multipart/form-data
Body_import_parties_csv_api_public_v1_imports_parties_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"
}
]
}