Receipts

A service which allows to manage user receipts. All Receipts endpoints have path prefix /receipts-service.

Get receipt

Get user receipt list.

GET /receipts-service/user/receipt
Parameters
Name Type Description
authenticateit_identity_ticket header Required: Session's ticket
chunk_id string Chunk Id
Example Response
{
    "receipts": [
        {
            "accuracy": "14,4549999237061",
            "client_ip": "127.0.0.1",
            "latitude": "-37838100",
            "location_name": "Super store location",
            "longitude": "144974760",
            "receipt": [
                "https://dev-cdn.shping.com/2019/1/28/5efe62a4-db8c-47ab-94ea-3f43e8cd62e7.jpg"
            ],
            "receipt_id": "90c30fd6-0fd4-4161-aec4-6b8370525472",
            "store_id": "Super store id",
            "ts": "2019-06-11T20:25:14.703Z"
        }
    ],
    "next": "urn:authenticateit:receipts_chunk:7501d972-fe16-42ea-974b-a9d484fa3dae"
}

Add new receipt

Add new user receipt information.

POST /receipts-service/user/receipt
Parameters
Name Type Description
authenticateit_identity_ticket header Required: Session's ticket
accuracy string Required: Accuracy
longitude string Required: Longitude
latitude string Required: Latitude
receipt array Required: Array of images links
store_id string Required: Store ID
location_name string Required: Store name
country_iso string Country ISO code
Example body
{
    "accuracy": "14,4549999237061",
    "longitude": "144974757",
    "latitude": "-37838094",
    "receipt": [
        "https://dev-cdn.shping.com/2019/1/28/5efe62a4-db8c-47ab-94ea-3f43e8cd62e7.jpg"
    ],
    "store_id": "53ehdb5e67e67",
    "location_name": "Store name",
    "country_iso": "036"
}
Example Response
{
    "id": "e2af5961-e74d-41ca-a998-a782a7a90807"
}

Delete receipt

Delete user receipt.

DELETE /receipts-service/user/receipt/:id
Parameters
Name Type Description
authenticateit_identity_ticket header Required: Session's ticket
id string user receipt id (guid)
Example Response
{
    "result": "ok"
}

results matching ""

    No results matching ""