Verify a QR-initiated payment
POST
/payments/verify-qr
const url = 'https://hub.stablezact.com/api/v1/payments/verify-qr';const options = { method: 'POST', headers: {'X-Public-Key': '<X-Public-Key>', 'Content-Type': 'application/json'}, body: '{"paymentId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
paymentId
required
string format: uuid
Examplegenerated
{ "paymentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”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."}