Skip to main content

Get Sales Summary

By calling this API, you can retrieve the sales summary of the specified MokaPOS outlet.

POST /integrations/mokapos/outlets/{outlet_id}/v1/reporting/sales-summary

Path Parameters

AttributeDescriptionTypeRequired
outlet_idID of a MokaPOS businessStringRequired

Sample Request

curl -X POST /integrations/mokapos/outlets/{outlet_id}/v1/reporting/sales-summary \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}' \
-d $'
{
"query": {
"range": {
"transaction_time": {
"gte": "2020-01-01T00:00:00+07:00",
"lte": "2020-01-30T23:59:59+07:00"
}
}
}
}
'

Sample Response - 200 Success

{
"success": true,
"data": {
"sales_summary": [
{
"currency": "IDR",
"refund": 68000,
"gross_amount": 5526000,
"redemption": 1000
}
]
}
}
note

To perform this operation, you must be authenticated using go_auth_client_credentials(mokapos:reporting:read).