{
    "swagger": "2.0",
    "info": {
        "title": "HotspotSystem API",
        "description": "TODO",
        "version": "2.0.0"
    },
    "host": "api.hotspotsystem.com",
    "schemes": [
        "https"
    ],
    "basePath": "/v2.0",
    "produces": [
        "application/json"
    ],
    "security": [
        {
            "ApiKeyInHeader": []
        }
    ],
    "paths": {
        "/ping": {
            "get": {
                "description": "Find out whether the api is reachable",
                "operationId": "getPing",
                "tags": [
                    "misc"
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "schema": {
                            "title": "Pong",
                            "type": "object",
                            "properties": {
                                "ping": {
                                    "type": "string",
                                    "description": "The response is always \"pong\"."
                                }
                            }
                        },
                        "examples": {
                            "application/json": {
                                "ping": "pong"
                            }
                        }
                    }
                }
            }
        },
        "/me": {
            "get": {
                "description": "Verify the resource owner's credentials",
                "operationId": "getMe",
                "tags": [
                    "user"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "schema": {
                            "title": "Owner",
                            "type": "object",
                            "properties": {
                                "userId": {
                                    "type": "number"
                                },
                                "operator": {
                                    "type": "string"
                                }
                            }
                        },
                        "examples": {
                            "application/json": {
                                "userId": 1,
                                "operator": "John Doe"
                            }
                        }
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/locations": {
            "get": {
                "description": "Get a list of the resource owner's locations",
                "operationId": "getLocations",
                "tags": [
                    "locations"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/LocationSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/customers": {
            "get": {
                "description": "Get a list of the resource owner's customers",
                "operationId": "getCustomers",
                "tags": [
                    "customers"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/CustomerSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/subscribers": {
            "get": {
                "description": "Get a list of the resource owner's subscribers",
                "operationId": "getSubscribers",
                "tags": [
                    "subscribers"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/SubscriberSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/vouchers": {
            "get": {
                "description": "Get a list of the resource owner's vouchers",
                "operationId": "getVouchers",
                "tags": [
                    "vouchers"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/VoucherSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/transactions/mac": {
            "get": {
                "description": "Get a list of the resource owner's mac transactions",
                "operationId": "getMacTransactions",
                "tags": [
                    "transactions"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/MacTransactionSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/transactions/voucher": {
            "get": {
                "description": "Get a list of the resource owner's voucher transactions",
                "operationId": "getVoucherTransactions",
                "tags": [
                    "transactions"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/VoucherTransactionSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/transactions/social": {
            "get": {
                "description": "Get a list of the resource owner's social transactions",
                "operationId": "getSocialTransactions",
                "tags": [
                    "transactions"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/SocialTransactionSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/transactions/paid": {
            "get": {
                "description": "Get a list of the resource owner's paid transactions",
                "operationId": "getPaidTransactions",
                "tags": [
                    "transactions"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/PaidTransactionSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/locations/options": {
            "get": {
                "description": "Get a list of the resource owner's locations as options",
                "operationId": "getLocationsAsOptions",
                "tags": [
                    "locations"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "schema": {
                            "title": "ArrayOfLocationsAsOptions",
                            "type": "object",
                            "properties": {
                                "items": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "title": "Option",
                                        "properties": {
                                            "id": {
                                                "type": "string"
                                            },
                                            "name": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                }
                            }
                        },
                        "examples": {
                            "application/json": {
                                "items": [
                                    {
                                        "id": "1",
                                        "name": "Location 1"
                                    }
                                ]
                            }
                        }
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/locations/{locationId}/customers": {
            "get": {
                "description": "Get a list of the resource owner's customers at the specified location",
                "operationId": "getCustomersByLocationId",
                "tags": [
                    "locations",
                    "customers"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "locationId": null,
                        "$ref": "#/parameters/LocationID"
                    },
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/CustomerSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/locations/{locationId}/subscribers": {
            "get": {
                "description": "Get a list of the resource owner's subscribers at the specified location",
                "operationId": "getSubscribersByLocationId",
                "tags": [
                    "locations",
                    "subscribers"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "locationId": null,
                        "$ref": "#/parameters/LocationID"
                    },
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/SubscriberSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/locations/{locationId}/vouchers": {
            "get": {
                "description": "Get a list of the resource owner's vouchers at the specified location",
                "operationId": "getVouchersByLocationId",
                "tags": [
                    "locations",
                    "vouchers"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "locationId": null,
                        "$ref": "#/parameters/LocationID"
                    },
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/VoucherSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/locations/{locationId}/transactions/mac": {
            "get": {
                "description": "Get a list of the resource owner's mac transactions at the specified location",
                "operationId": "getMacTransactionsByLocationId",
                "tags": [
                    "locations",
                    "transactions"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "locationId": null,
                        "$ref": "#/parameters/LocationID"
                    },
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/MacTransactionSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/locations/{locationId}/transactions/voucher": {
            "get": {
                "description": "Get a list of the resource owner's voucher transactions at the specified location",
                "operationId": "getVoucherTransactionsByLocationId",
                "tags": [
                    "locations",
                    "transactions"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "locationId": null,
                        "$ref": "#/parameters/LocationID"
                    },
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/VoucherTransactionSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/locations/{locationId}/transactions/social": {
            "get": {
                "description": "Get a list of the resource owner's social transactions at the specified location",
                "operationId": "getSocialTransactionsByLocationId",
                "tags": [
                    "locations",
                    "transactions"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "locationId": null,
                        "$ref": "#/parameters/LocationID"
                    },
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/SocialTransactionSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        },
        "/locations/{locationId}/transactions/paid": {
            "get": {
                "description": "Get a list of the resource owner's paid transactions at the specified location",
                "operationId": "getPaidTransactionsByLocationId",
                "tags": [
                    "locations",
                    "transactions"
                ],
                "security": [
                    {
                        "ApiKeyInHeader": []
                    }
                ],
                "parameters": [
                    {
                        "locationId": null,
                        "$ref": "#/parameters/LocationID"
                    },
                    {
                        "field": null,
                        "$ref": "#/parameters/Fields"
                    },
                    {
                        "sort": null,
                        "$ref": "#/parameters/Sort"
                    },
                    {
                        "limit": null,
                        "$ref": "#/parameters/Limit"
                    },
                    {
                        "offset": null,
                        "$ref": "#/parameters/Offset"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/PaidTransactionSuccess"
                    },
                    "500": {
                        "$ref": "#/responses/GeneralError"
                    }
                }
            }
        }
    },
    "tags": [
        {
            "name": "user",
            "description": "User"
        },
        {
            "name": "locations",
            "description": "Locations"
        },
        {
            "name": "customers",
            "description": "Cutomers"
        },
        {
            "name": "subscribers",
            "description": "Subscribers"
        },
        {
            "name": "vouchers",
            "description": "Vouchers"
        },
        {
            "name": "transactions",
            "description": "Transactions"
        },
        {
            "name": "misc",
            "description": "Miscellaneous"
        }
    ],
    "securityDefinitions": {
        "ApiKeyInHeader": {
            "type": "apiKey",
            "in": "header",
            "name": "sn-apikey",
            "description": "The resource owner's API key."
        }
    },
    "parameters": {
        "LocationID": {
            "in": "path",
            "name": "locationId",
            "type": "string",
            "required": true,
            "description": "The ID of a location."
        },
        "Fields": {
            "in": "query",
            "name": "fields",
            "type": "string",
            "description": "A comma separated list of names of the response object's properties to filter by."
        },
        "Sort": {
            "in": "query",
            "name": "sort",
            "type": "string",
            "description": "One of the response object's property names to sort by. Prepend a negative sign for a descending order."
        },
        "Limit": {
            "in": "query",
            "name": "limit",
            "type": "string",
            "description": "The number of items to paginate to if the result contains multiple items."
        },
        "Offset": {
            "in": "query",
            "name": "offset",
            "type": "string",
            "description": "A zero based number of the page to show if it was paginated by the limit query parameter."
        }
    },
    "responses": {
        "GeneralError": {
            "description": "General error",
            "schema": {
                "$ref": "#/definitions/Error"
            },
            "examples": {
                "application/json": {
                    "error": "Internal Server Error"
                }
            }
        },
        "LocationSuccess": {
            "description": "Successful response",
            "headers": {
                "Link": {
                    "description": "Pagination info. Follow these values instead of constructing your own URLs.",
                    "type": "array",
                    "collectionFormat": "csv",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "schema": {
                "$ref": "#/definitions/ArrayOfLocations"
            },
            "examples": {
                "application/json": {
                    "metadata": {
                        "total_count": 1
                    },
                    "items": [
                        {
                            "id": "1",
                            "name": "Location 1"
                        }
                    ]
                }
            }
        },
        "CustomerSuccess": {
            "description": "Successful response",
            "schema": {
                "$ref": "#/definitions/ArrayOfCustomers"
            },
            "headers": {
                "Link": {
                    "description": "Pagination info. Follow these values instead of constructing your own URLs.",
                    "type": "array",
                    "collectionFormat": "csv",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "examples": {
                "application/json": {
                    "metadata": {
                        "total_count": 1
                    },
                    "items": [
                        {
                            "id": "123456",
                            "user_name": "EuropeHQ",
                            "name": "Europe HQ",
                            "email": "help@hotspotsystem.com",
                            "company_name": "Hotspot System Ltd",
                            "address": "Liszt Ferenc ter 10",
                            "city": "Budapest",
                            "state": null,
                            "zip": "H-1061",
                            "country_code": "HU",
                            "phone": "+3613010817",
                            "social_network": null,
                            "social_id": null,
                            "social_username": null,
                            "social_link": null,
                            "social_gender": null,
                            "social_age_range": null,
                            "social_followers_count": null,
                            "registered_at": "2016-01-15 08:00:00"
                        }
                    ]
                }
            }
        },
        "SubscriberSuccess": {
            "description": "Successful response",
            "schema": {
                "$ref": "#/definitions/ArrayOfSubscribers"
            },
            "headers": {
                "Link": {
                    "description": "Pagination info. Follow these values instead of constructing your own URLs.",
                    "type": "array",
                    "collectionFormat": "csv",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "examples": {
                "application/json": {
                    "metadata": {
                        "total_count": 1
                    },
                    "items": [
                        {
                            "id": "123456",
                            "user_name": "EuropeHQ",
                            "name": "Europe HQ",
                            "email": "help@hotspotsystem.com",
                            "company_name": "Hotspot System Ltd",
                            "address": "Liszt Ferenc ter 10",
                            "city": "Budapest",
                            "state": null,
                            "zip": "H-1061",
                            "country_code": "HU",
                            "phone": "+3613010817",
                            "social_network": null,
                            "social_id": null,
                            "social_username": null,
                            "social_link": null,
                            "social_gender": null,
                            "social_age_range": null,
                            "social_followers_count": null,
                            "registered_at": "2016-01-15 08:00:00"
                        }
                    ]
                }
            }
        },
        "VoucherSuccess": {
            "description": "Successful response",
            "schema": {
                "$ref": "#/definitions/ArrayOfVouchers"
            },
            "headers": {
                "Link": {
                    "description": "Pagination info. Follow these values instead of constructing your own URLs.",
                    "type": "array",
                    "collectionFormat": "csv",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "examples": {
                "application/json": {
                    "metadata": {
                        "total_count": 1
                    },
                    "items": [
                        {
                            "serial": "1229604629-75349",
                            "voucher_code": "1h-296823",
                            "limit_tl": 0,
                            "simultaneous_use": 1,
                            "limit_dl": 0,
                            "limit_ul": 0,
                            "usage_exp": null,
                            "validity": 60,
                            "price_enduser": 600,
                            "currency": "HUF"
                        }
                    ]
                }
            }
        },
        "MacTransactionSuccess": {
            "description": "Successful response",
            "schema": {
                "$ref": "#/definitions/ArrayOfMacTransactions"
            },
            "headers": {
                "Link": {
                    "description": "Pagination info. Follow these values instead of constructing your own URLs.",
                    "type": "array",
                    "collectionFormat": "csv",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "examples": {
                "application/json": {
                    "metadata": {
                        "total_count": 1
                    },
                    "items": [
                        {
                            "id": 552,
                            "operator": "jgonda",
                            "location_id": 1,
                            "user_name": "0C-74-C2-82-FE-E0",
                            "action_date_gmt": "2016-06-20T12:23:24.000Z",
                            "package_id": "d2",
                            "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B329",
                            "customer": "badilovskii ",
                            "newsletter": 0,
                            "company_name": null,
                            "email": "safar-72@mail.ru",
                            "address": null,
                            "city": null,
                            "state": null,
                            "zip": null,
                            "country_code": null,
                            "phone": null,
                            "q1": null,
                            "a1": "4107",
                            "q2": null,
                            "a2": null,
                            "q3": null,
                            "a3": null,
                            "q4": null,
                            "a4": null,
                            "q5": null,
                            "a5": null
                        }
                    ]
                }
            }
        },
        "VoucherTransactionSuccess": {
            "description": "Successful response",
            "schema": {
                "$ref": "#/definitions/ArrayOfVoucherTransactions"
            },
            "headers": {
                "Link": {
                    "description": "Pagination info. Follow these values instead of constructing your own URLs.",
                    "type": "array",
                    "collectionFormat": "csv",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "examples": {
                "application/json": {
                    "metadata": {
                        "total_count": 1
                    },
                    "items": [
                        {
                            "id": 908,
                            "operator": "jgonda",
                            "location_id": 1,
                            "user_name": "12h-1617064",
                            "customer": null,
                            "action_date_gmt": "2016-05-28T15:29:01.000Z",
                            "amount": 0,
                            "currency": "BRL",
                            "user_agent": "Mozilla/5.0 (Linux; Android 4.4.2; GT-I9192 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36",
                            "newsletter": 0,
                            "company_name": null,
                            "email": null,
                            "address": null,
                            "city": null,
                            "state": null,
                            "zip": null,
                            "country_code": null,
                            "phone": "+5521979115567",
                            "language": null,
                            "smscountry": "BR"
                        }
                    ]
                }
            }
        },
        "SocialTransactionSuccess": {
            "description": "Successful response",
            "schema": {
                "$ref": "#/definitions/ArrayOfSocialTransactions"
            },
            "headers": {
                "Link": {
                    "description": "Pagination info. Follow these values instead of constructing your own URLs.",
                    "type": "array",
                    "collectionFormat": "csv",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "examples": {
                "application/json": {
                    "metadata": {
                        "total_count": 1
                    },
                    "items": [
                        {
                            "id": 550,
                            "operator": "jgonda",
                            "location_id": 1,
                            "user_name": "EC-9B-F3-8F-C6-7A_fb10208986547397257_ggrecords_1",
                            "action_date_gmt": "2016-06-20T12:23:23.000Z",
                            "package_id": "d3",
                            "user_agent": "Mozilla/5.0 (Linux; Android 6.0.1; SM-G925I Build/MMB29K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.81 Mobile Safari/537.36",
                            "customer": "Ana Trejo",
                            "newsletter": 0,
                            "company_name": null,
                            "email": "avestidello@hotmail.com",
                            "address": null,
                            "city": null,
                            "state": null,
                            "zip": null,
                            "country_code": null,
                            "phone": null,
                            "social_id": "10208986547397257",
                            "social_username": null,
                            "social_link": null,
                            "social_gender": null,
                            "social_age_range": "21-",
                            "social_followers_count": null,
                            "social_network": "facebook"
                        }
                    ]
                }
            }
        },
        "PaidTransactionSuccess": {
            "description": "Successful response",
            "schema": {
                "$ref": "#/definitions/ArrayOfPaidTransactions"
            },
            "headers": {
                "Link": {
                    "description": "Pagination info. Follow these values instead of constructing your own URLs.",
                    "type": "array",
                    "collectionFormat": "csv",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "examples": {
                "application/json": {
                    "metadata": {
                        "total_count": 1
                    },
                    "items": [
                        {
                            "id": 890,
                            "operator": "jgonda",
                            "location_id": 1,
                            "user_name": "mmitchell92",
                            "customer": "Mark mitchell",
                            "action_date_gmt": "2016-05-28T15:35:56.000Z",
                            "amount": 7.5,
                            "currency": "EUR",
                            "user_agent": "Mozilla/5.0 (iPad; CPU OS 9_3_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13F69",
                            "newsletter": 0,
                            "company_name": null,
                            "email": "Bodyshop.louise@gmail.com",
                            "address": null,
                            "city": null,
                            "state": null,
                            "zip": null,
                            "country_code": null,
                            "phone": "447850477290",
                            "language": "en",
                            "smscountry": null
                        }
                    ]
                }
            }
        }
    },
    "definitions": {
        "Error": {
            "type": "object",
            "properties": {
                "error": {
                    "type": "string",
                    "description": "Error string"
                }
            }
        },
        "Metadata": {
            "type": "object",
            "properties": {
                "total_count": {
                    "type": "number",
                    "description": "Length of the array."
                }
            }
        },
        "Location": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "description": "Unique identifier of the location."
                },
                "name": {
                    "type": "string",
                    "description": "Name of the location."
                }
            }
        },
        "ArrayOfLocations": {
            "type": "object",
            "required": [
                "items"
            ],
            "properties": {
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Location"
                    }
                }
            }
        },
        "Customer": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "description": "Unique identifier of the user."
                },
                "user_name": {
                    "type": "string",
                    "description": "User name of the person."
                },
                "name": {
                    "type": "string",
                    "description": "Full name of the person."
                },
                "email": {
                    "type": "string",
                    "description": "E-mail address of the user."
                },
                "company_name": {
                    "type": "string",
                    "description": "Type of business entity associated with the person."
                },
                "address": {
                    "type": "string",
                    "description": "Street name with house number."
                },
                "city": {
                    "type": "string",
                    "description": "City name."
                },
                "state": {
                    "type": "string",
                    "description": "County name."
                },
                "zip": {
                    "type": "string",
                    "description": "Postal code."
                },
                "country_code": {
                    "type": "string",
                    "description": "Two-letter country code."
                },
                "phone": {
                    "type": "string",
                    "description": "Cell phone number of the user."
                },
                "social_network": {
                    "type": "string",
                    "description": "Name of the social network that the user is registered with."
                },
                "social_id": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "social_username": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "social_link": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "social_gender": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "social_age_range": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "social_followers_count": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "registered_at": {
                    "type": "string",
                    "description": "Date and time of the creation of the user."
                }
            }
        },
        "ArrayOfCustomers": {
            "type": "object",
            "required": [
                "items"
            ],
            "properties": {
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Customer"
                    }
                }
            }
        },
        "Subscriber": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "description": "Unique identifier of the user."
                },
                "user_name": {
                    "type": "string",
                    "description": "User name of the person."
                },
                "name": {
                    "type": "string",
                    "description": "Full name of the person."
                },
                "email": {
                    "type": "string",
                    "description": "E-mail address of the user."
                },
                "company_name": {
                    "type": "string",
                    "description": "Type of business entity associated with the person."
                },
                "address": {
                    "type": "string",
                    "description": "Street name with house number."
                },
                "city": {
                    "type": "string",
                    "description": "City name."
                },
                "state": {
                    "type": "string",
                    "description": "County name."
                },
                "zip": {
                    "type": "string",
                    "description": "Postal code."
                },
                "country_code": {
                    "type": "string",
                    "description": "Two-letter country code."
                },
                "phone": {
                    "type": "string",
                    "description": "Cell phone number of the user."
                },
                "social_network": {
                    "type": "string",
                    "description": "Name of the social network that the user is registered with."
                },
                "social_id": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "social_username": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "social_link": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "social_gender": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "social_age_range": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "social_followers_count": {
                    "type": "string",
                    "description": "Social network specific parameter."
                },
                "registered_at": {
                    "type": "string",
                    "description": "Date and time of the creation of the user."
                }
            }
        },
        "ArrayOfSubscribers": {
            "type": "object",
            "required": [
                "items"
            ],
            "properties": {
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Subscriber"
                    }
                }
            }
        },
        "Voucher": {
            "type": "object",
            "properties": {
                "serial": {
                    "type": "string",
                    "description": "Unique identifier of the voucher."
                },
                "voucher_code": {
                    "type": "string",
                    "description": "Users must type in this additional code."
                },
                "limit_tl": {
                    "type": "number",
                    "description": "Traffic limit in bytes. If the return value is -1, no location context is set."
                },
                "simultaneous_use": {
                    "type": "number",
                    "description": "The number of simultaneous connections allowed."
                },
                "limit_dl": {
                    "type": "number",
                    "description": "Download limit in bytes. If the return value is -1, no location context is set."
                },
                "limit_ul": {
                    "type": "number",
                    "description": "Upload limit in bytes. If the return value is -1, no location context is set."
                },
                "usage_exp": {
                    "type": "string",
                    "description": "Expiration time left from today."
                },
                "validity": {
                    "type": "number",
                    "description": "Can be used for the amount of minutes returned."
                },
                "price_enduser": {
                    "type": "number",
                    "description": "The price it was sold for."
                },
                "currency": {
                    "type": "string",
                    "description": "The currency of the price."
                }
            }
        },
        "ArrayOfVouchers": {
            "type": "object",
            "required": [
                "items"
            ],
            "properties": {
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Voucher"
                    }
                }
            }
        },
        "MacTransaction": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "number",
                    "description": "TODO"
                },
                "operator": {
                    "type": "string",
                    "description": "TODO"
                },
                "location_id": {
                    "type": "number",
                    "description": "TODO"
                },
                "user_name": {
                    "type": "string",
                    "description": "TODO"
                },
                "action_date_gmt": {
                    "type": "string",
                    "description": "TODO"
                },
                "package_id": {
                    "type": "string",
                    "description": "TODO"
                },
                "user_agent": {
                    "type": "string",
                    "description": "TODO"
                },
                "customer": {
                    "type": "string",
                    "description": "TODO"
                },
                "newsletter": {
                    "type": "number",
                    "description": "TODO"
                },
                "company_name": {
                    "type": "string",
                    "description": "TODO"
                },
                "email": {
                    "type": "string",
                    "description": "TODO"
                },
                "address": {
                    "type": "string",
                    "description": "TODO"
                },
                "city": {
                    "type": "string",
                    "description": "TODO"
                },
                "state": {
                    "type": "string",
                    "description": "TODO"
                },
                "zip": {
                    "type": "string",
                    "description": "TODO"
                },
                "country_code": {
                    "type": "string",
                    "description": "TODO"
                },
                "phone": {
                    "type": "string",
                    "description": "TODO"
                },
                "q1": {
                    "type": "string",
                    "description": "TODO"
                },
                "a1": {
                    "type": "string",
                    "description": "TODO"
                },
                "q2": {
                    "type": "string",
                    "description": "TODO"
                },
                "a2": {
                    "type": "string",
                    "description": "TODO"
                },
                "q3": {
                    "type": "string",
                    "description": "TODO"
                },
                "a3": {
                    "type": "string",
                    "description": "TODO"
                },
                "q4": {
                    "type": "string",
                    "description": "TODO"
                },
                "a4": {
                    "type": "string",
                    "description": "TODO"
                },
                "q5": {
                    "type": "string",
                    "description": "TODO"
                },
                "a5": {
                    "type": "string",
                    "description": "TODO"
                }
            }
        },
        "ArrayOfMacTransactions": {
            "type": "object",
            "required": [
                "items"
            ],
            "properties": {
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/MacTransaction"
                    }
                }
            }
        },
        "VoucherTransaction": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "number",
                    "description": "TODO"
                },
                "operator": {
                    "type": "string",
                    "description": "TODO"
                },
                "location_id": {
                    "type": "number",
                    "description": "TODO"
                },
                "user_name": {
                    "type": "string",
                    "description": "TODO"
                },
                "customer": {
                    "type": "string",
                    "description": "TODO"
                },
                "action_date_gmt": {
                    "type": "string",
                    "description": "TODO"
                },
                "amount": {
                    "type": "number",
                    "description": "TODO"
                },
                "currency": {
                    "type": "string",
                    "description": "TODO"
                },
                "user_agent": {
                    "type": "string",
                    "description": "TODO"
                },
                "newsletter": {
                    "type": "number",
                    "description": "TODO"
                },
                "company_name": {
                    "type": "string",
                    "description": "TODO"
                },
                "email": {
                    "type": "string",
                    "description": "TODO"
                },
                "address": {
                    "type": "string",
                    "description": "TODO"
                },
                "city": {
                    "type": "string",
                    "description": "TODO"
                },
                "state": {
                    "type": "string",
                    "description": "TODO"
                },
                "zip": {
                    "type": "string",
                    "description": "TODO"
                },
                "country_code": {
                    "type": "string",
                    "description": "TODO"
                },
                "phone": {
                    "type": "string",
                    "description": "TODO"
                },
                "language": {
                    "type": "string",
                    "description": "TODO"
                },
                "smscountry": {
                    "type": "string",
                    "description": "TODO"
                }
            }
        },
        "ArrayOfVoucherTransactions": {
            "type": "object",
            "required": [
                "items"
            ],
            "properties": {
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/VoucherTransaction"
                    }
                }
            }
        },
        "SocialTransaction": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "number",
                    "description": "TODO"
                },
                "operator": {
                    "type": "string",
                    "description": "TODO"
                },
                "location_id": {
                    "type": "number",
                    "description": "TODO"
                },
                "user_name": {
                    "type": "string",
                    "description": "TODO"
                },
                "action_date_gmt": {
                    "type": "string",
                    "description": "TODO"
                },
                "package_id": {
                    "type": "string",
                    "description": "TODO"
                },
                "user_agent": {
                    "type": "string",
                    "description": "TODO"
                },
                "customer": {
                    "type": "string",
                    "description": "TODO"
                },
                "newsletter": {
                    "type": "number",
                    "description": "TODO"
                },
                "company_name": {
                    "type": "string",
                    "description": "TODO"
                },
                "email": {
                    "type": "string",
                    "description": "TODO"
                },
                "address": {
                    "type": "string",
                    "description": "TODO"
                },
                "city": {
                    "type": "string",
                    "description": "TODO"
                },
                "state": {
                    "type": "string",
                    "description": "TODO"
                },
                "zip": {
                    "type": "string",
                    "description": "TODO"
                },
                "country_code": {
                    "type": "string",
                    "description": "TODO"
                },
                "phone": {
                    "type": "string",
                    "description": "TODO"
                },
                "social_id": {
                    "type": "string",
                    "description": "TODO"
                },
                "social_username": {
                    "type": "string",
                    "description": "TODO"
                },
                "social_link": {
                    "type": "string",
                    "description": "TODO"
                },
                "social_gender": {
                    "type": "string",
                    "description": "TODO"
                },
                "social_age_range": {
                    "type": "string",
                    "description": "TODO"
                },
                "social_followers_count": {
                    "type": "string",
                    "description": "TODO"
                },
                "social_network": {
                    "type": "string",
                    "description": "TODO"
                }
            }
        },
        "ArrayOfSocialTransactions": {
            "type": "object",
            "required": [
                "items"
            ],
            "properties": {
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/SocialTransaction"
                    }
                }
            }
        },
        "PaidTransaction": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "number",
                    "description": "TODO"
                },
                "operator": {
                    "type": "string",
                    "description": "TODO"
                },
                "location_id": {
                    "type": "number",
                    "description": "TODO"
                },
                "user_name": {
                    "type": "string",
                    "description": "TODO"
                },
                "customer": {
                    "type": "string",
                    "description": "TODO"
                },
                "action_date_gmt": {
                    "type": "string",
                    "description": "TODO"
                },
                "amount": {
                    "type": "number",
                    "description": "TODO"
                },
                "currency": {
                    "type": "string",
                    "description": "TODO"
                },
                "user_agent": {
                    "type": "string",
                    "description": "TODO"
                },
                "newsletter": {
                    "type": "number",
                    "description": "TODO"
                },
                "company_name": {
                    "type": "string",
                    "description": "TODO"
                },
                "email": {
                    "type": "string",
                    "description": "TODO"
                },
                "address": {
                    "type": "string",
                    "description": "TODO"
                },
                "city": {
                    "type": "string",
                    "description": "TODO"
                },
                "state": {
                    "type": "string",
                    "description": "TODO"
                },
                "zip": {
                    "type": "string",
                    "description": "TODO"
                },
                "country_code": {
                    "type": "string",
                    "description": "TODO"
                },
                "phone": {
                    "type": "string",
                    "description": "TODO"
                },
                "language": {
                    "type": "string",
                    "description": "TODO"
                },
                "smscountry": {
                    "type": "string",
                    "description": "TODO"
                }
            }
        },
        "ArrayOfPaidTransactions": {
            "type": "object",
            "required": [
                "items"
            ],
            "properties": {
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/PaidTransaction"
                    }
                }
            }
        }
    }
}
