Vouchers

Validate voucher

Determine if the specified voucher code is valid or not.

Request

[ApiBaseUrl]/api/distributor/v1/vouchers/validate

{
    "Client": "My Client 1.0.0",
    "HotelId": "3edbe1b4-6739-40b7-81b3-d369d9469c48",
    "VoucherCode": "Discount2042"
}
PropertyTypeContractDescription

Client

string

required

Identification of the client as described in Authorization.

HotelId

string

required

Unique identifier of hotel.

VoucherCode

string

required

Voucher code enabling special rate offerings (case sensitive).

Response

{
    "IsValid": false
}
PropertyTypeContractDescription

IsValid

boolean

required

Indicates whether the voucher code is valid.

Last updated