POST api/Kredit

Add kredit to an order.

Request Information

URI Parameters

None.

Body Parameters

kredit object consisting of Kaupid, KreditUpphaed, Notandanafn, Astaeda

KreditDto
NameDescriptionTypeAdditional information
KaupId

Kaup id.

integer

None.

KreditUpphaed

Credit amount.

decimal number

None.

Notandanafn

Username of person adding the credit transaction.

string

None.

Astaeda

Reason for credit.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "KaupId": 1,
  "KreditUpphaed": 2.0,
  "Notandanafn": "sample string 3",
  "Astaeda": "sample string 4"
}

application/xml, text/xml

Sample:
<KreditDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Greidslumidlun.Api.Dto.Credit">
  <Astaeda>sample string 4</Astaeda>
  <KaupId>1</KaupId>
  <KreditUpphaed>2</KreditUpphaed>
  <Notandanafn>sample string 3</Notandanafn>
</KreditDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'KreditDto'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.