Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Structure

Excerpt


FieldTypeRequiredDescription
idIntegertrueUnique identifier for the InvoiceProduct.
sequenceIntegertrue
invoiceSerieStringtrueSerie of the Invoice
invoiceNumberIntegertrueNumber of the Invoice
invoiceSourceInvoicefalse
invoiceDateLocalDatetrueDate of the Invoice
companyCompanyfalseCompany of this Invoice
customerCustomerfalseCustomer of this Invoice
travelAgentTravelAgentfalseTravelAgent of this Invoice
holderNameStringtrueName of the holder
taxIdStringfalse
addressStringfalse
cityStringfalse
stateProvNameStringfalse
stateProvCodeStringfalseISO 3166-2
postalCodeStringfalse
countryCodeStringfalseISO 3166-1 alpha-2
remarkStringfalse
invoiceSource818872373falseIn case this invoice was amended, the source invoice would appear here

invoiceType

InvoiceType

false

billingType

BillingType

false
totalAmountAfterTaxBigDecimaltrue
totalAmountBeforeTaxBigDecimaltrue
totalAmountTaxBigDecimaltrue
totalAmountTaxExemptBigDecimaltrueTotal amount exempt of tax in a given invoice
totalAmountDiscountBigDecimaltrue
totalAmountCommissionBigDecimaltrue
productListArray of InvoiceProduct elementstrueInvoiceProduct list related to this Invoice
invoiceTaxSummaryListArray of InvoiceTaxSummaryfalse
folioInvoiceOwnerFolioInvoiceOwnerfalseThe entity where this invoice comes from.reservationSummaryReservationSummary

reservationRoomStaySummaryReservationRoomStaySummary

reservationGroupReservationGroup

depositDeposit

minimumTicketNumberStringfalse
maximumTicketNumberStringfalse



JSON representation

Code Block
languagepowershell
themeDJango
{
	"id": 1,
	"sequence": 21312,
	"invoiceSerie": "A15",
	"invoiceNumber": 100000,
	"invoiceDate": "2019-01-21",
	"invoiceDueDate": null,
	"company": null,
	"customer": {
		"id": 8,
		"name": "Denise Naéva Schmidt"
	},
	"travelAgent": null,
	"holderName": "Denise Naéva Schmidt",
	"taxId": null,
	"address": "75865 Emmet Crossing",
	"city": "Saginaw",
	"stateProvName": "Barcelona",
	"stateProvCode": "ES-B",
	"postalCode": "48604",
	"countryCode": "ES",
	"remark": null,
	"invoiceType": {
		"id": 6,
		"code": "FO",
		"name": "Factura Ordinaria",
		"description": null,
		"active": true,
		"inactiveReason": null
	},
	"billingType": {
		"id": 1,
		"code": "RES",
		"name": "Reservation",
		"nameI18n": "Reservation",
		"colorCode": "#43A047"
	},
	"invoiceSource": null,
	"totalAmountAfterTax": 1330.000000,
	"totalAmountBeforeTax": 1211.000007,
	"totalAmountTax": 118.999993,
	"totalAmountTaxExempt": 0.000000,
	"totalAmountDiscount": 0.000000,
	"totalAmountCommission": 0.000000,
	"minimumTicketNumberproductList": null,[
	"maximumTicketNumber": null,
	"productList": [{
			"id": 1,
			"productionDate": "2019-01-30",
			"postingDate": "2019-01-30",
			"product": {
				"id": 431,
				"name": "Cash"
			},
			"productType": {
				"code": "PAY",
				"name": "Payment"
			},
			"productName": "Cash",
			"quantity": 1,
			"amountAfterTax": 142,
			"amountBeforeTax": 142,
			"amountDiscount": 0,
			"amountTax": 0,
			"amountCommission": 0,
			"currency": {
				"code": "EUR",
				"name": "Euro"
			},
			"channel": null,
			"source": null,
			"segment": null,
			"invoiceProductTaxList": [],
			"invoiceProductCommissionList": [],
			"invoiceProductDiscountList": []
		},
		{
			"id": 2,
			"productionDate": "2019-01-30",
			"postingDate": "2019-01-30",
			"product": {
				"id": 530,
				"name": "Deposit 21"
			},
			"productType": {
				"code": "DEP",
				"name": "Deposit"
			},
			"productName": "Deposit 21",
			"quantity": 1,
			"amountAfterTax": 142,
			"amountBeforeTax": 142,
			"amountDiscount": 0,
			"amountTax": 0,
			"amountCommission": 0,
			"currency": {
				"code": "EUR",
				"name": "Euro"
			},
			"channel": null,
			"source": null,
			"segment": null,
			"invoiceProductTaxList": [],
			"invoiceProductCommissionList": [],
			"invoiceProductDiscountList": []
		}
	],
	"invoiceTaxSummaryList": null,
	"folioInvoiceOwnerreservationSummary": {
		"reservation": null,
		"reservationRoomStayreservationRoomStaySummary": null,
		"reservationGroup": null,
		"deposit": null,
		"customerminimumTicketNumber": null,
		"company": {
			"id": 22,
			"name": "Tesipro MAD",
			"code": "TESMA",
			"taxId": "ABCDE",
			"companyEmailList": null,
			"companyAddressList": [{
				"id": 22,
				"primary": true,
				"communicationLocationType": {
					"id": 1,
					"code": "1",
					"name": "Home",
					"nameI18n": "Home"
				},
				"street": "9 Weeping Birch Crossing",
				"city": "Orange",
				"stateProvName": "Soria",
				"stateProvCode": "ES-SO",
				"postalCode": "92862",
				"countryCode": "ES",
				"remark": "Address Remark"
			}],
			"companyPhoneList": null,
			"companyTaxAddress": {
				"id": 3,
				"communicationLocationType": null,
				"street": "9 Weeping Birch Crossing",
				"city": "Orange",
				"stateProvName": "Cáceres",
				"stateProvCode": "ES-CC",
				"postalCode": "92862",
				"countryCode": "ES",
				"remark": "Address Remark"
			},
			"remark": "Company Remarks",
			"assignedUser": null,
			"profileType": null
		},
		"travelAgent": null

	}"maximumTicketNumber":null
}