ApiResponse<T>. See the API Overview for the envelope schema.
A discrepancy (DiscrepanciaRecepcion) is created when the total received during a CEDIS reception does not match the total expected. It captures the truck, department, and the numeric difference.
GET /api/discrepancias
Returns all discrepancy records across all receptions.Example request
Example response
POST /api/discrepancias
Registers a new discrepancy record.Request body
Truck number associated with the reception where the discrepancy occurred.
Name of the department where the discrepancy was detected.
Total quantity that was expected per the order or invoice.
Total quantity that was actually received.
Difference between
totalEsperado and totalRecibido. Typically totalEsperado - totalRecibido.Date of the discrepancy in
yyyy-MM-dd format. If omitted, the server may leave this field null.Example request
Example response
DiscrepanciaRecepcion object schema
Auto-generated primary key.
Truck number where the discrepancy was detected.
Department name where the discrepancy occurred.
Total quantity expected per the order or invoice.
Total quantity actually received.
The shortfall:
totalEsperado - totalRecibido.Date the discrepancy was recorded, in
yyyy-MM-dd format.