API

List vouchers

Lists the vouchers for a company. Check-in devices may only filter service vouchers by customer and event types.

GET/v1/hq/companies/{company_id}/vouchers
AuthorizationBearer <token>

Bearer token issued to a paired device; an operation's scopes list the device types allowed to call it, such as checkin.

In: header

Scope: checkin

Path Parameters

company_id*string

Company ID

Query Parameters

filter?
sort?
pagination?
select?array<string>
expand?array<string>

Response Body

application/json

curl -X GET "https://api.noona.is/v1/hq/companies/string/vouchers"
[
  {
    "id": "7awdXwZoedakjad37a",
    "currency": "ISK",
    "amount": 3990,
    "data": {
      "type": "service",
      "sessions_used": 0,
      "sessions_total": 0,
      "event_type_name": "Quicky Haircut",
      "event_type_id": "d0a9w8da09w8dindwa",
      "number_of_guests": 2,
      "voucher_template": "7awdXwZoedakjad37a",
      "voucher_template_amount": 0.1,
      "voucher_template_value": 0.1
    },
    "code": "A328DB",
    "color": "#0f0f0f",
    "message": "You deserve to relax a bit!",
    "status": "never_used",
    "name": "Jon Snow",
    "phone_country_code": "354",
    "phone_number": "7134124",
    "email": "[email protected]",
    "marketplace_user": "string",
    "customer": {
      "id": "string"
    },
    "company": "string",
    "template": "string",
    "expiration": "2022-08-24T14:15:22Z",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "deleted_at": "2019-08-24T14:15:22Z",
    "transactions": [
      {
        "amount": 0.1,
        "created_at": "2019-08-24T14:15:22Z",
        "created_by": "string",
        "origin": "marketplace"
      }
    ],
    "attribution": {
      "type": "ad",
      "ad": "string",
      "ad_campaign": "string",
      "placement": "discovery"
    }
  }
]
Empty
Empty
Empty
Empty
Empty