Skip to main content
GET
/
api
/
v1
/
payments
/
invoice-questions
Get invoice questions
curl --request GET \
  --url https://api-beta.pepay.io/api/v1/payments/invoice-questions \
  --header 'x-session-token: <api-key>' \
  --header 'x-signature: <api-key>'
{
"has_questions": true,
"questions": {
"questions": [
{
"id": "q1",
"question": "Email address",
"type": "email",
"validation": {
"required": 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

Questions retrieved successfully

has_questions
boolean

Whether invoice has custom questions

questions
object

Present only when has_questions is true.