Ir al contenido
UnoPagoDocumentación
Referencia de la APICustomer dataImports

Preview a people import

POST
/v1/imports/people/preview

Resolves customers and students against the account without writing, and returns what the import would create and what it would leave out.

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.

application/json
  1. body
customers?array<>
Elementositems <= 1000
Por defecto[]
students?array<>
Elementositems <= 1000
Por defecto[]

Cuerpo de la respuesta

Successful response

application/json
  1. response
customers*
students*
warnings*array<|>
Ejemplo de solicitud
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"    }  ]}