Daily Sales

Update your daily sales data.

Upsert daily sales

PUT /api/v1/daily-sales

Upserts daily sales data by location and date.

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body

NameTypeDescription

date

string

The date for the data. Should be in YYYY-MM-DD format.

locations

record

A record with the location ID as the key, and sales data as the value.

Example Request

{
  "date": "2024-06-14",
  "locations": {
    "loc_jsnFcOej5oD": { // The ID for the location generated by LOMA 
      "net_sales": 1201, // The total net sales for that location and date
      "transaction_count": 12 // The total number of transactions for that location and date
    },
    "loc_PP4ZcUxYG2g": {
      "net_sales": 3291,
      "transaction_count": 32
    }
  }
}

Note that you can submit data for multiple locations at a time. However, you can only submit data for one date at a time.

Response

{
    "message": "OK"
}

Last updated