API to fetch details of a court availability on any particular date using courtID and FacilityID.

Resource URL

https://www.goplayr.com/Api/courtdata

Parameters

ParameterDescriptionOptionalDefault
court_id Court Id is mandatory
facility_id Facility ID is mandatory
date Date is mandatory

Example

POST https://www.goplayr.com/Api/courtdata

Request

  Raw Headers :

  Content-Type: application/x-www-form-urlencoded

     Raw Payload : court_id=109&facility_id=43&date=28-06-2018  

Response

  
    {
        {"status":true,"message":"Court detail with price and booking",
        "data":{"FacilityCourt":{"id":"2856","facility_id":"1532","sport_id":"2","number":"2","type":"paid","pricetype":"hour"},
        "Sport":{"id":"2","sports_type_id":"2","name":"Football","icon":"https:\/\/s3-us-west-2.amazonaws.com\/goplayr\/img\/sports\/20160916201159_1.png"},
        "Hours":[{"court_price_id":"14429","date":"28-06-2017","display_txt":"06:00 - 06:30","h1":"06:00","h2":"06:30","price":"850","max_qty":"1","booked_qty":0,
        "booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14429","date":"28-06-2017",
        "display_txt":"06:30 - 07:00","h1":"06:30","h2":"07:00","price":"850","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"",
        "block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14429","date":"28-06-2017","display_txt":"07:00 - 07:30","h1":"07:00","h2":"07:30",
        "price":"850","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},
        {"court_price_id":"14429","date":"28-06-2017","display_txt":"07:30 - 08:00","h1":"07:30","h2":"08:00","price":"850","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"",
        "block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14429","date":"28-06-2017","display_txt":"08:00 - 08:30","h1":"08:00","h2":"08:30","price":"850",
        "max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14429","date":"28-06-2017",
        "display_txt":"08:30 - 09:00","h1":"08:30","h2":"09:00","price":"850","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0",
        "payment_mode":""},{"court_price_id":"14429","date":"28-06-2017","display_txt":"09:00 - 09:30","h1":"09:00","h2":"09:30","price":"850","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"",
        "block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14429","date":"28-06-2017","display_txt":"09:30 - 10:00","h1":"09:30","h2":"10:00","price":"850","max_qty":"1","booked_qty":0,
        "booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14430","date":"28-06-2017","display_txt":"10:00 - 10:30","h1":"10:00","h2":"10:30","price":"600",
        "max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14430","date":"28-06-2017","display_txt":"10:30 - 11:00","h1":"10:30","h2":"11:00",
        "price":"600","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14430","date":"28-06-2017","display_txt":"11:00 - 11:30","h1":"11:00",
        "h2":"11:30","price":"600","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14430","date":"28-06-2017",
        "display_txt":"11:30 - 12:00","h1":"11:30","h2":"12:00","price":"600","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},
        {"court_price_id":"14430","date":"28-06-2017","display_txt":"12:00 - 12:30","h1":"12:00","h2":"12:30","price":"600","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"",
        "cod_receive_status":"0","payment_mode":""},{"court_price_id":"14430","date":"28-06-2017","display_txt":"12:30 - 13:00","h1":"12:30","h2":"13:00","price":"600","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"",
        "block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14430","date":"28-06-2017","display_txt":"13:00 - 13:30","h1":"13:00","h2":"13:30","price":"600","max_qty":"1","booked_qty":0,
        "booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14430","date":"28-06-2017","display_txt":"13:30 - 14:00","h1":"13:30","h2":"14:00","price":"600",
        "max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14430","date":"28-06-2017","display_txt":"14:00 - 14:30","h1":"14:00",
        "h2":"14:30","price":"600","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14430","date":"28-06-2017","display_txt":"14:30 - 15:00",
        "h1":"14:30","h2":"15:00","price":"600","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14430","date":"28-06-2017","display_txt":"15:00 - 15:30",
        "h1":"15:00","h2":"15:30","price":"600","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14430","date":"28-06-2017","display_txt":"15:30 - 16:00",
        "h1":"15:30","h2":"16:00","price":"600","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14431","date":"28-06-2017","display_txt":"16:00 - 16:30",
        "h1":"16:00","h2":"16:30","price":"850","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14431","date":"28-06-2017","display_txt":"16:30 - 17:00",
        "h1":"16:30","h2":"17:00","price":"850","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14431","date":"28-06-2017","display_txt":"17:00 - 17:30",
        "h1":"17:00","h2":"17:30","price":"850","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14431","date":"28-06-2017","display_txt":"17:30 - 18:00",
        "h1":"17:30","h2":"18:00","price":"850","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14432","date":"28-06-2017","display_txt":"18:00 - 18:30",
        "h1":"18:00","h2":"18:30","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14432","date":"28-06-2017","display_txt":"18:30 - 19:00",
        "h1":"18:30","h2":"19:00","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14432","date":"28-06-2017","display_txt":"19:00 - 19:30",
        "h1":"19:00","h2":"19:30","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14432","date":"28-06-2017","display_txt":"19:30 - 20:00",
        "h1":"19:30","h2":"20:00","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14432","date":"28-06-2017","display_txt":"20:00 - 20:30",
        "h1":"20:00","h2":"20:30","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14432","date":"28-06-2017","display_txt":"20:30 - 21:00",
        "h1":"20:30","h2":"21:00","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14432","date":"28-06-2017","display_txt":"21:00 - 21:30",
        "h1":"21:00","h2":"21:30","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14432","date":"28-06-2017","display_txt":"21:30 - 22:00",
        "h1":"21:30","h2":"22:00","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14432","date":"28-06-2017","display_txt":"22:00 - 22:30",
        "h1":"22:00","h2":"22:30","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14432","date":"28-06-2017","display_txt":"22:30 - 23:00",
        "h1":"22:30","h2":"23:00","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14433","date":"28-06-2017","display_txt":"23:00 - 23:30",
        "h1":"23:00","h2":"23:30","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""},{"court_price_id":"14433","date":"28-06-2017","display_txt":"23:30 - 00:00",
        "h1":"23:30","h2":"00:00","price":"1150","max_qty":"1","booked_qty":0,"booking_status":"available","block_id":"","block_reason":"","block_for":"","cod_receive_status":"0","payment_mode":""}],"Days":[],"Months":[]}}
    }  

Error Response

    

Resource Information

Rate Limited True
Response Format JSON
Authentication None