Company-Token: ********************
{
"type": "j",
"email": "[email protected]",
"first_name": "Juan",
"last_name": "Pérez",
"field_1": "valor campo 1",
"field_2": "valor campo 2",
"field_3": "valor campo 3",
"password": "secreto123",
"profile_photo_url": "https://example.com/photo.jpg",
"birthdate": "1990-05-15",
"birth_country": "Argentina",
"birth_country_id": 1,
"nationality": "Argentina",
"nationality_id": 1,
"gender": "Male",
"marital_status": "Single",
"status_code": "1",
"fiscalData": {
"condition": "IVA Responsable Inscripto",
"occupation": "Software Developer",
"government_activity": "No",
"government_status": "No",
"category": "Monotributista",
"subcategory": "Social"
},
"addresses": [
{
"type": "real",
"street": "Av. Siempre Viva",
"street_number": "742",
"zip": "1406",
"country": "Argentina",
"state": "Buenos Aires",
"locality": "Villa del Parque",
"city": "Buenos Aires",
"department_floor": "3",
"department_number": "B"
},
{
"type": "legal",
"street": "Calle Falsa",
"street_number": "123",
"zip": "1000",
"country": "Argentina",
"state": "CABA",
"locality": "Balvanera",
"city": "Buenos Aires"
}
],
"contactInfo": [
{
"contact_detail": "123456789",
"default": true,
"is_valid": true,
"contact_type": "phone",
"contactc_subtype": "phone_cellphone"
},
{
"contact_detail": "[email protected]",
"default": false,
"is_valid": true,
"contact_type": "email",
"contactc_subtype": "email_personal"
}
],
"identities": [
{
"identification_type": "DNI",
"identification_number": "12345678",
"id_version": "1"
}
],
"validations": [
{
"validation_id": "1",
"validation_type": "email_verification",
"log": "Email verified",
"status_code": "1",
"expiry_date": "2025-12-31"
}
],
"extras": [
{
"name": "promo_code",
"key_code": "PROMO123",
"value": "10% descuento"
}
]
}
curl --location --request PATCH 'https://api.test.apipagos.com/api/v2/apipagos/users/34bc25f139f2c86f4b88d464465b60b0' \
--header 'Content-Type: application/json' \
--header 'Company-Token;' \
--data-raw '{
"type": "j",
"email": "[email protected]",
"first_name": "Juan",
"last_name": "Pérez",
"field_1": "valor campo 1",
"field_2": "valor campo 2",
"field_3": "valor campo 3",
"password": "secreto123",
"profile_photo_url": "https://example.com/photo.jpg",
"birthdate": "1990-05-15",
"birth_country": "Argentina",
"birth_country_id": 1,
"nationality": "Argentina",
"nationality_id": 1,
"gender": "Male",
"marital_status": "Single",
"status_code": "1",
"fiscalData": {
"condition": "IVA Responsable Inscripto",
"occupation": "Software Developer",
"government_activity": "No",
"government_status": "No",
"category": "Monotributista",
"subcategory": "Social"
},
"addresses": [
{
"type": "real",
"street": "Av. Siempre Viva",
"street_number": "742",
"zip": "1406",
"country": "Argentina",
"state": "Buenos Aires",
"locality": "Villa del Parque",
"city": "Buenos Aires",
"department_floor": "3",
"department_number": "B"
},
{
"type": "legal",
"street": "Calle Falsa",
"street_number": "123",
"zip": "1000",
"country": "Argentina",
"state": "CABA",
"locality": "Balvanera",
"city": "Buenos Aires"
}
],
"contactInfo": [
{
"contact_detail": "123456789",
"default": true,
"is_valid": true,
"contact_type": "phone",
"contactc_subtype": "phone_cellphone"
},
{
"contact_detail": "[email protected]",
"default": false,
"is_valid": true,
"contact_type": "email",
"contactc_subtype": "email_personal"
}
],
"identities": [
{
"identification_type": "DNI",
"identification_number": "12345678",
"id_version": "1"
}
],
"validations": [
{
"validation_id": "1",
"validation_type": "email_verification",
"log": "Email verified",
"status_code": "1",
"expiry_date": "2025-12-31"
}
],
"extras": [
{
"name": "promo_code",
"key_code": "PROMO123",
"value": "10% descuento"
}
]
}'
{
"data": {
"id": 1,
"code": "34bc25f139f2c86f4b88d464465b60b0",
"correlation_id": null,
"company_id": 3,
"process_id": null,
"type": "f",
"email": "[email protected]",
"first_name": "ESTIBAJES SUARMO",
"last_name": "ESTIBAJES SUARMO",
"company_name": null,
"field_1": "005976",
"field_2": "0001",
"field_3": "30715324594",
"profile_photo_url": null,
"birthdate": "2023-10-05",
"birth_country": null,
"birth_country_id": null,
"nationality": null,
"nationality_id": null,
"gender": "Male",
"marital_status": "Single",
"status_code": 1,
"integrity_code": null,
"auditor": "apoderado",
"deleted_at": null,
"updated_at": "2024-12-27T18:24:06.000000Z",
"created_at": "2023-10-05T14:38:38.000000Z",
"email_verified_at": null,
"addresses": [
{
"id": 147,
"user_id": 1,
"street": "basualdo",
"street_number": "77",
"department_number": "45",
"department_floor": "77",
"city": "Córdoba",
"state": "Corrientes",
"zip": "1888",
"type": "real",
"country_id": 1,
"province_id": 14,
"locality_id": 1641,
"deleted_at": null,
"updated_at": "2024-07-18T15:45:17.000000Z",
"created_at": "2024-07-18T15:45:17.000000Z",
"country": "Argentina"
}
],
"identities": [
{
"id": 308770,
"user_id": 1,
"identification_type_id": 1,
"id_version": "A",
"identification_number": "27426386106",
"country_id": 14,
"issue_date": null,
"expiration_date": null,
"deleted_at": null,
"updated_at": "2024-05-27T17:43:53.000000Z",
"created_at": "2024-05-27T17:43:53.000000Z",
"type": {
"id": 1,
"name": "CUIT",
"code": "cuit",
"deleted_at": null,
"updated_at": "2023-12-13T13:47:59.000000Z",
"created_at": "2023-09-25T17:52:23.000000Z"
}
},
{
"id": 308771,
"user_id": 1,
"identification_type_id": 2,
"id_version": "A",
"identification_number": "42638610",
"country_id": 14,
"issue_date": null,
"expiration_date": null,
"deleted_at": null,
"updated_at": "2024-05-29T13:03:43.000000Z",
"created_at": "2024-05-29T13:03:43.000000Z",
"type": {
"id": 2,
"name": "DNI",
"code": "DNI",
"deleted_at": null,
"updated_at": "2023-10-19T00:17:33.000000Z",
"created_at": "2023-10-19T00:17:33.000000Z"
}
},
{
"id": 308807,
"user_id": 1,
"identification_type_id": 4,
"id_version": "83",
"identification_number": "43046986",
"country_id": 1,
"issue_date": "1990-04-15",
"expiration_date": "2025-04-15",
"deleted_at": null,
"updated_at": "2024-07-18T15:59:37.000000Z",
"created_at": "2024-07-18T15:59:37.000000Z",
"type": {
"id": 4,
"name": "DNI",
"code": "dni",
"deleted_at": null,
"updated_at": "2023-11-30T18:46:34.000000Z",
"created_at": "2023-11-30T18:46:34.000000Z"
}
}
],
"contact_info": [
{
"id": 481,
"user_id": 1,
"contact_type": "phone",
"contact_subtype": "phone_cellphone",
"contact_detail": "+543873007242",
"default": 1,
"is_valid": 1,
"deleted_at": null,
"updated_at": "2024-07-17T12:39:28.000000Z",
"created_at": "2024-07-17T12:39:28.000000Z"
}
],
"payment_methods": [
{
"id": 106,
"entity_id": 188,
"entity_code": "00072",
"code": "ee3883a8338d2b9918d299642e71e8a9",
"company_id": 3,
"user_id": 1,
"holder": null,
"field_1": null,
"method": "CBU",
"gateway_code": null,
"gateway_type": "DEB",
"number": "eyJpdiI6IlJhWWpUNkRvOEFrNVFZekZza2NCWnc9PSIsInZhbHVlIjoiSUxJUzcwcmdBNGh3MXZRTTZOSkl5aVU0cXpydndvUlJYV0hsbzZCM2RlQT0iLCJtYWMiOiI5MDExYThkNzE3Y2M2ZjBmYjQ5YjdmZjg1NWZkZmE4MDZkMDhmODZlMDdhZmI4YzBkZTdkZDIxZTQ4NjU5NzI3IiwidGFnIjoiIn0=",
"hashed_number": null,
"visible_data": "0720**************3704",
"bin": null,
"due_date": null,
"name": null,
"csv": null,
"created_at": "2024-05-02T20:44:05.000000Z",
"updated_at": "2024-05-02T20:44:05.000000Z",
"deleted_at": null
},
{
"id": 117,
"entity_id": 176,
"entity_code": "00011",
"code": "8a5986b434e24a4b23793cac98129e7a",
"company_id": 3,
"user_id": 1,
"holder": null,
"field_1": null,
"method": "CBU",
"gateway_code": null,
"gateway_type": "DEB",
"number": "eyJpdiI6IjV3Q0M3VVlnRkY5bXNiTGM2cEZBMVE9PSIsInZhbHVlIjoiV2RrVk85bExCZGpmU0ZxZjVoUUhQVkRGQjNkTkxJWlczcTBOa2tITkE1Yz0iLCJtYWMiOiI3NmNiMGZiOWJkZmZiNzM5NTY3OWFiYTgxNjNhNjg0MTA1ZGNiYTllZDQ0YjFjY2U3Y2QzZmFhZTExNDViZTNhIiwidGFnIjoiIn0=",
"hashed_number": null,
"visible_data": "0110**************4733",
"bin": null,
"due_date": null,
"name": null,
"csv": null,
"created_at": "2024-05-29T13:43:21.000000Z",
"updated_at": "2024-05-29T13:43:21.000000Z",
"deleted_at": null
}
],
"accounts": [],
"fiscal_data": {
"id": 56,
"user_id": 1,
"condition": "No Categorizado",
"occupation": "veniam",
"government_activity": "AGRICULTURA, GANADERÍA, CAZA, SILVICULTURA Y PESCA",
"government_activity_id": 1,
"government_status": "Inactivo",
"category": "EMPLEADOS Y OTROS",
"category_id": 11,
"subcategory": "Ex agente de la Administración Pública",
"subcategory_id": 23,
"created_at": "2024-07-18T15:15:27.000000Z",
"updated_at": "2024-07-18T15:15:27.000000Z",
"deleted_at": null
},
"validations": [],
"extras": [],
"status": {
"id": 32,
"model_type": "users",
"action": "none",
"label": "Inactivo",
"description": "Usuario inactivo",
"help_id": null,
"code": 0,
"deleted_at": null,
"created_at": "2023-09-22T20:06:17.000000Z",
"updated_at": "2023-09-22T20:06:17.000000Z"
},
"relations": [],
"compliance_extra": [],
"represented_companies": []
},
"metadata": {
"message": "User updated succesfully!"
}
}