Lewati ke konten

Revenue by day or month

Payments of the key's app paid on WIB days from..to (both included, at most 366 days), summed per day (YYYY-MM-DD), month (YYYY-MM) or in one total row. Periods with nothing paid are left out (total always has one row). Refunded is what was refunded of those payments so far.

Otorisasi

apiKey
headerAuthorizationBearer <token>

lbp_test_... or lbp_live_...

Parameter query

from*string
Formatdate
to*string
Formatdate
group_by?string
Default"day"
Value in"day""month""total"

Body respons

Revenue per period

application/json
  1. response
object*"revenue"
Value in"revenue"
mode*string
Value in"test""live"
app_id*string
from*string
Formatdate
to*string
Formatdate
group_by*string
Value in"day""month""total"
currency*"IDR"
Value in"IDR"
data*array<>
Contoh permintaan
curl -X GET 'https://pay.piti.id/v1/revenue?from=2026-11-01&to=2026-11-30'
Contoh respons
{  "object": "revenue",  "mode": "test",  "app_id": "string",  "from": "2019-08-24",  "to": "2019-08-24",  "group_by": "day",  "currency": "IDR",  "data": [    {      "object": "revenue_period",      "period": "string",      "count": 0,      "amount": 0,      "fee": 0,      "total": 0,      "net": 0,      "refunded": 0,      "currency": "IDR"    }  ]}