POST api/Accounting/AddInvoice

Request Information

URI Parameters

None.

Body Parameters

Add_Invoice
NameDescriptionTypeAdditional information
CustomerId

integer

None.

Amount

decimal number

None.

InvoiceDate

string

None.

Details

string

None.

UserName

string

None.

TurkishRevenue

boolean

None.

CurrencyId

integer

None.

CurrencyRate

decimal number

None.

User_Name

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "Amount": 2.1,
  "InvoiceDate": "sample string 3",
  "Details": "sample string 4",
  "UserName": "sample string 5",
  "TurkishRevenue": true,
  "CurrencyId": 7,
  "CurrencyRate": 8.1,
  "User_Name": "sample string 9"
}

application/xml, text/xml

Sample:
<Add_Invoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.ViewModels">
  <Amount>2.1</Amount>
  <CurrencyId>7</CurrencyId>
  <CurrencyRate>8.1</CurrencyRate>
  <CustomerId>1</CustomerId>
  <Details>sample string 4</Details>
  <InvoiceDate>sample string 3</InvoiceDate>
  <TurkishRevenue>true</TurkishRevenue>
  <UserName>sample string 5</UserName>
  <User_Name>sample string 9</User_Name>
</Add_Invoice>

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 'Add_Invoice'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>