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.


number: str
Delivery number for the record. Records sharing a number are grouped together and auto-reconciled to the same order.


store_id: str
Unique identifier for the store.


tank_id: str
Unique identifier for the tank at the store.


manifold_id: str (optional)
Unique identifier for the manifold if the tank is part of a manifold. If not provided, the system will automatically populate this field based on the tank configuration.


product_id: str
Unique identifier for the product.


volume: float | None = None
Volume of the sales adjustment. Used as the fallback for gross_volume and net_volume when those are not sent.


gross_volume: float | None = None
Gross volume of the sales adjustment. Defaults to volume when omitted.


net_volume: float | None = None
Net volume of the sales adjustment. Defaults to volume when omitted.


date: datetime
Date and time of the adjusted delivery.


start_time: datetime | None = None
Start time of the 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...