Skip to main content

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.

Required Scopes (ia.w)

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

Successful Response

Loading...