Skip to main content
POST
/
v1
/
mpp
/
receipts
/
verify
Verify a receipt
curl --request POST \
  --url https://api.getsly.ai/v1/v1/mpp/receipts/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "voucher_id": "<string>"
}
'
{
  "valid": true,
  "session_id": "<string>",
  "amount": "<string>",
  "issued_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z",
  "reason": "<string>"
}

Authorizations

Authorization
string
header
required

API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).

Body

application/json
voucher_id
string
required

Response

200 - application/json

Verification result

valid
boolean
required
session_id
string
amount
string
issued_at
string<date-time>
expires_at
string<date-time>
reason
string