Skip to main content
GET
/
api
/
v1
/
invoices
/
{invoiceId}
Retrieve invoice details
curl --request GET \
  --url https://api-beta.pepay.io/api/v1/invoices/{invoiceId} \
  --header 'Authorization: Bearer <token>'
{
"object": "invoice",
"id": "550e8400-e29b-41d4-a716-446655440000",
"merchant_id": 123,
"status": "unpaid",
"invoice_type": "standard",
"currency": "usd",
"amount": 49990,
"amount_decimal": "49.990",
"amount_paid": 0,
"amount_paid_decimal": "0.000",
"amount_remaining": 49990,
"amount_remaining_decimal": "49.990",
"amount_unit": "usd_millis",
"customer_id": "cust_123",
"environment": "devnet",
"created_at": "2025-12-21T12:00:00.000Z",
"expires_at": "2025-12-21T13:00:00.000Z",
"metadata": {
"order_id": "ORD-123"
}
}

Authorizations

Authorization
string
header
required

JWT token for wallet authentication

Path Parameters

invoiceId
string<uuid>
required

Invoice ID

Query Parameters

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

Invoice retrieved successfully

Canonical invoice object (snake_case, usd_millis amounts).

object
string
Example:

"invoice"

id
string
Example:

"550e8400-e29b-41d4-a716-446655440000"

merchant_id
integer
Example:

123

status
string
Example:

"paid"

invoice_type
string
Example:

"standard"

currency
string
Example:

"usd"

amount
integer
Example:

10000

amount_decimal
string
Example:

"10.000"

amount_paid
integer
Example:

10000

amount_paid_decimal
string
Example:

"10.000"

amount_remaining
integer
Example:

0

amount_remaining_decimal
string
Example:

"0.000"

amount_unit
string
Example:

"usd_millis"

customer_id
string | null
payer_wallet_address
string | null
payer_wallet_network
string | null
commerce_order_id
string | null
environment
enum<string>
Available options:
devnet,
mainnet
expires_at
string<date-time> | null
created_at
string<date-time> | null
paid_at
string<date-time> | null
last_payment_at
string<date-time> | null
metadata
object
latest_payment
object

Canonical invoice_payment object (merchant surfaces include settlement fields; payor surfaces strip them).

payments
object[]