GET /receipts/{id}ΒΆ
Get a single receipt.
Path parameters:
Name |
Type |
Description |
---|---|---|
|
string, required |
the unique receipt identifier |
Query parameters:
Name |
Type |
Description |
---|---|---|
|
boolean, optional, default: false |
readable output formatting |
Example request:
GET /receipts/513e2391ee5e525ff9000000 HTTP/1.1
Host: api.ereceipts.co.uk
Accept: application/json
Example response:
See Receipt Object for a description of the format.
HTTP/1.1 200 OK
Content-Length: 1128
Content-Type: application/json; charset=UTF-8
{
"id": "513e2391ee5e525ff9000000",
"identifier": "990000000001",
"incomplete": false,
"items": [
{
"discounts": [],
"name": "Cufflinks",
"net": null,
"properties": {
"category": "Accessories"
},
"quantity": 1,
"total": 10.0,
"vat": {
"amount": 0.0,
"rate": 0.0
}
}
],
"localtime": "2013-04-30T14:57:00+01:00",
"net": null,
"payments": [
{
"amount": 10.0,
"method": "cash"
}
],
"pos_data_ids": [
"52a877d0d535cf5070e84e34"
],
"properties": {},
"retailer": {
"name": "Paperless Fashion",
"vatno": null
},
"store": {
"address": [
"61 Hatton Garden"
],
"city": "London",
"country": "GBR",
"name": "Paperless Fashion Clerkenwell",
"phone": "+440000000000",
"postcode": "EC1N 8LS",
"properties": {}
},
"store_reference": "1",
"till_uuid": "03b8fc59-cd41-4880-810c-543a34cc0528",
"timestamp": "2013-04-30T13:57:00+00:00",
"total": 10.0,
"transaction_id": "0011120008",
"vat": [
{
"amount": 0.0,
"rate": 0.0
}
]
}