Skip to content

Voucher-V1

Overview

An original Huggg Voucher (the final-state of a redeemed huggg). Any brand (or product within a brand) that has an integration_id: 1, 2, 3, 4, 5 and 6 will produce Voucher Entities of this type.

Example Voucher

This is an example of a Voucher with a Code and a URL which would be returned from the /api/v2/hugggs/{hugggId}/voucher endpoint. This returns a unique code which you should render as a QR code and a text version of the code. The code is found in the data path code where here it has a value of TEST_CODE.

1
2
3
4
5
6
7
8
9
    {
        "id": "ee70ad0d-e9bd-11e9-8b1c-022d6c01c1ae",
        "code": "TEST_CODE",
        "huggg_id": "0681abac-d98e-43dd-be45-fbd53e3c7074",
        "segment_id": "761299e9-f34d-11e8-80cd-02e611b48058",
        "expiry_date": "2021-10-31 23:59:00",
        "created_at": null,
        "updated_at": "2020-08-20 11:58:39"
    }