Skip to content

Voucher API Query vouchers to bring through validation and price

ipro-dave edited this page Dec 18, 2018 · 2 revisions

Request Url: /apis/ /vouchers/[?VoucherCode=code]

  • [code] = The unique code of the voucher

Response:

VoucherCode : “100 1086”
VoucherValue | “100”
CalculationTypeID" : “0” – 0 = Fixed value & 1 = Percentage
ValidTypeID": “0” – 0 = Booked Between & 1 = Holiday Dates
ValidFrom" : “2016-05-13”
ValidTo" : “2016-05-20”,
MinimumNights" : “7”,
PropertyIds": “NULL”, – List of propertyIDs where offer is applicable
ContactID": “NULL”, – Contact Email valid for voucher, convert ID to Primary Email
DisableAddUp" : “0” – 0 discount can apply on top of another discount, 1 = discount cannot be used in conjuction with another discount
ExpireOnBooked": “0” – 0 = Expired No, 1 = Expired Yes, cannot be used again
DiscountTypeID": “0” – Discount Type 0 = Discount not deducted, 1 = Voucher discounted from commission, 2 = voucher deducted from owner amount, 3 = Discount split 50 / 50 between owner and agency, 4 = Discount / commission calculated on Net Price
Notes": " “,
CreationTime”: “2016-04-04 11:15:10”,
LastUpdateTime": “2016-11-10 14:41:57”

Clone this wiki locally