Server

<back to all web services

GetDirektkosten

Direktkosten
Requires Authentication
The following routes are available for this service:
GET/api/v1/direktkosten/{Guid}
GetDirektkosten Parameters:
NameParameterData TypeRequiredDescription
BearerTokenquerystringYes
GuidpathGuidYes
GetDirektkostenResponse Parameters:
NameParameterData TypeRequiredDescription
DirektkostenformDirektkostenNo
ResponseStatusformResponseStatusNo
Direktkosten Parameters:
NameParameterData TypeRequiredDescription
GuidformGuidNo
LabelformstringNo
DateformDateTimeNo
BruttoformdecimalNo
SalesTaxformdecimalNo
QuantityformdecimalNo
TypeformstringNo

Allowable Values

  • Heizkosten
  • Nebenkosten
IsDeletedformboolNo
IsCreatedByAppformboolNo
NutzerGuidformGuidNo
BillingInformationformBillingInformationNo
BillingInformation Parameters:
NameParameterData TypeRequiredDescription
GuidformstringNo
FromformDateTimeNo
ToformDateTimeNo
IsCompletedformboolNo
HasNebenkostenformboolNo

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 /api/v1/direktkosten/{Guid} HTTP/1.1 
Host: beson-servdesk.eras-online.de 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	direktkosten: 
	{
		guid: 00000000000000000000000000000000,
		label: String,
		date: 0001-01-01T00:00:00Z,
		brutto: 0,
		salesTax: 0,
		quantity: 0,
		type: String,
		isDeleted: False,
		isCreatedByApp: False,
		nutzerGuid: 00000000000000000000000000000000,
		billingInformation: 
		{
			guid: String,
			from: 0001-01-01T00:00:00Z,
			to: 0001-01-01T00:00:00Z,
			isCompleted: False,
			hasNebenkosten: False
		}
	},
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}