Update a customer
PUT
This API is used to update a customer
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
customerId*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidapplication/json- body
Input for updating a customer
externalId?string|nullfirstName*stringLongitud
1 <= length <= 50lastName*stringLongitud
length <= 50email?|nullphoneNumber?|nulladdress?|nullnationalId?|nullsyncActive?booleanSuccessful response
application/json- response
id*stringPatrón
^[cC][0-9a-z]{6,}$Formato
cuidaccountId*stringexternalId*string|nullmainContactId*string|nullnationalId*string|nullfirstName*stringlastName*stringemail*string|nullphoneNumber*string|nulladdress*string|nullcreatedAt*stringupdatedAt*stringfoundContact?payerLinkPending*booleanTrue when the customer's phone belongs to a payer who was not linked automatically: the account is not verified yet, or the payer already belongs to another account and has to accept an invite. An unverified account's payer is linked once it is verified; until then they are only invited if createContactInvite was set.
curl -X PUT 'https://api.unopago.com/v1/customers/string' \ -H 'Content-Type: application/json' \ -d '{ "firstName": "string", "lastName": "string"}'Ejemplo de respuesta
{ "id": "string", "accountId": "string", "externalId": "string", "mainContactId": "string", "nationalId": "string", "firstName": "string", "lastName": "string", "email": "string", "phoneNumber": "string", "address": "string", "createdAt": "string", "updatedAt": "string", "foundContact": { "gender": "MALE", "id": "string", "externalId": "string", "email": "string", "phoneNumber": "string", "emailVerified": "string", "phoneVerified": "string", "firstStepsStartedAt": "string", "firstName": "string", "lastName": "string", "nationalId": "string", "dateOfBirth": "string", "nationality": "string", "address": "string", "createdAt": "string", "updatedAt": "string" }, "payerLinkPending": true}
