Apipagos v2
  1. Update
Apipagos v2
  • Apipagos Extras
    • Cbu Cvu Validation
      GET
    • Credit Card Bin Validations
      GET
  • Apipagos Core
    • Contracts
      • Create
        • Create new contracts.
        • Create new contract extras.
      • Get
        • Display a listing of contracts.
        • Get contract by code or Id.
        • Get contract extra by ID.
      • Update
        • Updates contracts.
        • Updates contract extras.
        • Update single contract
    • Documents
      • Create
        • Create new documents.
        • Create documents new payment instances.
        • Create documents new life cycles.
      • Get
        • Display the life cycle of the document.
        • Display a listing of documents.
        • Display the payment instances of the document.
        • Display the specified document.
      • Update
        • Update payment instances of documents.
        • Update cycle of documents.
        • Update documents.
        • Update Single Document
    • Refunds
      • Get
        • Display a listing of refunds.
        • Get refunds by code.
      • Create
        • Create new refunds.
      • Update
        • Update refunds.
        • Update single refund
    • Subscriptions
      • Create
        • Create new subscriptions.
      • Get
        • Display a listing of subscriptions.
        • Get a subscription by code.
      • Update
        • Update subscriptions.
        • Update Single Subscription
    • Transactions
      • Create
        • Create new transactions.
      • Get
        • Display a listing of transactions.
        • Get a transaction by code.
      • Update
        • Update transactions.
        • Update Single Transaction
    • Publications
      • Create
        • Create new publications
      • Get
        • Display a listing of publications.
        • Get publication by code.
    • Users
      • Create
        • Create new users.
        • Create new users fiscal data.
        • Create new users addresses.
        • Create new users identities.
        • Create new users payment methods.
      • Get
        • Display a listing of the users.
        • Get a user by code.
      • Update
        • Update users.
          PUT
        • Update Single User
          PATCH
    • Location
      • Get Countries
      • Get Country Provinces
      • Get Province Locations
    • Tenant info
      GET
    • AFIP
      GET
  1. Update

Update Single User

Developing
Testing Env
https://api.test.apipagos.com/api/v2/apipagos
Testing Env
https://api.test.apipagos.com/api/v2/apipagos
PATCH
/users/{code}

Request

Authorization
Add parameter in header
Company-Token
Example:
Company-Token: ********************
Path Params
code
string 
required
Example:
34bc25f139f2c86f4b88d464465b60b0
Body Params application/json
type
string 
optional
email
string 
optional
first_name
string 
optional
last_name
string 
optional
field_1
string 
optional
field_2
string 
optional
field_3
string 
optional
password
string 
optional
profile_photo_url
string 
optional
birthdate
string 
optional
birth_country
string 
optional
birth_country_id
integer 
optional
nationality
string 
optional
nationality_id
integer 
optional
gender
string 
optional
marital_status
string 
optional
status_code
string 
optional
fiscalData
object 
optional
condition
string 
optional
occupation
string 
optional
government_activity
string 
optional
government_status
string 
optional
category
string 
optional
subcategory
string 
optional
addresses
array [object {10}] 
optional
type
string 
optional
street
string 
optional
street_number
string 
optional
zip
string 
optional
country
string 
optional
state
string 
optional
locality
string 
optional
city
string 
optional
department_floor
string 
optional
department_number
string 
optional
contactInfo
array [object {5}] 
optional
contact_detail
string 
optional
default
boolean 
optional
is_valid
boolean 
optional
contact_type
string 
optional
contactc_subtype
string 
optional
identities
array [object {3}] 
optional
identification_type
string 
optional
identification_number
string 
optional
id_version
string 
optional
validations
array [object {5}] 
optional
validation_id
string 
optional
validation_type
string 
optional
log
string 
optional
status_code
string 
optional
expiry_date
string 
optional
extras
array [object {3}] 
optional
name
string 
optional
key_code
string 
optional
value
string 
optional
Example
{
  "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"
    }
  ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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"
    }
  ]
}'

Responses

🟢200Success
application/json
Body
data
object 
required
id
integer 
required
code
string 
required
correlation_id
integer 
required
company_id
integer 
required
process_id
integer 
required
type
string 
required
email
string 
required
first_name
string 
required
last_name
string 
required
company_name
string 
required
field_1
string 
required
field_2
string 
required
field_3
string 
required
profile_photo_url
string 
required
birthdate
string 
required
birth_country
string 
required
birth_country_id
integer 
required
nationality
string 
required
nationality_id
integer 
required
gender
string 
required
marital_status
string 
required
status_code
integer 
required
integrity_code
string 
required
auditor
string 
required
deleted_at
string 
required
updated_at
string 
required
created_at
string 
required
email_verified_at
string 
required
addresses
array [object {17}] 
required
identities
array [object {12}] 
required
contact_info
array [object {10}] 
required
payment_methods
array [object {21}] 
required
accounts
array[string]
required
fiscal_data
object 
required
validations
array[string]
required
extras
array[string]
required
status
object 
required
relations
array[string]
required
compliance_extra
array[string]
required
represented_companies
array[string]
required
metadata
object 
required
message
string 
required
Example
{
  "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!"
  }
}
🔴500Server Error Response
Previous
Update users.
Next
Get Countries
Built with