Preview a people import
POST
Resolves customers and students against the account without writing, and returns what the import would create and what it would leave out.
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
application/json- body
customers?array<>Elementos
items <= 1000Por defecto
[]students?array<>Elementos
items <= 1000Por defecto
[]Successful response
application/json- response
customers*students*warnings*array<|>curl -X POST 'https://api.unopago.com/v1/imports/people/preview' \ -H 'Content-Type: application/json' \ -d '{}'Ejemplo de respuesta
{ "customers": { "create": [ { "row": 1 } ], "skipped": [ { "row": 1, "reason": "string", "detail": "string" } ] }, "students": { "create": [ { "row": 1, "sectionId": "string", "representative": { "kind": "id", "id": "string" } } ], "skipped": [ { "row": 1, "reason": "string", "detail": "string" } ] }, "warnings": [ { "kind": "letter_only_collision", "source": "customers", "row": 1, "nationalId": "string" } ]}
