Skip to main content
POST
/
me
/
claims
Claim a voucher to the user's wallet
curl --request POST \
  --url http://localhost:4000/me/claims \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "voucherId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "voucherId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "claimedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer JWT signed by your app, with iss matching the issuer registered on the partner record. Verified against your JWKS URL or static public key.

Body

application/json
voucherId
string<uuid>
required

Voucher to claim. Get this from the catalog browsing endpoints or the webview deep-link.

Response

Claim already existed; returned unchanged.

Claim already existed; returned unchanged.

id
string<uuid>
userId
string<uuid>
voucherId
string<uuid>
claimedAt
string<date-time>