Skip to content

Verify a QR-initiated payment

POST
/payments/verify-qr
curl --request POST \
--url https://hub.stablezact.com/api/v1/payments/verify-qr \
--header 'Content-Type: application/json' \
--header 'X-Public-Key: <X-Public-Key>' \
--data '{ "paymentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'
Media typeapplication/json
object
paymentId
required
string format: uuid
Examplegenerated
{
"paymentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Answered with verified either way. A payment that is not verified still returns 200, so read verified rather than the status code.

Media typeapplication/json
object
success
boolean
verified
boolean
error
string
message
string
Examplegenerated
{
"success": true,
"verified": true,
"error": "example",
"message": "example"
}

Missing or invalid credentials.

Media typeapplication/json
object
success
boolean
error
required

Short machine-ish reason.

string
message

Longer explanation, when there is one.

string
Example
{
"error": "API credentials required. Use x-public-key header or x-api-key and x-api-secret headers."
}