POST /pos/dataΒΆ

Post a pos data packet.

Note

Use of this resource for new integrations is discouraged in favour of the POST /pos/receipts resource.

Body parameters:

Name

Type

Description

source_id

string, required

the identifier of the pos entry source

source_read

string, required

the pos entry creation timestamp, formatted as an ISO 8601 date

entry_id

string, required

the identifier of this pos entry

store_reference

integer or string, required

the store identifier

till_id

string, required

the descriptive identifier of the till

till_uuid

string, required

a till UUID

receipt

string, required

base64-encoded raw receipt data

duplicate

boolean, optional, default: false

signifies that this receipt is a duplicate - for details, see Duplicate Receipts

external_id

string, optional

a UUIDv4, as defined in RFC 4122

attachments

mapping of labels to Attachments, optional

see Attachment Object

Example request:

POST /pos/data HTTP/1.1
Host: api.ereceipts.co.uk
Accept: application/json
Content-Length: 2259
Content-Type: application/json

{
  "entry_id": "973f34a6-8734-a7fb-43d6-65105ebe6589",
  "receipt": "ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDQoNCiAgICAgICAgICAgICAgICAgICAgICAgIExvbmRvbiAgICAgICAgICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgM3JkIGZsb29yLCAyNTJiIEdyYXkncyBJbm4gUm9hZCAgICAgICAgICAgDQogICAgICAgICAgICAgICAgICBMb25kb24sICAgV0MxWCA4SlQgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgMDIwIDc0MDAgMDI0MCAgICAgICAgICAgICAgICAgICAgIA0KDQoNCht8YkMbfHJ2Qxt8MmhDG3xiQxt8cnZDG3wyaEMgICAgU2FsZXMgUmVjZWlwdCAgIA0KDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICANClNhbGVzOiAgICAgICAgICAgICAgICAgICAgIDAwMDEwMDAxMDEwMDAwMTY5ICAgICAgICAgIA0KRGF0ZTogICAwOS8wOC8yMDE4ICAgICAgICAgVGltZTogIDEyOjA2OjQyICAgICAgICAgICAgDQpDYXNoaWVyOiAgIDEgICAgICAgICAgICAgICBSZWdpc3RlciAjOiAgIDEgICAgICAgICAgICANCg0KDQpJdGVtICAgICAgICAgICAgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgQW1vdW50DQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQo4ICAgICAgICAgICAgICAgWHRyZW1lIEhhbW1lciBEcmlsbCAgICAgICAgICAgICAgxZM1Mi40OQ0KDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA9PT09PT09PT09PT09PT09DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBTdWIgVG90YWwgICAgICAgICAgxZM0My43NA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU2FsZXMgVGF4ICAgICAgICAgICDFkzguNzUNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBUb3RhbCAgICAgICAgICDFkzUyLjQ5DQoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgQ2FzaCBUZW5kZXJlZCAgICAgICAgICDFkzUzLjAwDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2hhbmdlIENhc2ggICAgICAgICAgIMWTMC41MQ0KDQoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIA0KVkFUIE51bWJlcjogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDQoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgVkFUIFRvdGFsIDogICAgICAgICAgIMWTOC43NQ0KDQogICAgICAgICAgICAgICAgVGhhbmsgeW91IGZvciBzaG9wcGluZyAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAgICAgIExvbmRvbiAgICAgICAgICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgV2UgaG9wZSB5b3UnbGwgY29tZSBiYWNrIHNvb24hICAgICAgICAgICAgDQoNCht8NWxGG3wxMDBQ",
  "source_id": "SomeSourceID",
  "source_read": "2018-01-01T00:04:01.486Z",
  "store_reference": "100",
  "till_id": "Till 1",
  "till_uuid": "bbb5c4d8-3e22-5187-36fd-1c28e13ebe67"
}

Example response:

HTTP/1.1 204 No Content