ApiResponse<T>. See the API Overview for the envelope schema.
RPC (Recipiente de Plástico Reutilizable) records track containers that are sent to CEDIS or a store and must be physically returned. A record is “pending” (pendienteRetorno: true) until all containers are returned.
GET /api/rpc/resumen
Returns aggregated KPI counts across all RPC records. Thedata field is a plain key-value map.
Response fields
Key-value summary map with the following keys:
Example request
Example response
GET /api/rpc/pendientes
Returns all RPC records wherependienteRetorno is true — containers that have been sent but not yet returned.
Example request
Example response
GET /api/rpc/completados
Returns all RPC records where the return process is complete (pendienteRetorno is false).
Example request
Example response
PUT /api/rpc/retorno/{idRpc}
Registers a physical return of containers for a given RPC record. UpdatescantidadRetornada and sets pendienteRetorno to false when all containers have been returned.
Path parameters
ID of the RPC control record to update.
Query parameters
Number of containers being returned in this transaction.
Example request
Example response
RpcControl object schema
Auto-generated primary key.
Truck number associated with this RPC record.
Department enum:
FRUTAS, VERDURAS, LACTEOS, CARNES, EMBUTIDOS, MULTIPLE, or FARMACIA.RPC type enum:
TIPO1, TIPO2, TIPO3, CAJA_CARTON, OTRO, ENTREGA, or DISCREPANCIA.Total quantity of containers delivered. Must be at least 1.
Total quantity of containers returned so far.
Date the record was created, in
yyyy-MM-dd format.true if containers are still outstanding; false once all have been returned.