-
Notifications
You must be signed in to change notification settings - Fork 0
Push Voucher
Rulee Chen edited this page Dec 19, 2019
·
8 revisions
Request:
-
Url
/apis/vouchers
-
Method
POST
-
Content-Type
application/json
-
Payload
{
"VoucherCode": "HRLH001",
"VoucherValue": 100,
"TypeOfDiscount": 1,
"TypeOfDeduction": 1,
"ValidFor": 1,
"MinimumNights": 7,
"ValidFrom": "2019-09-12",
"ValidTo": "2019-12-31",
"PropertyIds": [8849, 8850],
"ContactId": 68,
"DisableAddUp": false,
"ExpireOnBooked": true,
"Status": 1,
"Notes": "General discount to use on quotes",
}
-
"TypeOfDiscount"
required
0
- Fixed Value
1
- Percentage -
"TypeOfDeduction"
required
0
- Discount not deducted
1
- Discount deducted from commission
2
- Discount deducted from the owner amount
3
- Discount split between owner and commission 50/50
4
- Commission Based on Net Price
5
- Voucher Added As Payment -
"ValidFor"
optional
0
-Booked Between (default value)
1
-Holiday Dates -
"Status"
optional
0
-Empty (default value)
1
-AgencyPaid
2
-GuestPaid
Response:
-
Content-Type
application/json
-
Payload
{
"Success": true,
"Message": "Voucher Updated Successfully",
"CreatedNew": false
}
- Get Started Authentication
- Get Started Best Practise
- Settings
- Contacts
- Properties
- Properties
- Property Detail
- Property Images
- Property Extras
- Property Reference Lookup
- Property Rates
- Push Property Rates
- Property Custom Rates
- Property Availabilities
- Property Day Availabilities
- Property Rooms
- Property Distances
- Property All
- Property Search
- Property Search Lite
- Property Search Lite v2
- Property Enquiries
- Property Welcome Pack
- Push Property
- Properties Last Updated
- Property Day Availability Check
- Property Reviews
- Property Blockouts
- Property Detail Events
- Property Search Events
- Property Management
- Enquries
- Bookings
- Reviews
- Payments
- Offers & Deals
- Reports
- Communications