TicketUserServices

<back to all web services

WeeklyPayoutPreviewRequest

Requires Authentication
Requires any of the roles:Admin, Admin
The following routes are available for this service:
POST/payouts/weekly/preview
GET POST/payouts/weekly/sheet
WeeklyPayoutPreviewRequest Parameters:
NameParameterData TypeRequiredDescription
AsOfbodyDateTime?No
FrombodyDateTime?No
TobodyDateTime?No
WeeklyPayoutPreviewResult Parameters:
NameParameterData TypeRequiredDescription
RunDateformDateTimeNo
WindowFromInclusiveformDateTimeNo
WindowToInclusiveformDateTimeNo
SheetTitleformstringNo
TotalAmountformlongNo
RowCountformintNo
RowsformList<WeeklyPayoutPreviewRow>No
MissingBankInfoformList<WeeklyPayoutMissingBank>No
SkippedformList<WeeklyPayoutMissingBank>No
SheetCsvformstringNo
MissingBankCsvformstringNo
Si080PreviewformstringNo
StatusCodeformintNo
MessageformstringNo
WeeklyPayoutPreviewRow Parameters:
NameParameterData TypeRequiredDescription
EventIdformintNo
EventNameformstringNo
TimeOfEventformDateTimeNo
DeildformstringNo
EventOwnerNameformstringNo
EventOwnerIdformintNo
TeamNumberformstringNo
KennitalaformstringNo
BankAccountformstringNo
BankGenderformstringNo
GrossAmountformlongNo
AmountformlongNo
WeeklyPayoutMissingBank Parameters:
NameParameterData TypeRequiredDescription
EventOwnerNameformstringNo
EventOwnerIdformintNo
TeamNumberformstringNo
EventIdformintNo
EventNameformstringNo
TimeOfEventformDateTimeNo
DeildformstringNo
AmountformlongNo
ReasonformstringNo

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.

POST /payouts/weekly/preview HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	asOf: 0001-01-01,
	from: 0001-01-01,
	to: 0001-01-01
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	runDate: 0001-01-01,
	windowFromInclusive: 0001-01-01,
	windowToInclusive: 0001-01-01,
	sheetTitle: String,
	totalAmount: 0,
	rowCount: 0,
	rows: 
	[
		{
			eventId: 0,
			eventName: String,
			timeOfEvent: 0001-01-01,
			deild: String,
			eventOwnerName: String,
			eventOwnerId: 0,
			teamNumber: String,
			kennitala: String,
			bankAccount: String,
			bankGender: String,
			grossAmount: 0,
			amount: 0
		}
	],
	missingBankInfo: 
	[
		{
			eventOwnerName: String,
			eventOwnerId: 0,
			teamNumber: String,
			eventId: 0,
			eventName: String,
			timeOfEvent: 0001-01-01,
			deild: String,
			amount: 0,
			reason: String
		}
	],
	skipped: 
	[
		{
			eventOwnerName: String,
			eventOwnerId: 0,
			teamNumber: String,
			eventId: 0,
			eventName: String,
			timeOfEvent: 0001-01-01,
			deild: String,
			amount: 0,
			reason: String
		}
	],
	sheetCsv: String,
	missingBankCsv: String,
	si080Preview: String,
	statusCode: 0,
	message: String
}