To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /delivery/save HTTP/1.1
Host: vendor-api.digisupply.klueh.de
Accept: application/json
Content-Type: application/json
Content-Length: length
{"DNote":{"ClientId":0,"VendorId":0,"GrandTotal":0,"CreationDate":"0001-01-01T00:00:00.0000000","CreationUserId":0,"CreationUserName":"String","ChangeDate":"0001-01-01T00:00:00.0000000","ChangeUserId":0,"ChangeUserName":"String","DNoteStrucs":[{"Id":0,"PosNumber":0,"DNoteId":0,"ItemId":0,"ItemName":"String","Quantity":0,"Unit":"String","Batch":"String","BestBefore":"0001-01-01T00:00:00.0000000","Price":0,"PriceEdited":false,"Total":0,"TotalEdited":false,"ItemNumber":"String","PackingUnit":"String","ContentUnit":"String","CuInPuFactor":0}],"Id":0,"CustNumber":"String","Number":"String","RefNumber":"String","DeliveryDateStr":"String","ExportDate":"0001-01-01T00:00:00.0000000","State":false}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"DNote":{"ClientId":0,"VendorId":0,"GrandTotal":0,"CreationDate":"0001-01-01T00:00:00.0000000","CreationUserId":0,"CreationUserName":"String","ChangeDate":"0001-01-01T00:00:00.0000000","ChangeUserId":0,"ChangeUserName":"String","DNoteStrucs":[{"Id":0,"PosNumber":0,"DNoteId":0,"ItemId":0,"ItemName":"String","Quantity":0,"Unit":"String","Batch":"String","BestBefore":"0001-01-01T00:00:00.0000000","Price":0,"PriceEdited":false,"Total":0,"TotalEdited":false,"ItemNumber":"String","PackingUnit":"String","ContentUnit":"String","CuInPuFactor":0}],"Id":0,"CustNumber":"String","Number":"String","RefNumber":"String","DeliveryDateStr":"String","ExportDate":"0001-01-01T00:00:00.0000000","State":false}}