HomeGuidesAPIsReleasesDownloadsDeveloperEvents
Log In
Guides
These docs are for v2024.01.01. Click to read the latest docs for v2024.08.01.

Estimated next invoice - discounts

{
	"eventType": "SERVICE_COMMERCIAL_BILLING_EST_NEXT_BILL",
	"tenantId": "8367f08d-ef04-4df8-9bf3-0ad519cf3be7",
	"eventDate": "2023-09-22 16:22:29",
	"data": {
		"accountIdentifier": "ca645084-10f7-4e9f-8828-3a6ab77341ef",
		"taxInclusive": true,
		"invoiceFrequency": "MONTHLY",
		"company": {
			"companyIdentifier": "co20230922172136",
			"companyName": "Kozey Group",
			"companyType": "INDEPENDENT",
			"companyContact": {
				"contactIdentifier": "coco20230922172136",
				"name": {
					"title": "Mr.",
					"forename": "Bradley",
					"surname": "Johnson"
				},
				"address": {
					"building": "Unit 23",
					"line1": "557 Esperanza Way",
					"line2": "Chapelton Retail Park",
					"line3": "Chapel",
					"city": "North Leoramouthy",
					"area": "Fife",
					"postcode": "KY2 6QJ",
					"countryCode": "GBR",
					"phone": "077000000",
					"email": "[email protected]"
				}
			}
		},
		"invoiceIdentifier": "10227",
		"invoiceDate": "2023-10-10",
		"dueDate": "2023-10-20",
		"invoicePeriod": {
			"startDate": "2023-10-09",
			"endDate": "2023-10-31"
		},
		"invoiceLanguage": "English",
		"invoiceMedia": "Email",
		"invoiceType": "Summary",
		"totalSubscriptionCharges": {
			"amount": 55.65,
			"currencyCode": "GBP"
		},
		"totalOneOffCharges": {
			"amount": 0,
			"currencyCode": "GBP"
		},
		"totalCharges": {
			"amount": 55.65,
			"currencyCode": "GBP"
		},
		"totalSubscriptionDiscounts": {
			"amount": -9.27,
			"currencyCode": "GBP"
		},
		"totalOneOffDiscounts": {
			"amount": 0,
			"currencyCode": "GBP"
		},
		"totalDiscounts": {
			"amount": -9.27,
			"currencyCode": "GBP"
		},
		"totalAdjustments": {
			"amount": 0,
			"currencyCode": "GBP"
		},
		"totalCancellationsExcludingVAT": {
			"amount": 0,
			"currencyCode": "GBP"
		},
		"totalCancellationsVAT": {
			"amount": 0,
			"currencyCode": "GBP"
		},
		"totalCancellationsIncludingVAT": {
			"amount": 0,
			"currencyCode": "GBP"
		},
		"totalExcludingVAT": {
			"amount": 46.38,
			"currencyCode": "GBP"
		},
		"totalVAT": {
			"amount": 9.28,
			"currencyCode": "GBP"
		},
		"totalIncludingVAT": {
			"amount": 55.66,
			"currencyCode": "GBP"
		},
		"outstandingTotalIncludingVAT": {
			"amount": 55.66,
			"currencyCode": "GBP"
		},
		"sites": [{
			"site": {
				"siteIdentifier": "si20230922172154",
				"siteName": "The pink Soap",
				"sitePostcode": "PC12 3RP"
			},
			"totalSubscriptionCharges": {
				"amount": 55.65,
				"currencyCode": "GBP"
			},
			"totalOneOffCharges": {
				"amount": 0,
				"currencyCode": "GBP"
			},
			"totalCharges": {
				"amount": 55.65,
				"currencyCode": "GBP"
			},
			"totalSubscriptionDiscounts": {
				"amount": -9.27,
				"currencyCode": "GBP"
			},
			"totalOneOffDiscounts": {
				"amount": 0,
				"currencyCode": "GBP"
			},
			"totalDiscounts": {
				"amount": -9.27,
				"currencyCode": "GBP"
			},
			"totalAdjustments": {
				"amount": 0,
				"currencyCode": "GBP"
			},
			"totalCancellations": {
				"amount": 0,
				"currencyCode": "GBP"
			},
			"totalExcludingVAT": {
				"amount": 46.38,
				"currencyCode": "GBP"
			},
			"totalVAT": {
				"amount": 9.28,
				"currencyCode": "GBP"
			},
			"totalIncludingVAT": {
				"amount": 55.66,
				"currencyCode": "GBP"
			},
			"subscriptions": [{
				"serviceName": "Music One",
				"serviceType": "SUBSCRIPTION",
				"serviceStatus": "ACTIVE",
				"agreementIdentifier": "SUBS-230922-172211",
				"taxCode": "STANDARD",
				"charges": [{
					"period": {
						"startDate": "2023-10-09",
						"endDate": "2023-10-31"
					},
					"amountExcludingVAT": {
						"amount": 55.65,
						"currencyCode": "GBP"
					}
				}],
				"discounts": [{
					"period": {
						"startDate": "2023-10-09",
						"endDate": "2023-10-31"
					},
					"name": "£10 discount till end of next year",
					"amount": {
						"amount": -7.42,
						"currencyCode": "GBP"
					}
				}, {
					"period": {
						"startDate": "2023-10-09",
						"endDate": "2023-10-31"
					},
					"name": "£2.50 discount",
					"amount": {
						"amount": -1.85,
						"currencyCode": "GBP"
					}
				}]
			}]
		}]
	},
	"sourceId": "947e64e1-678e-42a0-e053-0100007f4dd6",
	"sourceName": "PW_SYSTEM",
	"sourceType": "USER",
	"entityId": "371d58fd-13d7-4656-b52a-b773f451a6b4",
	"entityType": "COMPANY",
	"entityOperation": "O",
	"auditMessage": "Estimated next invoice generated"
}