Reporte de Recepciones
Puedes hacer uso de la API para solicitar la información general de uno o de todos las recepciones registradas. También podrás filtrar por id de recepción, encargado, fechas entre otros.
api/reports/receptions (GET)
Método para obtener listado de datos de recepciones de acuerdo a parámetros definidos, para esto es necesario realizar una llamada GET a la siguiente url:
http://inventory.mdmn.cl/api/reports/receptions
PARÁMETROS DE CONSULTA
Parámetros que pueden ser agregados a la solicitud para filtrar qué registros se desean obtener. Los parametros posibles son:
Campo | Tipo | Descripción |
---|---|---|
reception_id | Integer | Id único de recepción. |
document_type_id | Integer | Id del tipo de documento (1 = Factura, 2 = Boleta, 3 = Guía de despacho). |
responsible_id | Integer | Id del usuario encargado de recepción. |
date_from | Date | Fecha de recepción para inicial de búsqueda (Formato: Y-m-d) |
date_to | Date | Fecha de recepción para termino de búsqueda (Formato: Y-m-d) |
branch_id | Integer | Id único de la sucursal. |
page | Integer | Número de página. Por defecto = 1 |
result_per_page | Integer | Número de resultados por solicitud. Por defecto = 10000 (máximo 10000) |
Ejemplo
A continuación se muestra un ejemplo usando el método reports/receptions de la API de Inventory.
METHOD GET curl "http://inventory.mdmn.cl/api/reports/receptions?page=1&date_from=2024-01-01&date_to=2024-09-15' -X GET \ -H 'Authorization: Bearer <token>' -H 'Accept: application/json'
RESULTADO
El resultado ejemplo para esta llamada se muestra a continuación:
{
"data": [
{
"id": "65",
"date_reception": "2024-05-03",
"document_number": null,
"created_at": "2024-05-03 08:51:29",
"user_created": "42",
"subtotal": "0",
"tax": "0",
"discounts": "0",
"total": "0",
"quantity": "0",
"provider_id": null,
"observation": null,
"user_updated": "42",
"updated_at": "2024-05-03 08:51:29",
"user_end_reception": "31",
"end_reception_at": "2024-05-03 11:16:44",
"user_cancel_reception": null,
"cancel_reception_at": null,
"reason_cancellation": null,
"purchase_order_number": null,
"branch": "GENERICO",
"status_reception": "Finalizada",
"provider_rut": null,
"provider": null,
"user": "Jorge Cornejo",
"document_type": "Factura",
"document_label": "N° de Factura",
"porcent_tax": "19",
"details": [
{
"id": "158",
"quantity": "0",
"purchase_price": "30250",
"subtotal": "0",
"serial_number": null,
"expiration_date": null,
"bar_code": "1000864",
"product": "LIBRO MATEMATICA//EDITORIAL: SM //NOMBRE: CUADERNO DE EJERCICIOS +LICENCIA",
"departament": null,
"floor": null,
"office": null,
"responsible": null
}
]
},
{
"id": "66",
"date_reception": "2024-05-03",
"document_number": null,
"created_at": "2024-05-03 08:52:25",
"user_created": "42",
"subtotal": "0",
"tax": "0",
"discounts": "0",
"total": "0",
"quantity": "0",
"provider_id": null,
"observation": null,
"user_updated": "42",
"updated_at": "2024-05-03 08:52:25",
"user_end_reception": "31",
"end_reception_at": "2024-05-03 11:16:58",
"user_cancel_reception": null,
"cancel_reception_at": null,
"reason_cancellation": null,
"purchase_order_number": null,
"branch": "GENERICO",
"status_reception": "Finalizada",
"provider_rut": null,
"provider": null,
"user": "Jorge Cornejo",
"document_type": "Factura",
"document_label": "N° de Factura",
"porcent_tax": "19",
"details": [
{
"id": "159",
"quantity": "0",
"purchase_price": "40700",
"subtotal": "0",
"serial_number": null,
"expiration_date": null,
"bar_code": "1000865",
"product": "LIBRO MATEMATICA// NOMBRE: PROYECTO SAVIA +CUADERNO DE EJERCICIOS + LICENCIA// EDITORIAL: SM",
"departament": null,
"floor": null,
"office": null,
"responsible": null
}
]
},
{
"id": "67",
"date_reception": "2024-05-03",
"document_number": "8542726",
"created_at": "2024-05-03 11:24:03",
"user_created": "31",
"subtotal": "234891",
"tax": "44629",
"discounts": "0",
"total": "279520",
"quantity": "16",
"provider_id": "197",
"observation": "Solicitud de cotización N° 874 / Insumos de aseo - papel higienico",
"user_updated": "31",
"updated_at": "2024-05-03 11:24:15",
"user_end_reception": "31",
"end_reception_at": "2024-05-03 12:19:26",
"user_cancel_reception": null,
"cancel_reception_at": null,
"reason_cancellation": null,
"purchase_order_number": "5088",
"branch": "GENERICO",
"status_reception": "Finalizada",
"provider_rut": "96529310-8",
"provider": "CMPC TISSUE S.A.",
"user": "jose inostroza",
"document_type": "Factura",
"document_label": "N° de Factura",
"porcent_tax": "19",
"details": [
{
"id": "160",
"quantity": "16",
"purchase_price": "17470",
"subtotal": "279520",
"serial_number": "S100081444571",
"expiration_date": null,
"bar_code": "1000814",
"product": "TOALLA NOVA 24MTS X2 COD. 40782",
"departament": "ED SENIOR",
"floor": "SUBTERRANEO",
"office": "BODEGA PRINCIPAL",
"responsible": "INOSTROZA ESPARZA JOSE ALEJANDRO"
}
]
},
{
"id": "68",
"date_reception": "2024-05-03",
"document_number": "8542722",
"created_at": "2024-05-03 11:37:09",
"user_created": "31",
"subtotal": "1229970",
"tax": "233695",
"discounts": "0",
"total": "1463670",
"quantity": "180",
"provider_id": "197",
"observation": "Solicitud de cotización N° 874 / Insumos de aseo - papelería",
"user_updated": "31",
"updated_at": "2024-05-03 11:37:20",
"user_end_reception": "31",
"end_reception_at": "2024-05-03 12:19:39",
"user_cancel_reception": null,
"cancel_reception_at": null,
"reason_cancellation": null,
"purchase_order_number": "5088",
"branch": "GENERICO",
"status_reception": "Finalizada",
"provider_rut": "96529310-8",
"provider": "CMPC TISSUE S.A.",
"user": "jose inostroza",
"document_type": "Factura",
"document_label": "N° de Factura",
"porcent_tax": "19",
"details": [
{
"id": "161",
"quantity": "30",
"purchase_price": "20789",
"subtotal": "623670",
"serial_number": null,
"expiration_date": null,
"bar_code": "1000816",
"product": "PAPEL HIGIENICO 50MTS COD.52014",
"departament": "ED SENIOR",
"floor": "SUBTERRANEO",
"office": "BODEGA PRINCIPAL",
"responsible": "INOSTROZA ESPARZA JOSE ALEJANDRO"
},
{
"id": "162",
"quantity": "150",
"purchase_price": "5600",
"subtotal": "840000",
"serial_number": null,
"expiration_date": null,
"bar_code": "1000815",
"product": "TOALLA ELITE JUMBO ECONÓMICA 250X2 COD.40862",
"departament": "ED SENIOR",
"floor": "SUBTERRANEO",
"office": "BODEGA PRINCIPAL",
"responsible": "INOSTROZA ESPARZA JOSE ALEJANDRO"
}
]
},
{
"id": "69",
"date_reception": "2024-05-09",
"document_number": "10215",
"created_at": "2024-05-09 16:50:17",
"user_created": "48",
"subtotal": "205882",
"tax": "39118",
"discounts": "0",
"total": "245000",
"quantity": "2",
"provider_id": "252",
"observation": null,
"user_updated": "48",
"updated_at": "2024-05-09 16:50:17",
"user_end_reception": "48",
"end_reception_at": "2024-05-09 16:58:54",
"user_cancel_reception": null,
"cancel_reception_at": null,
"reason_cancellation": null,
"purchase_order_number": null,
"branch": "GENERICO",
"status_reception": "Finalizada",
"provider_rut": "10010010-K",
"provider": "AAAPROVEEDORGENERICO",
"user": "Bastian iriarte",
"document_type": "Boleta",
"document_label": "N° de Boleta",
"porcent_tax": "19",
"details": [
{
"id": "164",
"quantity": "1",
"purchase_price": "120000",
"subtotal": "120000",
"serial_number": "S100000040742",
"expiration_date": null,
"bar_code": "1000000",
"product": "MONITOR 22 PULGADAS",
"departament": "CASA ADMINISTRATIVA",
"floor": "PISO 1",
"office": "3EMB",
"responsible": "CARRASCO PEREZ FELIPE ADOLFO"
},
{
"id": "165",
"quantity": "1",
"purchase_price": "125000",
"subtotal": "125000",
"serial_number": "S100000040743",
"expiration_date": null,
"bar_code": "1000000",
"product": "MONITOR 22 PULGADAS",
"departament": "CASA ADMINISTRATIVA",
"floor": "PISO 1",
"office": "3EMA",
"responsible": "CARRASCO PEREZ FELIPE ADOLFO"
}
]
},
{
"id": "70",
"date_reception": "2024-05-09",
"document_number": "333",
"created_at": "2024-05-09 17:19:54",
"user_created": "48",
"subtotal": "0",
"tax": "0",
"discounts": "0",
"total": "0",
"quantity": null,
"provider_id": null,
"observation": null,
"user_updated": "48",
"updated_at": "2024-05-09 17:19:54",
"user_end_reception": null,
"end_reception_at": null,
"user_cancel_reception": null,
"cancel_reception_at": null,
"reason_cancellation": null,
"purchase_order_number": null,
"branch": "GENERICO",
"status_reception": "En Curso",
"provider_rut": null,
"provider": null,
"user": "Bastian iriarte",
"document_type": "Boleta",
"document_label": "N° de Boleta",
"porcent_tax": "19",
"details": []
}
],
"totalPages": 1,
"currentPage": "1",
"totalRecords": 6
}