Api Docs

Deals

Deal by ID
National Deal
Location Deal
Location Deal with Main Deal selected
Location and Category Deal
Location and Category Deal with Main Deal selected
Location, Category, and Subcategory Deal
Location and related Subcategory Deal

Others

Healthcheck
Invasive Health
Locations
Category
Naivgation by location
SiteDNS by id
SiteDNS by domain
Shortcut by id
Shortcut by path
Static Page by id
Static Page by url
Robots for Robots.txt

Users

POST Subscribe - /v1/email
{
    "email": "[email protected]",
    "location": "london",
    "subscriptionSource": "xyz"
}
DELETE Unsubscribe - /v1/email
{
    "locationAuthToken": "fbe6a4d7-340e-4287-818c-34c3eb8d4b6b"
}
Hit deal: POST /v1/deal/{locationShortName}/{dealId}/hit
No body. Accepted headers:
    brand
    webapp (true/false)
User Details: GET /v1/user
No body. Accepted header/cookie:
    apiAuthToken
Account Status: POST /v1/user/account-status
Body
{
    "email": "[email protected]"
}
User registration: POST /v1/user
Accepts: application/json, text/json
Body:
{
    "title": "ms"
    "firstName": "test"
    "surname": "user"
    "addressLine1": "swan yard"
    "addressLine2": ""
    "city": "london"
    "postCode": "N1 1SD"
    "email": "[email protected]"
    "emailConfirmation": "[email protected]"
    "password": "pass"
    "passwordConfirmation": "pass"
    "rejectDMGTContact": false
    "location": "london"
}
Response:
    201 - User registered. Response includes authToken and customerToken
    400 - Invalid data (user already registered, wrong confirmation data, wrong format, empty required fields, etc.)
Login with email: POST /v1/login
Accepts: application/json, text/json
Body:
{
    "username": "[email protected]"
    "password": "pass"
    "rememberMe": false
}
Response:
    200 - Login successful. Response includes authToken and customerToken
    401 - Invalid credentials
Login with Facebook: POST /v1/loginfacebook
Accepts: application/json, text/json
Body:
{
    "fbUserId": ""
    "fbAccessToken": ""
}
Response:
    200 - Login successful. Response includes authToken
    401 - Invalid credentials

MyAccount - voucher

List of vouchers:
    First page: GET /v1/voucher
    Set page: GET /v1/voucher/{page}
    Set page and page size: GET /v1/voucher/{page}/{pageSize}
No body. Accepted header/cookie:
    apiAuthToken
Default page size is 20. First page is 1 (0 will be considered as 1).
Print voucher: GET /v1/voucher/print/{voucherCode}
No body. Accepted header/cookie:
    apiAuthToken