These docs are for v1.0. Click to read the latest docs for v2.1.

Authentication

Vouchery API supports two authentication methods:

  1. Login and password auth using HTTP Basic
  2. API key auth using HTTP Bearer token

To obtain access to Vouchery API please contact us by sending an email to [email protected].

Basic authentication

To use basic authentication scheme you need to pass a following header. <value> needs to be base64 encoded string <username>:<password>, e.g. user:password will give a value of dXNlcjpwYXNzd29yZA==

Authorization: Basic <value>

API key authentication

To use bearer authentication scheme you need to pass a following header. <api_key> is an API key you have received from Vouchery.

Authorization: Bearer <api_key>