Get QR Code statistics (24h)

Returns aggregated statistics of the account's QR Codes in the last 24 hours. Includes: - Number of QR Codes generated - Number of QR Codes paid - Number of refunds - Total values (generated, paid, refunded) - Conversion rate (paid/generated) - Hourly data (last 24h)

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

accountIdstringRequiredformat: "uuid"
Account ID.

Headers

X-Tenant-IdstringRequired
Tenant context used for authorization and routing.
X-Request-TimestampstringRequired

Unix seconds. Required on the signed host; tolerance is 300s either way (403 request_timestamp_skew).

X-Content-SHA256stringRequired

Lowercase hex SHA-256 of the body. An empty body hashes the empty string, so the header is always present. Mismatch returns 400 body_hash_mismatch.

X-Request-SignaturestringRequired

Detached JWS (<protected>..<signature>, ES256 or PS256) over METHOD\nPATH?QUERY\nTIMESTAMP\nIDEMPOTENCY_KEY_OR_EMPTY\nX_CONTENT_SHA256.

Response

Statistics returned successfully.
generatedinteger
Number of QR Codes generated.
paidinteger
Number of QR Codes paid.
refundedinteger
Number of refunds processed.
totalValueGenerateddouble

Total value of generated QR Codes. Amount in BRL. Max 2 decimal places (e.g., 7500.00 for R$7.500,00).

totalValuePaiddouble

Total value of paid QR Codes. Amount in BRL. Max 2 decimal places (e.g., 2250.00 for R$2.250,00).

totalValueRefundeddouble

Total refunded value. Amount in BRL. Max 2 decimal places (e.g., 100.00 for R$100,00).

conversionRatedouble

Conversion rate (paid/generated * 100).

hourlyDatalist of objects

Aggregated data per hour (last 24h available).

Errors

400
Bad Request Error
500
Internal Server Error