The revenue over day services are used to upload data for forecasting purposes.

AmountTypeId 1 is Revenue and 2 is Customers.

StatusTypeId 1 is Actual data and 2 is Forecast data. 2 can be used to upload your own forecast data.

Note that the types have to exist for the upload to be successful.

Note that the time span for a single unit has to be less than 24 hours, and more than 15 minutes. The upload will fail if the span cannot be divided into 15-minute spans.

a) Upload Single Data Unit

Upload actual or forecast data for a single department in a period.

 

Request (JSON)

POST /Revenues /period/single/?securityToken={tokenId}
Content-Type:application/json

{"Amount":"<float>","AmountTypeId":"[1|2]", "End":"<DateTime>", "PosStoreId":"<string>", "Start":"<DateTime>", "StatusTypeId":"[1|2]"}

 

Response (JSON)

HTTP/1.1 200 OK "true"

b) Upload List of Data Units

Upload actual or forecast data for multiple departments for multiple periods.

 

Request (JSON)

POST /Revenues /period/list/?securityToken={tokenId}
Content-Type:application/json

[{"Amount":"<float>","AmountTypeId":"[1|2]", "End":"<DateTime>", "PosStoreId":"<string>", "Start":"<DateTime>", "StatusTypeId":"[1|2]"},
...
{"Amount":"<float>","AmountTypeId":"[1|2]", "End":"<DateTime>", "PosStoreId":"<string>", "Start":"<DateTime>", "StatusTypeId":"[1|2]"]

 

Response (JSON)

HTTP/1.1 200 OK "true"