Email linking Receipt API

This API is for Merchants that use ReceiptHero email linking. This means merchants that already know their customers email address and use that as user identification.

Email 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": {
"customer_email": "customer@email.com"
},
"receipt": {
<HeroJSON>
}
}

ReceiptHero JSON as <HeroJSON>

Response OK

HTTP 200 OK
Content-Type: application/json

Response Not Found

If user is not found on ReceiptHero

HTTP 404 Not Found
Content-Type: application/json
{"error":"User not found","decription":""}