/customers/export - Export customers to CSV or PDF
Export customers to CSV or PDF format with applied filters (max 10,000 customers)
GET
/customers/export
curl \
--request GET 'https://api.your-domain.com/api/customers/export?format=csv' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (400)
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "username",
"message": "required",
"value": "string"
}
]
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}