Esta API permite la integración con el sistema Conecta Carga, ofreciendo acceso a funcionalidades clave como la gestión de DO, autenticación de usuarios y consulta de clientes.
Bienvenido a la documentación de la API de Conecta Carga. Esta API está diseñada para proporcionar una forma sencilla y segura de interactuar con nuestro sistema. Por favor, revise la documentación a continuación para obtener más información sobre cómo utilizar nuestra API.
This API is not authenticated.
Autentica a un usuario y devuelve un token de acceso.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/auth/login';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'json' => [
'username' => 'admin',
'password' => 'password',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"token": "122|c72GRNHR2pLHqNsKlWHWHjpnqm3GNdsfcb3ZYkyh9e59491d",
"user": {
"id": 1,
"document_number": "1234098",
"name": "Juan Perez",
"username": "USERNAME",
"email": "user@email.com",
"phone": "3005000101",
"position": "GERENCIA",
"role_id": "1",
"role_name": "Administrador",
"is_active": true,
"is_admin": true,
"is_operational": true,
"is_pricing": true,
"is_sales_person": true,
"whatsapp_status": false,
"created_at": "2025-04-07T14:38:19.000000Z",
"updated_at": "2025-04-24T09:13:08.000000Z"
}
}
Obtiene los datos del usuario autenticado, incluyendo su rol y permisos.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/auth/profile';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"user": {
"id": 1,
"document_number": "1234098",
"name": "Juan Perez",
"username": "USERNAME",
"email": "user@email.com",
"phone": "3005000101",
"position": "GERENCIA",
"role_id": "1",
"role_name": "Administrador",
"is_active": true,
"is_admin": true,
"is_operational": true,
"is_pricing": true,
"is_sales_person": true,
"whatsapp_status": false,
"created_at": "2025-04-07T14:38:19.000000Z",
"updated_at": "2025-04-24T09:13:08.000000Z"
},
"role": {
"id": 1,
"nombre": "Administrador",
"descripcion": "Administrador",
"maquina": "172.31.11.85",
"usuario": "MAIKOLCASTANO",
"permissions": []
}
}
Obtiene la lista de permisos para el usuario autenticado.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/auth/permissions';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); Invalida el token de acceso actual del usuario.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/auth/logout';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"message": "Logged out successfully"
}
Obtiene una lista paginada de clientes. Puedes filtrar los resultados usando los parámetros de consulta disponibles.
un array de códigos de estado para filtrar.
un array de códigos de estado de información para filtrar.
un array de tipos de cliente para filtrar.
un array de categorías para filtrar.
un array de orígenes para filtrar.
un array de IDs de asesores para filtrar.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/clients';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'query' => [
'filters[statuses][0]' => 'ACTIVO',
'filters[statuses_info][0]' => 'VERIFICADO',
'filters[client_type][0]' => 'RATIFICADO',
'filters[category][0]' => 'A',
'filters[origin][0]' => 'F',
'filters[advisor][0]' => '7',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"data": [
{
"id": 1,
"document_type": "CC",
"document_number": "12345678",
"external_id": "EXT-001",
"name": "John Doe",
"client_type": "IMPORTADOR",
"advisor": {
"id": 1,
"name": "Jane Smith"
},
"username": "JohnDoe",
"status": "ACTIVO",
"status_info": "VERIFICADO",
"status_lead": "CALIFICADO",
"category": {
"id": "A"
},
"origin": "WEB",
"load": "FCL",
"has_portal_access": true,
"verification_date": "2024-01-15",
"observations": "Client notes",
"user": {
"id": 1
},
"created_at": "2024-01-01 10:00:00",
"updated_at": "2024-01-15 14:30:00"
}
],
"links": {
"first": "http://yourdomain.com/api/clients?page=1",
"last": "http://yourdomain.com/api/clients?page=2",
"prev": null,
"next": "http://yourdomain.com/api/clients?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"links": [],
"path": "http://demo.csyp.com/api/clients",
"per_page": 10,
"to": 10,
"total": 20
}
}
Crea un nuevo registro de cliente.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/clients';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'json' => [
'document_type_id' => 'architecto',
'document_number' => 'architecto',
'generated_document_number' => false,
'external_id' => 'architecto',
'name' => 'architecto',
'client_type' => 'architecto',
'status' => 'architecto',
'status_info' => 'architecto',
'advisor_id' => 16,
'category_id' => 'architecto',
'origin' => 'architecto',
'notes' => 'architecto',
'verification_date' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"client": {
"id": 1,
"document_type": "01",
"document_number": "123456789",
"external_id": "EXT-001",
"name": "John Doe",
"client_type": "customer",
"advisor": {
"id": 1,
"name": "Jane Smith"
},
"username": "JohnDoe",
"status": "A",
"status_info": "posible",
"status_lead": "qualified",
"category": {
"id": "A"
},
"origin": "web",
"load": 5,
"has_portal_access": true,
"verification_date": "2025-06-26",
"observations": "This is a note.",
"user": {
"id": 1
},
"created_at": "2025-06-26T10:00:00.000000Z",
"updated_at": "2025-06-26T10:00:00.000000Z"
},
"message": "Datos registrados"
}
Endpoint que permite consultar un cliente registrado en la aplicación.
The ID of the client.
documento del cliente para realizar la acción.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/clients/architecto';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"client": {
"id": null,
"document_type": "NIT",
"document_number": "987654321-0",
"external_id": "EXT-987",
"name": "Empresa Ficticia S.A.S.",
"client_type": "RATIFICADO",
"advisor": {
"id": 555,
"name": "Jane Smith"
},
"username": null,
"status": "ACTIVO",
"status_info": "COMPLETA",
"status_lead": "CALIFICADO",
"category": {
"id": "A"
},
"origin": "MANUAL",
"load": "GENERAL",
"has_portal_access": true,
"verification_date": "27/06/2025",
"observations": "Cliente de prueba para la documentación.",
"user": {
"id": 1
},
"created_at": "01/01/2025",
"updated_at": "27/06/2025"
}
}
Endpoint que permite editar los datos de un cliente registrado en la aplicación.
The ID of the client.
documento del cliente para realizar la acción.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/clients/architecto';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'json' => [
'document_type_id' => 'architecto',
'document_number' => 'architecto',
'external_id' => 'architecto',
'name' => 'architecto',
'client_type' => 'architecto',
'status' => 'architecto',
'status_info' => 'architecto',
'advisor_id' => 16,
'category_id' => 'architecto',
'origin' => 'architecto',
'notes' => 'architecto',
'verification_date' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"client": {
"id": 1,
"document_type": "01",
"document_number": "123456789",
"external_id": "EXT-001",
"name": "John Doe Updated",
"client_type": "customer",
"advisor": {
"id": 987654321,
"name": "Jane Smith"
},
"username": null,
"status": "A",
"status_info": "posible",
"status_lead": "CALIFICADO",
"category": {
"id": "A"
},
"origin": "web",
"load": "FCL",
"has_portal_access": false,
"verification_date": "2025-06-27",
"observations": "This is an updated note.",
"user": {
"id": 1
},
"created_at": "26/06/2025",
"updated_at": "26/06/2025"
},
"message": "Datos Actualizados"
}
Endpoint que permite eliminar un cliente en la aplicación.
The ID of the client.
ID del cliente a eliminar.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/clients/architecto';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"message": "Eliminado correctamente"
}
Actualiza las credenciales de acceso al portal para un cliente específico.
El ID del cliente a actualizar.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/clients/client-portal-access/architecto';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'json' => [
'has_portal_access' => true,
'username' => '"johndoe"',
'password' => '"secret123"',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"client": {
"id": 1,
"has_portal_access": true,
"username": "JohnDoe",
},
"message": "Datos Actualizados"
}
Obtiene una lista paginada de contactos de clientes. Puedes filtrar los resultados usando los parámetros de consulta disponibles.
El ID del cliente al que pertenece el contacto.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/client-contacts';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'query' => [
'business_associate_id' => '123456',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"data": [
{
"id": 1,
"business_associate": {
"id": "000000001",
"name": "Nombre cliente"
},
"business_name": "Nombre empresa",
"name": "Nombre contacto",
"position": "Cargo",
"type": "Tipo",
"email": "correo@example.com",
"city": "Ciudad",
"phone": "123456789",
"mobile_phone": "987654321",
"birthday": "1990-01-01",
"notes": "Creado automáticamente el 25/11/2020",
"is_admin": false,
"is_sales_person": false,
"is_operational": true,
"whatsapp_status": false,
"created_at": "2020-11-25 10:38:57",
"created_by": "USUARIO",
"updated_at": "2020-11-25 10:38:57",
"updated_by": "USUARIO"
}
],
"links": {
"first": "http://yourdomain.com/api/client-contacts?page=1",
"last": "http://yourdomain.com/api/client-contacts?page=2",
"prev": null,
"next": "http://yourdomain.com/api/client-contacts?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"links": [],
"path": "http://demo.csyp.com/api/client-contacts",
"per_page": 10,
"to": 10,
"total": 20
}
}
Crea un nuevo registro de contacto de cliente.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/client-contacts';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'json' => [
'business_associate_id' => '"0000000028"',
'business_name' => '"Empresa"',
'name' => '"Nombre"',
'position' => '"Cargo"',
'email' => '"correo@correo.com"',
'mobile_phone' => '"987654321"',
'phone' => '"123456789"',
'city' => '"Ciudad"',
'birthday' => '"2025-11-12"',
'type' => '"Tipo"',
'whatsapp_status' => false,
'is_sales_person' => true,
'is_operational' => true,
'is_admin' => true,
'tags' => [
'13',
'11',
],
'notes' => '"Notas"',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"contact": {
"id": 1,
"business_associate": {
"id": "000000001",
"name": "Nombre cliente"
},
"business_name": "Nombre empresa",
"name": "Nombre contacto",
"position": "Cargo",
"type": "Tipo",
"email": "correo@example.com",
"city": "Ciudad",
"phone": "123456789",
"mobile_phone": "987654321",
"birthday": "1990-01-01",
"notes": "Creado automáticamente el 25/11/2020",
"is_admin": false,
"is_sales_person": false,
"is_operational": true,
"whatsapp_status": false,
"created_at": "2020-11-25 10:38:57",
"created_by": "USUARIO",
"updated_at": "2020-11-25 10:38:57",
"updated_by": "USUARIO"
},
"message": "Datos registrados"
}
Endpoint que permite consultar un contacto de cliente registrado en la aplicación.
The ID of the client contact.
ID del contacto de cliente para realizar la acción.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/client-contacts/architecto';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"contact": {
"id": 1,
"business_associate": {
"id": "000000001",
"name": "Nombre cliente"
},
"business_name": "Nombre empresa",
"name": "Nombre contacto",
"position": "Cargo",
"type": "Tipo",
"email": "correo@example.com",
"city": "Ciudad",
"phone": "123456789",
"mobile_phone": "987654321",
"birthday": "1990-01-01",
"notes": "Creado automáticamente el 25/11/2020",
"is_admin": false,
"is_sales_person": false,
"is_operational": true,
"whatsapp_status": false,
"created_at": "2020-11-25 10:38:57",
"created_by": "USUARIO",
"updated_at": "2020-11-25 10:38:57",
"updated_by": "USUARIO"
}
}
Endpoint que permite editar los datos de un contacto de cliente registrado en la aplicación.
The ID of the client contact.
ID del contacto de cliente para realizar la acción.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/client-contacts/architecto';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'json' => [
'business_associate_id' => '"0000000028"',
'business_name' => '"EMPRESA LTDA"',
'name' => '"Nombre"',
'position' => '"Cargo"',
'type' => '"Tipo"',
'email' => '"correo@correo.com"',
'city' => '"Ciudad"',
'phone' => '"3012503849"',
'mobile_phone' => '"3012503849"',
'birthday' => '"2025-11-12"',
'is_admin' => true,
'is_sales_person' => true,
'is_operational' => true,
'whatsapp_status' => true,
'tags' => [
'13',
'12',
'1',
],
'notes' => '"Creado automáticamente el 25/11/2020"',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"contact": {
"id": 1,
"client": {
"id": "000000001",
"name": "Nombre cliente",
}
"business_name": "Nombre empresa",
"name": "Nombre contacto",
"position": "Cargo",
"type": "Tipo",
"email": "correo@example.com",
"city": "Ciudad",
"phone": "123456789",
"mobile_phone": "987654321",
"birthday": "1990-01-01",
"notes": "Creado automáticamente el 25/11/2020",
"is_admin": false,
"is_sales_person": false,
"is_operational": true,
"whatsapp_status": false,
"created_at": "2020-11-25 10:38:57",
"created_by": "USUARIO",
"updated_at": "2020-11-25 10:38:57",
"updated_by": "USUARIO"
},
"message": "Datos Actualizados"
}
Endpoint que permite eliminar un contacto de cliente.
The ID of the client contact.
ID del contacto de cliente a eliminar.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/client-contacts/architecto';
$response = $client->delete(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"message": "Eliminado correctamente"
}
Obtiene una lista paginada de Cotizaciones. Puedes filtrar los resultados usando los parámetros de consulta disponibles.
Buscar por número de cotización.
Filtrar por estado.
Filtrar por subtipo.
Filtrar por oficina.
Filtrar por origen.
Filtrar por destino.
Filtrar por incoterm.
Filtrar por moneda.
Filtrar por rango de fecha.
Filtrar por campos adicionales.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/quotes';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'query' => [
'search' => '123456',
'statuses[0]' => 'APROBADO',
'statuses[1]' => 'ENPROCESO',
'date_range[0]' => '2022-01-01',
'date_range[1]' => '2022-12-31',
'additional_fields[0]' => '1',
'additional_fields[1]' => '2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"data": [
{
"id": "CSYP2055",
"consecutive": null,
"delivery_order_id": null,
"user_id": "SOPORTE",
"advisor_id": "901086265",
"advisor_name": "Soporte",
"campaign_id": "38",
"campaign_name": "TARIFAS PROMOCIONALES ",
"client_id": "",
"client_name": null,
"contact_id": "5",
"contact_name": "Adriana Zapata",
"supplier_id": "",
"supplier_name": null,
"shipper_id": null,
"shipper_name": null,
"consignee_id": null,
"consignee_name": null,
"notifier_id": null,
"notifier_name": null,
"description": "",
"entry_date": "23/04/2025",
"currency": "COP",
"office": "Routing order Honduras",
"origin": "ALEMANIA - BIELEFELD",
"destination": "ALEMANIA - ANSBACH",
"service_id": "PICKUP",
"service_name": "PICK UP ORDER nacional",
"subtype": "PICKUP",
"language": "",
"incoterm": "CIF",
"shipping_observations": null,
"rate_id": "",
"version": 1,
"status": "REQUERIMIENTO",
"rejection_reason": "REVIS",
"requirement_id": 114,
"created_at": "23/04/2025",
"updated_at": "23/04/2025"
}
],
"links": {
"first": "http://yourdomain.com/api/quotes?page=1",
"last": "http://yourdomain.com/api/quotes?page=2",
"prev": null,
"next": "http://yourdomain.com/api/quotes?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"links": [],
"path": "http://demo.csyp.com/api/quotes",
"per_page": 10,
"to": 10,
"total": 20
}
}
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/quotes';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'json' => [
'office' => 'architecto',
'sales_person' => 'architecto',
'currency' => 'architecto',
'status' => 'architecto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); Obtiene una lista paginada del Cuadro Contable. Puedes filtrar los resultados usando los parámetros de consulta disponibles.
Número de página para la paginación.
Número de elementos por página.
Término de búsqueda para filtrar los resultados.
Filtrar por DO.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/accounting-tables';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'query' => [
'page' => '1',
'per_page' => '15',
'search' => '"ABC123"',
'delivery_order_id' => '"DO12345"',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"data": [
{
"id": 1,
"quote_id": 1,
"delivery_order_id": 1,
"payment_term": "N/A",
"income_type": "N/A",
"concept": "N/A",
"group_id": 1,
"variation": "N/A",
"service_type": "N/A",
"supplier_type": "N/A",
"supplier_id": 1,
"supplier_name": "N/A",
"third_party_id": 1,
"applies_by": "N/A",
"unit": "N/A",
"sale_type": "N/A",
"sale_rate": 1,
"sale_rate_min": 1,
"sale_subtotal": 1,
"sale_currency": "N/A",
"sale_exchange_rate": 1,
"tax_rate": 1,
"total_sale": 1,
"total_sale_local_currency": 1,
"tax": 1,
"tax_local_currency": 1,
"sale_subtotal_local_currency": 1,
"purchase_type": "N/A",
"purchase": 1,
"purchase_rate": 1,
"purchase_rate_min": 1,
"purchase_currency": "N/A",
"purchase_exchange_rate": 1,
"purchase_local_currency": 1,
"purchase_invoice": "N/A",
"purchase_invoice_date": "2021-01-01",
"commission": 1,
"commission_value": 1,
"commission_value_local_currency": 1,
"profit": 1,
"quote_notes": "N/A",
"delivery_order_notes": "N/A",
"user_id": 1,
"created_at": "2025-01-01 00:00:00",
"updated_at": "2025-01-01 00:00:00"
}
],
"links": {
"first": "http://yourdomain.com/api/accounting-tables?page=1",
"last": "http://yourdomain.com/api/accounting-tables?page=2",
"prev": null,
"next": "http://yourdomain.com/api/accounting-tables?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"links": [],
"path": "http://demo.csyp.com/api/accounting-tables",
"per_page": 10,
"to": 10,
"total": 20
}
}
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/accounting-tables';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); Obtiene una lista paginada de DO. Puedes filtrar los resultados usando los parámetros de consulta disponibles.
Número de página para la paginación.
Número de elementos por página.
Término de búsqueda para filtrar los resultados.
Un array con dos fechas ('d/m/Y') para filtrar por fecha de ingreso.
Un array de códigos de estado para filtrar.
Un array de códigos de información de estado para filtrar.
Un array de códigos de subtipo para filtrar.
Un array de códigos de oficina para filtrar.
Un array de códigos de incoterm para filtrar.
Un array de códigos de moneda para filtrar.
Un array de objetos con claves de campos para filtrar.
Un array de claves de campos para incluir en la respuesta.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/delivery-orders';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'query' => [
'page' => '1',
'per_page' => '15',
'search' => '"ABC123"',
'filters[date_range][0]' => '01/01/2025',
'filters[date_range][1]' => '31/12/2025',
'filters[statuses][0]' => 'A',
'filters[statuses_info][0]' => 'open',
'filters[subtype][0]' => 'IMP',
'filters[office][0]' => 'UIO',
'filters[incoterm][0]' => 'FOB',
'filters[currency][0]' => 'USD',
'filters[additional_fields]' => '[{"additional_field_key": "additional_field_value"}]',
'display_additional_fields[0]' => 'additional_field_key',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"data": [
{
"id": 1,
"delivery_order": "DO-001",
"quote_id": "QT-001",
"type": "type",
"subtype": "IMP",
"month": "JAN",
"year": 2025,
"date": "01/01/2025",
"entry_date": "01/01/2025",
"alert_date": "15/01/2025",
"close_date": null,
"service_id": "SRV-01",
"service_name": "Service Name",
"client_id": "CLI-01",
"client_name": "Client Name",
"advisor_id": "ADV-01",
"advisor_name": "Advisor Name",
"agent_id": "AGN-01",
"agent_name": "Agent Name",
"coordinator_id": "COO-01",
"coordinator_name": "Coordinator Name",
"consignee_id": "CON-01",
"etd": "01/01/2025",
"eta": "15/01/2025",
"total_sale": 1000,
"total_purchase": 800,
"status": "A",
"status_info": "open",
"shipment_name": "Shipment Name",
"office_id": "UIO",
"office_name": "Quito Office",
"currency": "USD",
"incoterm": "FOB",
"observations": "Some observations.",
"color": "#FF0000",
"user_id": "user123",
"last_novelty": "2025-01-01 10:00:00",
"info_pro_number": "PN12345"
}
],
"links": {
"first": "http://yourdomain.com/api/delivery-orders?page=1",
"last": "http://yourdomain.com/api/delivery-orders?page=2",
"prev": null,
"next": "http://yourdomain.com/api/delivery-orders?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"links": [],
"path": "http://demo.csyp.com/api/delivery-orders",
"per_page": 10,
"to": 10,
"total": 20
}
}
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/delivery-orders';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); Endpoint para obtener la información adicional de Clientes, Proveedores, Cotizaciones, Requerimientos, Shipping Instruction y DO.
Tipo de recurso a consultar (client, supplier, quote, requirement, delivery-order).
ID del tipo de registro a consultar.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/additional-info/client/123456789';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"description": "Información Adicional",
"type": "group",
"group": "group_1",
"items": [
{
"description": "Dirección Empresa",
"attribute": 1001,
"value": null,
"type": "input",
"list": null,
"group": null
}
]
}
Endpoint para editar la información adicional de Clientes, Proveedores, Cotizaciones, Requerimientos, Shipping Instruction y DO.
Tipo de recurso a consultar (client, supplier, quote, requirement, delivery-order).
ID del tipo de registro a consultar.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/additional-info/client/123456789';
$response = $client->put(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'json' => \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
$o = [
clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')),
],
null,
[
'stdClass' => [
'attribute' => [
1001,
],
'value' => [
'test',
],
],
],
[
'items' => [
$o[0],
],
],
[]
),
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); Obtiene una lista paginada de Piezas. Puedes filtrar los resultados usando los parámetros de consulta disponibles.
Número de página para la paginación.
Número de elementos por página.
Término de búsqueda para filtrar los resultados.
Códigos de estado para filtrar las piezas.
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/pieces';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
'query' => [
'page' => '1',
'per_page' => '15',
'search' => '"ABC123"',
'filters[statuses][]' => '["PICK_UP", "ON_HAND", "CREATED", "DELIVERED"]',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body)); {
"data": [
{
"id": 168,
"external_id": "1321313",
"client_id": "1037619229",
"delivery_orders": "WR240387",
"qty": 1,
"weight_calculation_mode": "0",
"gross_weight": 4.99,
"weight_unit": "KG",
"length": 12,
"width": 23,
"height": 3,
"cubic_feet": 0.02924,
"cubic_mt": 0.00083,
"total_gross_weight": 4.99,
"volume": 828,
"volume_pieces": "0",
"dimension_unit": "cm",
"location_id": 0,
"package_type": "CAJA",
"description": "partes de motos",
"status": "ON_HAND",
"processes_count": 2,
"created_at": "2025-08-23 18:44:20",
"created_by": "SOPORTE",
"updated_at": "2025-08-23 18:44:20",
"updated_by": "SOPORTE"
}
],
"links": {
"first": "http://yoursubdomain.csyp.co/api/pieces?page=1",
"last": "http://yoursubdomain.csyp.co/api/pieces?page=2",
"prev": null,
"next": "http://yoursubdomain.csyp.co/api/pieces?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"links": [],
"path": "http://yoursubdomain.csyp.co/api/pieces",
"per_page": 10,
"to": 10,
"total": 20
}
}
$client = new \GuzzleHttp\Client();
$url = 'https://yoursubdomain.csyp.co/api/pieces';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Origin' => 'https://yoursubdomain.conectacargo.co',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));