Skip to main content
GET
/
api
/
v1
/
invoices
/
totals
Get invoice totals
curl --request GET \
  --url https://api-beta.pepay.io/api/v1/invoices/totals \
  --header 'Authorization: Bearer <token>'
{
  "object": "invoice_totals",
  "currency": "usd",
  "amount_unit": "usd_millis",
  "totals": {
    "all": {
      "amount": 129900,
      "amount_decimal": "129.900",
      "count": 3
    },
    "paid": {
      "amount": 99900,
      "amount_decimal": "99.900",
      "count": 2
    },
    "unpaid": {
      "amount": 30000,
      "amount_decimal": "30.000",
      "count": 1
    },
    "underpaid": {
      "amount": 0,
      "amount_decimal": "0.000",
      "count": 0
    },
    "expired": {
      "amount": 0,
      "amount_decimal": "0.000",
      "count": 0
    },
    "canceled": {
      "amount": 0,
      "amount_decimal": "0.000",
      "count": 0
    }
  }
}

Authorizations

Authorization
string
header
required

JWT token for wallet authentication

Query Parameters

status
string

Comma-separated invoice statuses.

invoice_type
string

Comma-separated invoice types.

customer_id
string

Filter by merchant customer ID.

environment
enum<string>

Filter by network environment.

Available options:
mainnet,
devnet
created_gte
string<date-time>

Include invoices created on/after this time.

created_lte
string<date-time>

Include invoices created on/before this time.

Response

Invoice totals retrieved successfully

object
string
Example:

"invoice_totals"

currency
string
Example:

"usd"

amount_unit
string
Example:

"usd_millis"

totals
object