Token Receipt API
This API is for Patners that are able to deliver card related token with receipt data.
POST /api/v1/receipts/ HTTP/1.1
Host: api.dev.receipthero.io
Authorization: Token <RECEIPTHERO_API_KEY>
Content-Type: application/json
{
"attributes": {
"tokens": [
{
"type": "CARD",
"value": "bmxpbmUgSldMjksImV4cCI6MTY0NzcwNTIyOSwiYXVkIjoid3d3",
"id": "parter-token-xyz",
}
]
},
"receipt": <HEROJSON>
}
Key | Type | Description | Required |
---|---|---|---|
type | String | Token type: CARD|USER|PHONE|EMAIL|QR_CODE|LINK | ✅ |
value | String | Token value | ✅ |
id | String | Token identifier (Defined by the Partner) | Required if Token type = CARD |
HTTP 200 OK
Content-Type: application/json
Last modified 3mo ago