Skip to main content

API Models

A data model defines how information is stored and retrieved to support a solution.
The following list will help you identify what the app can offer to the end user.

Browse API Models

ProductModel

PropertyTypeDescription
catalogueIdstringThe guid of the Catalogue on which the voucher belongs to
namestringThe voucher's name
venueNamestringThe name of the venue
priceMoney?The price of the voucher
isPrivateboolThis indicates if the voucher is private
limitedAvailabilityint?Available number of vouchers
marketingDescriptionstringText for the marketing description
detailedDescriptionstringText for detailed description
termsstringTerms and conditions
reservationEmailstringReservation email
reservationPhonestringReservation phone
imagesstring[]List of images
tagslist of stringsList of tags
validityProductValidityVoucher's validity
versionlongVersion
parentPathstring[]Parent path which is a list of guids
idstringThe voucher's guid

Money

PropertyTypeDescription
amountdecimalThe amount of the currency
currencyCurrencyCurrency object

PeriodValidity

PropertyTypeDescription
validMonthsintNumber of valid months

RangeValidity

PropertyTypeDescription
startDatedateTime?Start date
endDatedateTimeEnd date

Basket API Models

BasketModel

PropertyTypeDescription
basketIdstringThe Id of the current basket
basketVersionnumberBasket version number
itemsItemModel[]List of items of in the basket
promoCodestringThe promo code applied to the basket
deliveriesDeliveryModel[]An array containing types of delivery (Postal, Email, OnSite)
deliveryOptionsDeliveryOption[]An array containing types of delivery options
paymentOptionsPaymentOptionShortModel[]An array containing the payment options

ItemModel

PropertyTypeDescription
lineItemIdstringThe guid of the item in the basket
productIdstringThe voucher's guid
productNamestringName of the product
imageUrlstringUrl of the product's image
personalMessagePersonalMessagePersonal Message
quotedPriceMoneyQuoted price
retailPriceMoneyRetail price
deliveryIdstringDelivery guid
availableDeliveryOptionsstring[]List of delivery options guids

DeliveryModel

PropertyTypeDescription
deliveryIdstringDelivery Id
deliveryOptionIdstringDelivery option Id
quotedPriceMoneyQuoted price

PostalDeliveryModel : DeliveryModel

PropertyTypeDescription
addressServerSideAddressAddress
firstNamestringFirst name
lastNamestringLast name

EmailDeliveryModel : DeliveryModel

PropertyTypeDescription
emailstringEmail

DeliveryOption

PropertyTypeDescription
deliveryOptionIdstringDelivery option guid
excludeCountriesstring[]List of excluded countries
includeCountriesstring[]List of included countries
kindDeliveryKind enumKind (possible values: 'OnSite'
namestringName
retailPriceMoneyRetail price

ServerSideAddress

PropertyTypeDescription
line1stringLine 1
line2stringLine 2
citystringCity
postcodestringPostcode
regionstringRegion
countrystringCountry

PaymentOptionShortModel

PropertyTypeDescription
idstringGuid
kindPaymentOptionKind enumKind (possible values: 'SagePay'

PersonalMessage

PropertyTypeDescription
tostringMessage to
messagestringMessage text

OrderModel

PropertyTypeDescription
orderIdstringGuid
orderNumberintOrder number
orderVersionlongOrder version
statusStatus enumStatus (possible values: 'Placed'
firstNamestringBuyer's first name
lastNamestringBuyer's last name
emailstringBuyer's email
phoneNumberstringBuyer's phone number
billingAddressPostalAddressBuyer's billing address
deliveriesDeliveryModel[]List of deliveries
amountToChargeMoneyAmount to charge
orderTotalMoneyOrder total

PostalAddress

PropertyTypeDescription
line1stringLine 1
line2stringLine 2 (usually city)
postcodestringPostcode
regionstringRegion
countrystringCountry - 2 Letter ISO 3166-1 alpha-2 country code