Upsert Many Sales Adjusted Deliveries Ep
POST/v1/sales_adjusted_delivery/upsert_many
Upsert Many Sales Adjusted Deliveries
Creates multiple sales adjusted delivery records in a single request. These records represent adjustments to sales data that should be tracked in the system.
Request
The request is a list of SalesAdjustedDeliveryUpsertReq objects with the following properties:
source: str
Source identifier for the adjusted delivery record.
store_id: str
Unique identifier for the store.
tank_id: str
Unique identifier for the tank at the store.
product_id: str
Unique identifier for the product.
volume: float
Volume of the sales adjustment.
date: datetime
Date and time of the adjusted delivery.
Response
The endpoint creates sales adjusted delivery records and corresponding audit records. It returns:
inserted_count: int
Number of sales adjusted delivery records successfully created.
Responses
- 200
- 422
Successful Response
Validation Error
- application/json
- Example (from schema)
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}