POST api/Accounting/AddReciept
Request Information
URI Parameters
None.
Body Parameters
Add_Reciept| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | integer |
None. |
|
| Amount | decimal number |
None. |
|
| DiscountAmount | decimal number |
None. |
|
| CurrencyId | integer |
None. |
|
| CurrencyRate | decimal number |
None. |
|
| RecieptDate | string |
None. |
|
| Details | string |
None. |
|
| VoucherType | string |
None. |
|
| TurkishRevenue | boolean |
None. |
|
| ChequeBankNo | string |
None. |
|
| ChequeNo | string |
None. |
|
| ChequeDueDate | string |
None. |
|
| ChequeID | integer |
None. |
|
| FronImage | string |
None. |
|
| BackImage | string |
None. |
|
| User_Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"Amount": 2.1,
"DiscountAmount": 3.1,
"CurrencyId": 4,
"CurrencyRate": 5.1,
"RecieptDate": "sample string 6",
"Details": "sample string 7",
"VoucherType": "sample string 8",
"TurkishRevenue": true,
"ChequeBankNo": "sample string 10",
"ChequeNo": "sample string 11",
"ChequeDueDate": "sample string 12",
"ChequeID": 13,
"FronImage": "sample string 14",
"BackImage": "sample string 15",
"User_Name": "sample string 16"
}
application/xml, text/xml
Sample:
<Add_Reciept xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.ViewModels"> <Amount>2.1</Amount> <BackImage>sample string 15</BackImage> <ChequeBankNo>sample string 10</ChequeBankNo> <ChequeDueDate>sample string 12</ChequeDueDate> <ChequeID>13</ChequeID> <ChequeNo>sample string 11</ChequeNo> <CurrencyId>4</CurrencyId> <CurrencyRate>5.1</CurrencyRate> <CustomerId>1</CustomerId> <Details>sample string 7</Details> <DiscountAmount>3.1</DiscountAmount> <FronImage>sample string 14</FronImage> <RecieptDate>sample string 6</RecieptDate> <TurkishRevenue>true</TurkishRevenue> <User_Name>sample string 16</User_Name> <VoucherType>sample string 8</VoucherType> </Add_Reciept>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | string |
None. |
|
| ErrorText | string |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": "sample string 1",
"ErrorText": "sample string 2",
"Data": {}
}
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models"> <Data /> <ErrorText>sample string 2</ErrorText> <Success>sample string 1</Success> </ResultModel>