API

List voucher templates

Lists the voucher templates of a company.

GET/v1/marketplace/companies/{company_id}/voucher_templates

Authorization

Marketplace-Authentication

Authorization<token>

The Noona Marketplace API uses an Authorization header with JWT Bearer tokens to authenticate marketplace users.

In: header

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/marketplace/companies/string/voucher_templates"
[
  {
    "id": "7awdXwZoedakjad37a",
    "type": "amount",
    "title": "Voucher for the men's haircut",
    "description": "Please note that the voucher is only valid between 10:00 and 14:00, Monday to Friday.",
    "marketplace_description": "A short form description displayed on the Noona marketplace.",
    "event_type": "string",
    "variation_id": "7awdXwZoedakjad37a",
    "company": "string",
    "number_of_guests": 2,
    "currency": "ISK",
    "amount": 10000,
    "value": 12500,
    "expiration_months_after_purchase": 12,
    "images": [
      {
        "thumb": "https://placekitten.com/200/200",
        "image": "https://placekitten.com/200/300",
        "type": "thumbnail",
        "public_id": "https://placekitten.com/200/300"
      }
    ],
    "preview_image": {
      "thumb": "https://placekitten.com/200/200",
      "image": "https://placekitten.com/200/300",
      "type": "thumbnail",
      "public_id": "https://placekitten.com/200/300"
    },
    "primary_color": "#0f0f0f",
    "sessions_total": 5,
    "is_promoted": true,
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
]