API to create a transaction by booking a slot and putting customer details for it.

Resource URL

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

Parameters

ParameterDescriptionOptionalDefault
player_id Customer Id of the user for booking.
court_id Court Id is mandatory - 109
facility_id Facility ID is mandatory - 43
date Date is mandatory

Example

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

Request

  Raw Headers :

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

       Raw Payload :
                    booking={"Payment""facility_id":"43","facility_court_id":"108",
                    "player_id":"1","paid_amount":"180","transaction_id":"",
                    "item_total_amount":"200","coupon_no":"99999","coupon_dis":"10",
                    "discount_type":"","booking_charge":"0","service_tax":"0",
                    "pg_charge":"0","swachh_bharat_tax":"0","kisan_vikas_tax":"0",
                    "booking_from":"android","payment_mode":"online","booked_by":"comp name",
                    "BookFacility":[
                                      {"court_price_id":"577","from":"02:00","to":"02:15","booking_date_from":"2016-11-30",
                                      "booking_date_to":"2016-11-30","court_price":100,"pricetype":"hour"},{"court_price_id":"577",
                                      "from":"02:15","to":"02:30","booking_date_from":"2016-11-30","booking_date_to":"2016-11-30",
                                      "court_price":100,"pricetype":"hour"}]}}  

Response

  {
    Dear {Customer Name}, {PhoneNumber}, booking confirmed at {VenueName} on 30-11-2016 - 02:00-02:30. Your payment has been received online.{"email":true,"data""paymentid":"13795"},"status":true,"message":"BOOKING HAS BEEN DONE SUCCESSFULLY."}
}  

Error Response

    

Resource Information

Rate Limited True
Response Format JSON
Authentication None