Create Booking
1 min
Create Booking
This API is used to create booking in your PayDocker account
POST
https://api.paydocker.com/{version}/booking/{partnerid}/{randomkey}
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://api.paydocker.com/v1/booking/PDR28/375053',
'headers': {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"share_secret": "EVBZIHZhKqsPoopQ4GW7uceHQz4yIEdGB1JjNJyUJmvp77xj1lInlilZc5LkZgA8IllRRDLZTaaftmUwT3WapIRHP67VAskyJOjybSH03RdDXVXPhAcCH00l3dKYqCJjsqikrnpsy0B7WonvWWpK5mz",
"booking_event": "new",
"source_id": "PDR28",
"buyer_id": "",
"booking_id": "1396",
"booking_date": "21-01-2024",
"booking_category": "Payable",
"supplier_id": "PD01",
"property_name": "Roy",
"property_country": "IN",
"guests_count": "45",
"room_count": "12",
"check_in": "20-01-2024",
"check_out": "22-01-2024",
"transaction_currency": "INR",
"transaction_amount": "100.00",
"margin_category": "%",
"transaction_margin": "1",
"nonrefundable_amount": "0.00",
"refundable_amount": "0.00",
"firstnight_amount": "10.00",
"cancellation_days": "0",
"auth_code":"trusted",
"pre_auth":"true"
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});