Skip to main content
GET
/
api
/
v1
/
invoices
/
customer
/
{customerId}
List invoices by customer ID
curl --request GET \
  --url https://api-beta.pepay.io/api/v1/invoices/customer/{customerId} \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "data": [
    {}
  ],
  "has_more": true
}

Authorizations

Authorization
string
header
required

JWT token for wallet authentication

Path Parameters

customerId
string
required

Customer identifier

Query Parameters

limit
integer
default:10

Max number of invoices to return.

Required range: 1 <= x <= 100
starting_after
string<uuid>

Cursor (return invoices created before this ID).

ending_before
string<uuid>

Cursor (return invoices created after this ID).

status
string

Comma-separated invoice statuses.

invoice_type
string

Comma-separated invoice types.

environment
enum<string>

Filter by network environment.

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

Return invoices created on/after this time.

created_lte
string<date-time>

Return invoices created on/before this time.

expand
string

Comma-separated expansions (latest_payment, payments).

payments_limit
integer
default:10

Max payments per invoice when expand includes payments.

Required range: 1 <= x <= 100

Response

Customer invoices retrieved successfully

object
string
Example:

"list"

data
object[]
has_more
boolean