ExpensesProduct

Structure

FieldTypeRequiredDescription
postingDateLocalDatetrueDate when the product is going to be posted.
productionDate
LocalDatetrueDate when the product is going to be producted.
quantityIntegertrueNumber of items it contains.
productProducttrueProduct related to this ExpensesProduct.
nameStringtrueName of the product.
amountAfterTaxBigDecimaltrueCost of the product in the related currency after applying taxes.
amountBeforeTaxBigDecimalfalseCost of the product in the related currency before applying taxes.
currencyCurrencytrueRelated currency to this ExpensesProduct.
amountTaxBigDecimalfalse
amountDiscountBigDecimalfalse
amountCommissionBigDecimalfalse
rateRatetrueRelated rate to this ExpensesProduct.
offerOffertrueRelated offer to this ExpensesProduct.
offerAmountDiscountBigDecimaltrue
offerPercentDiscountBigDecimaltrue
promotionPromotionfalseRelated promotion to this ExpensesProduct.
promotionAmountDiscountBigDecimalfalse
promotionPercentDiscountBigDecimalfalse
channelChanneltrueRelated channel to this ExpensesProduct.
sourceSourcetrueRelated source to this ExpensesProduct.
segmentSegmenttrueRelated segment to this ExpensesProduct.
remarkStringfalseAdded comments to the ExpensesProduct.

expensesProductTaxList

List of ExpensesProductTaxfalseDetail of the taxes applied to this ExpensesProduct.

expensesProductCommissionList

List of ExpensesProductCommissionfalseDetail of the commissions applied to this ExpensesProduct.
expensesProductDiscountListList of ExpensesProductDiscountfalseDetail of the discounts applied to this ExpensesProduct.

JSON representation

{
	"productionDate": "2019-07-28",
	"postingDate": "2019-07-28",
	"productionDate": "2019-07-28",
	"quantity": 1,
	"product": {
		"id": 422,
		"code":"PK",
		"name": "Parking",
		"productType": {
			"id": 2,
			"code": "SER",
			"name": "Service"
		}
	},
	"name": "Parking",
	"amountAfterTax": 10,
	"amountBeforeTax": null,
	"currency": {
		"id": 1,
		"code": "EUR",
		"name": "Euro"
	},
	"amountTax": null,
	"amountDiscount": null,
	"amountCommission": null,
	"rate": null,
	"offer": null,
	"offerAmountDiscount": null,
	"offerPercentDiscount": null,
	"promotion": null,
	"promotionAmountDiscount": null,
	"promotionPercentDiscount": null,
	"propertyChannel": {
		"id": 62,
		"code": "WEB",
		"name": "Booking Engine"
	},
	"propertySource": {
		"id": 47,
		"code": "FAX",
		"name": "Fax"
	},
	"propertySegment": {
		"id": 47,
		"code": "CONG",
		"name": "Congress"
	},
	"remark": null,
	"expensesProductTaxList": [{
		"quantity": 1,
		"product": {
			"id": 797,
 			"code":"TAX21",
			"name": "Tax 21%",
			"productType": {
				"id": 8,
				"code": "TAX",
				"name": "Tax"
			}
		},
		"name": "Tax 21%",
		"price": 1.735537,
		"currency": {
			"id": 1,
			"code": "EUR",
			"name": "Euro"
		},
		"amount": null,
		"percentage": 21
	}],
	"expensesProductCommissionList": null,
	"expensesProductDiscountList": null
}