Search…
Token Receipt API
This API is for Patners that are able to deliver card related token with receipt data.

Token Receipt API

Request

1
POST /api/v1/receipts/ HTTP/1.1
2
Host: api.dev.receipthero.io
3
Authorization: Token <RECEIPTHERO_API_KEY>
4
Content-Type: application/json
5
6
{
7
"attributes": {
8
"tokens": [
9
{
10
"type": "CARD",
11
"value": "bmxpbmUgSldMjksImV4cCI6MTY0NzcwNTIyOSwiYXVkIjoid3d3",
12
"id": "parter-token-xyz",
13
}
14
]
15
},
16
"receipt": <HEROJSON>
17
}
Copied!

Token object

Key
Type
Description
Required
type
String
Token type: CARD|USER
value
String
Token value
id
String
Token identifier (Defined by the Partner)
Required if Token type = CARD
ReceiptHero JSON as <HeroJSON>

Response OK

1
HTTP 200 OK
2
Content-Type: application/json
Copied!