¡Bienvenido(a) a Passport!
Endpoints
Gestionar Tokens
Gestionar Clientes
GESTIONAR CUENTAS
GESTIONAR LLAVES Bre-B
GESTIONAR DESTINATARIOS
GESTIONAR PAGOS
Códigos QR
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Actualizar Cliente
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Visión General
Este endpoint permite realizar actualizaciones en el registro de un cliente.
Detalles del Endpoint
| Parámetro | Descripción |
|---|---|
| Endpoint | https://api.paas.sandbox.co.passportfintech.com/v1/customers/:customer_id |
| Método | PATCH |
| Encabezados | Content-Type: application/json, Authorization |
| Autenticación | Token de Acceso (Bearer Token) |
Cuerpo de la Solicitud
| Parámetro | Tipo | Descripción |
|---|---|---|
| id | String | Identificador único del objeto cliente. |
| business_name | String | Nombre legal registrado del cliente. |
| String | Correo electrónico de contacto del cliente. | |
| mobile_phone_number | String | Número de teléfono móvil del cliente. |
| identification_number | String | El número de identificación único del cliente, sin dígito de verificación. |
| merchant_category_code | String | El número de identificación único del cliente, sin dígito de verificación. |
El parámetro de identificación (id) es un campo que no se puede modificar.
Ejemplo de Solicitud
JSON
9
1
curl --location --request PATCH 'https://api.paas.demo.co.passportfintech.com/v1/customers/db7e89e7-59d8-4ab1-b675-a2ae52c3339e' \2
--header 'Content-Type: application/json' \3
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \4
--data-raw '{5
"id": "db7e89e7-59d8-4ab1-b675-a2ae52c3339e",6
"business_name": "changing",7
"email": "eAqpUh6u@example.com",8
"mobile_phone_number": "573956158117"9
}'Cuerpo de la Respuesta
- Código HTTP: 200 OK
Ejemplo de Respuesta
JSON
22
22
1
{2
"business_name": "changing",3
"type": "BUSINESS",4
"created_at": "2025-10-09T10:40:27.446Z",5
"updated_at": "2025-10-09T17:19:27.951Z",6
"email": "eAqpUh6u@example.com",7
"identification_type": "NIT",8
"identification_number": "903978023",9
"status": "ACTIVE",10
"merchant_category_code": "0412",11
"mobile_phone_number": "573956158117",12
"address": {13
"state": "Bolivar",14
"line_1": "Diagonal 46 1104",15
"line_3": "Calle 20 675",16
"city": "Cartagena",17
"post_code": "101010",18
"line_2": "Carrera 18 2111",19
"country": "CO"20
},21
"id": "db7e89e7-59d8-4ab1-b675-a2ae52c3339e"22
}Errores Comunes y Manejo
| Código HTTP | Significado | Descripción |
|---|---|---|
| 400 | Bad Request | Validación fallida (por ejemplo, campo faltante o inválido). |
| 401 | Unauthorized | Token Bearer ausente o inválido. |
| 403 | Forbidden | Alcance insuficiente o permisos de acceso insuficientes. |
| 404 | Not Found | El cliente con el ID proporcionado no existe. |
Buenas Prácticas
- Refresca los tokens OAuth antes de que expiren para evitar fallas de autenticación.
- Asegúrate de que el
customer_idsea correcto antes de enviar la actualización. - Valida los datos de entrada (correo electrónico, número de teléfono) antes de enviar la petición.
- Registra cambios en clientes críticos para trazabilidad y auditoría.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Última actualización el
Siguiente lectura:
Consultar ClienteDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message