API

Get voucher template

Gets a single voucher template.

GET/v1/hq/voucher_templates/{voucher_template_id}
AuthorizationBearer <token>

The Noona HQ API uses Bearer token for authentication.

Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.

Authorization: Bearer your-token

In: header

Path Parameters

voucher_template_id*string

Voucher Template ID

Query Parameters

select?array<string>

Response Body

application/json

curl -X GET "https://api.noona.is/v1/hq/voucher_templates/string"
{
  "id": "7awdXwZoedakjad37a",
  "type": "amount",
  "title": "Voucher for the men's haircut",
  "title_translations": {
    "is": "King Accounting tenging",
    "fr": "Connexion King Accounting"
  },
  "description": "Please note that the voucher is only valid between 10:00 and 14:00, Monday to Friday.",
  "description_translations": {
    "is": "King Accounting tenging",
    "fr": "Connexion King Accounting"
  },
  "marketplace_description": "A short form description displayed on the Noona marketplace.",
  "marketplace_description_translations": {
    "is": "King Accounting tenging",
    "fr": "Connexion King Accounting"
  },
  "event_type": "string",
  "variation_id": "7awdXwZoedakjad37a",
  "company": "7awdXwZoedakjad37a",
  "number_of_guests": 2,
  "currency": "ISK",
  "amount": 10000,
  "value": 12500,
  "sessions_total": 5,
  "marketplace": true,
  "expiration_months_after_purchase": 12,
  "images": [
    {
      "thumb": "https://placekitten.com/200/200",
      "image": "https://placekitten.com/200/300",
      "public_id": "https://placekitten.com/200/300",
      "type": "thumbnail",
      "provider": "cloudinary",
      "width": 200,
      "height": 300,
      "bytes": 95849
    }
  ],
  "primary_color": "#0f0f0f",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
Empty