Token Receipt API

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

Token Receipt API

Request

POST /api/v1/receipts/ HTTP/1.1
Host: api.dev.receipthero.io
Authorization: Token <RECEIPTHERO_API_KEY>
Content-Type: application/json
{
"attributes": {
"tokens": [
{
"value": "bmxpbmUgSldMjksImV4cCI6MTY0NzcwNTIyOSwiYXVkIjoid3d3",
"id": "parter-token-xyz",
"type": "CARD"
}
]
},
"receipt": <HEROJSON>
}

ReceiptHero JSON as <HeroJSON>

Response OK

HTTP 200 OK
Content-Type: application/json