1.4.0 • Published 8 months ago

bl-jrni-api v1.4.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

bl-jrni-api

Endpoints

Endpoints for BL-JRNI-API

Check clients weekly booking limit

Request

GET /weeklyLimit/

Body

host = Host of the environment
limit = Number of days in the past to check for a booking from today
client = A client object as is, Checks for address1 and uses first_name & last_name

Example:

{
"host": "https://******.council.jrni.com/",
"limit": 7,
"client": {
    "first_name": "Samuel",
    "last_name": "green",
    "email": "samuel.green@bookinglab.co.uk",
    "address1": "1 Homer Rd",
    "address4": "Solihull",
    "postcode": "B39",
    "country": "United Kingdom",
    "mobile": "0751100000",
    "id": 1,
    "member_type": 2,
    }
}

Response

{
  "client": "Samuel Green",
  "Address": "1 Homer Rd,
  "found": true,
  "withinLast": "7 Days"
}