Skip to main content
GET
/
api
/
v1
/
payments
/
customer-email
Retrieve customer email
curl --request GET \
  --url https://api-beta.pepay.io/api/v1/payments/customer-email \
  --header 'x-session-token: <api-key>' \
  --header 'x-signature: <api-key>'
{
"email": "[email protected]",
"has_email": true
}

Authorizations

x-session-token
string
header
required

Payment session token (opaque). Returned when creating an invoice; send on every request.

x-signature
string
header
required

Payment session signature in the format signature_hash.timestamp_ms (returned with the invoice/session).

Response

Email retrieved successfully

email
string | null

Customer email address or null if not set

has_email
boolean

Whether email is stored