Alpha API Documentation

Getting started

Required headers

The API is a REST API using JSON to exchange data. You will be provided the base URL as well as an API key to use.

You will need to set the following HTTP headers as follows:

Acceptapplication/json
Content-Typeapplication/json
AuthorizationBearer YOUR_API_KEY_HERE

If your API key is incorrect, you will get a 401 Unauthorized response.

Security warning

The API key you are provided must be kept private and not exposed to end users.

Therefore, this API must not be consumed client side, it must be done server side.


Base URL

Along with your API key, you will be provided with a base URL in the format of:

https://xxxxxx.reward-store.co.uk/
or… 
https://xxxxxx.staging.reward-store.co.uk/

Endpoints

The URL to interact with the API is {base url}/api/v1/{endpoint}.
For example: https://xxxxxx.reward-store.co.uk/api/v1/recipients/

The endpoint URL to use is detailed on each of the endpoint pages.


HTTP Methods

The GET POST PUT and DELETE methods are used in this API.

If your HTTP library does not support methods other than GET and POST, use the POST method and specify the method in a _method POST field.
However, you may wish to instead use a more capable HTTP library.


Output

Output from the API is in JSON format. Always use a JSON parser to process it, do not attempt to manually process the output.

Additional parameters to the output may be added at any time. Do not rely on the number of parameters.

Languages

Various endpoints have an option to specify a language for some fields, for example the name field for Products and Categories.

The following language options are available:

en
English
fr
French (Français)
de
German (Deutsch)
es
Spanish (Español)
it
Italian (Italiano)
nl
Dutch (Nederlands)
pt
Portuguese (Português)
ru
Russian (Русский язык)
tr
Turkish (Türkçe)

Currencies

Depending on how your store is set up, product queries may return a currency field.

The following currencies are available:

gbp
Pound sterling £
eur
Euro
usd
United States dollar $
rub
Russian ruble
try
Turkish lira