Server

<back to all web services

PostDirektkosten

Direktkosten
Requires Authentication
The following routes are available for this service:
POST/api/v1/direktkosten
PostDirektkosten Parameters:
NameParameterData TypeRequiredDescription
DirektkostenbodyDirektkostenYes
RelatedToObjektbodyRelatedToYes
RelatedToBillingInformationbodyRelatedToYes
RelatedToNutzerbodyRelatedToYes
BearerTokenbodystringYes
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
RelatedTo Parameters:
NameParameterData TypeRequiredDescription
GuidformGuidNo
PostDirektkostenResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ChecksumMD5formstringNo

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

HTTP + CSV

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

POST /api/v1/direktkosten HTTP/1.1 
Host: messtechnik-horb-servdesk.eras-online.de 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"direktkosten":{"guid":"00000000000000000000000000000000","label":"String","date":"0001-01-01T00:00:00.0000000Z","brutto":0,"salesTax":0,"quantity":0,"type":"String","isDeleted":false,"isCreatedByApp":false,"nutzerGuid":"00000000000000000000000000000000","billingInformation":{"guid":"String","from":"0001-01-01T00:00:00.0000000Z","to":"0001-01-01T00:00:00.0000000Z","isCompleted":false,"hasNebenkosten":false}},"relatedToObjekt":{"guid":"00000000000000000000000000000000"},"relatedToBillingInformation":{"guid":"00000000000000000000000000000000"},"relatedToNutzer":{"guid":"00000000000000000000000000000000"},"bearerToken":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"checksumMD5":"String"}