Lewati ke konten

Revenue report — sales, fees, refunds (by refund date), revenue, COGS (net of refunded stock), gross profit and margin per local day/week/month, plus invoice revenue (actual/collected and expected/invoiced) shown alongside

GET
/api/dash/{orgId}/reports/revenue
curl --request GET \
--url 'https://api.medivy.id/api/dash/example/reports/revenue?from=example&to=example&groupBy=day' \
--header 'x-api-key: <x-api-key>'
orgId
required
string

Your organization ID. The API key must belong to this organization.

from
required
string
/^\d{4}-\d{2}-\d{2}$/
to
required
string
/^\d{4}-\d{2}-\d{2}$/
outletId
string
channelId
string
groupBy
string
default: day
Allowed values: day week month

OK

Media typeapplication/json

Example generated

example

Missing, invalid, disabled or expired API key.

Media typeapplication/json
object
ok
message
string

Example

{
"ok": false
}

The key belongs to another organization, the request came from an IP outside the key’s allowlist, or the key’s user lacks the permission.

Media typeapplication/json
object
ok
message
string

Example

{
"ok": false
}

Too many requests from this organization.

Media typeapplication/json
object
ok
message
string

Example

{
"ok": false
}