Cdn API - CPG Source

<back to all web services

ApiBillingPreviewRequest

Cdn.Api

The following routes are available for this service:
GET/ApiBillingPreviewRequest
ApiBillingPreviewRequest Parameters:
NameParameterData TypeRequiredDescription
BillingMonthqueryintNo
BillingYearqueryintNo
IncludeAlreadyBilledqueryboolNo
BaseRequest<T> Parameters:
NameParameterData TypeRequiredDescription
Idformlong?No
OrderByformstring[]No
OrderDirectionsformSortOrders[]No
ApiBillingPreviewResponse Parameters:
NameParameterData TypeRequiredDescription
BillingMonthformintNo
BillingYearformintNo
BillingPeriodLabelformstringNo
PeriodStartformDateTimeNo
PeriodEndformDateTimeNo
EligibleCustomerCountformintNo
ChargeableCountformintNo
TotalAmountformdecimalNo
MissingPaymentInfoCountformintNo
TotalAtRiskAmountformdecimalNo
AlreadyBilledCountformintNo
AlreadySkippedCountformintNo
RetryCountformintNo
MinimumAppliedCountformintNo
TotalBasicCallsformintNo
TotalAdvancedCallsformintNo
NoChargeCustomerCountformintNo
DataformList<ApiBillingPreviewItem>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
TotalformintNo
OpCodeformintNo
ErrorTextformstringNo
RequestTimeformstringNo
ResponseTimeformstringNo
TotalExecutionTimeformstringNo
CachedResponseformboolNo
ApiBillingPreviewItem Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
LastNameformstringNo
FirstNameformstringNo
CompanyformstringNo
BasicCallsformintNo
AdvancedCallsformintNo
TotalCallsformintNo
BasicAmountformdecimalNo
AdvancedAmountformdecimalNo
CalculatedAmountformdecimalNo
TotalAmountformdecimalNo
MinimumAppliedformboolNo
StatusformstringNo
FailReasonformstringNo
IsRetryformboolNo
ApiBillingFailedformboolNo
ApiBillingPreviewResponse Parameters:
NameParameterData TypeRequiredDescription
BillingMonthformintNo
BillingYearformintNo
BillingPeriodLabelformstringNo
PeriodStartformDateTimeNo
PeriodEndformDateTimeNo
EligibleCustomerCountformintNo
ChargeableCountformintNo
TotalAmountformdecimalNo
MissingPaymentInfoCountformintNo
TotalAtRiskAmountformdecimalNo
AlreadyBilledCountformintNo
AlreadySkippedCountformintNo
RetryCountformintNo
MinimumAppliedCountformintNo
TotalBasicCallsformintNo
TotalAdvancedCallsformintNo
NoChargeCustomerCountformintNo
DataformList<ApiBillingPreviewItem>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /ApiBillingPreviewRequest HTTP/1.1 
Host: cdnapidev.greysheet.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	BillingMonth: 0,
	BillingYear: 0,
	BillingPeriodLabel: String,
	PeriodStart: 0001-01-01,
	PeriodEnd: 0001-01-01,
	EligibleCustomerCount: 0,
	ChargeableCount: 0,
	TotalAmount: 0,
	MissingPaymentInfoCount: 0,
	TotalAtRiskAmount: 0,
	AlreadyBilledCount: 0,
	AlreadySkippedCount: 0,
	RetryCount: 0,
	MinimumAppliedCount: 0,
	TotalBasicCalls: 0,
	TotalAdvancedCalls: 0,
	NoChargeCustomerCount: 0,
	Data: 
	[
		{
			Id: 0,
			LastName: String,
			FirstName: String,
			Company: String,
			BasicCalls: 0,
			AdvancedCalls: 0,
			TotalCalls: 0,
			BasicAmount: 0,
			AdvancedAmount: 0,
			CalculatedAmount: 0,
			TotalAmount: 0,
			MinimumApplied: False,
			Status: String,
			FailReason: String,
			IsRetry: False,
			ApiBillingFailed: False
		}
	],
	Total: 0,
	OpCode: 0,
	ErrorText: String,
	RequestTime: String,
	ResponseTime: String,
	TotalExecutionTime: String,
	CachedResponse: False
}