Skip to content

Create Sales per Hour POST

URL: https://api.painelalter.com/api/sales/postSalesPerHour

Request used to insert sales data grouped by hour into the system.

Example Body

json
{
    "sales": [
        {
            "alias_id": "01",
            "localDate": "2024-04-21",
            "localHour": 11,
            "total": 69,
            "nbItems": 150,
            "nbSales": 23,
            "id_sellerPDV": "SELLER_01",
            "sellerName": "John Doe"
        }
    ]
}

Sale Object Parameters

FieldTypeRequiredDescription
alias_idstringYesStore ID
localDatestringYesSale date in the format YYYY-MM-DD
localHournumberYesSale hour
totalnumberYesTotal sale value
nbItemsnumberYesNumber of items sold
nbSalesnumberYesNumber of sales made
id_sellerPDVstringNoSeller identifier in the POS. When present, the sale is assigned to the specified seller
sellerNamestringNoSeller name