Sales by period
Performs sales analysis by comparing two distinct periods, providing insights into sales performance trends over time.
post
Autorizações
Corpo
typestring · enumOpcionalValores possíveis:
Respostas
200
OK
*/*
404
Sale was not found
*/*
500
An internal server error was thrown
*/*
post
POST /api/sales/home/sales-by-period HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 152
{
"period": {
"start_date": "2025-07-04",
"final_date": "2025-07-04"
},
"period_before": {
"start_date": "2025-07-04",
"final_date": "2025-07-04"
},
"type": "QUANTITY"
}
{
"values": [
{
"index": 1,
"date": "2025-07-04",
"date_before": "2025-07-04",
"value": 1,
"value_before": 1,
"rate": 1
}
]
}