POST api/Accounting/postCreateCreditNote
Request Information
URI Parameters
None.
Body Parameters
mCreateCreditNote| Name | Description | Type | Additional information |
|---|---|---|---|
| cust_id | integer |
None. |
|
| taxInvoiceDeliveryNoteId | integer |
None. |
|
| documentFormat | string |
None. |
|
| referenceText | string |
None. |
|
| vat | boolean |
None. |
|
| vatName | string |
None. |
|
| remark | string |
None. |
|
| cashOrPercent | string |
None. |
|
| cashOrPercentAmount | decimal number |
None. |
|
| totalPrice | decimal number |
None. |
|
| totalAmount | decimal number |
None. |
|
| creditNoteList | Collection of mList |
None. |
|
| creditNoteModels | Collection of mModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"cust_id": 1,
"taxInvoiceDeliveryNoteId": 1,
"documentFormat": "sample string 1",
"referenceText": "sample string 2",
"vat": true,
"vatName": "sample string 4",
"remark": "sample string 5",
"cashOrPercent": "sample string 6",
"cashOrPercentAmount": 7.0,
"totalPrice": 8.0,
"totalAmount": 9.0,
"creditNoteList": [
{
"listName": "sample string 1",
"unit_list": 2,
"price_list": 3.0
},
{
"listName": "sample string 1",
"unit_list": 2,
"price_list": 3.0
}
],
"creditNoteModels": [
{
"modelNO": "sample string 1",
"color": "sample string 2",
"sizes": [
{
"size": 1,
"unit_model": 2
},
{
"size": 1,
"unit_model": 2
}
]
},
{
"modelNO": "sample string 1",
"color": "sample string 2",
"sizes": [
{
"size": 1,
"unit_model": 2
},
{
"size": 1,
"unit_model": 2
}
]
}
]
}
application/xml, text/xml
Sample:
<mCreateCreditNote xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Accounting">
<cashOrPercent>sample string 6</cashOrPercent>
<cashOrPercentAmount>7</cashOrPercentAmount>
<creditNoteList>
<mList>
<listName>sample string 1</listName>
<price_list>3</price_list>
<unit_list>2</unit_list>
</mList>
<mList>
<listName>sample string 1</listName>
<price_list>3</price_list>
<unit_list>2</unit_list>
</mList>
</creditNoteList>
<creditNoteModels>
<mModel>
<color>sample string 2</color>
<modelNO>sample string 1</modelNO>
<sizes>
<mSize>
<size>1</size>
<unit_model>2</unit_model>
</mSize>
<mSize>
<size>1</size>
<unit_model>2</unit_model>
</mSize>
</sizes>
</mModel>
<mModel>
<color>sample string 2</color>
<modelNO>sample string 1</modelNO>
<sizes>
<mSize>
<size>1</size>
<unit_model>2</unit_model>
</mSize>
<mSize>
<size>1</size>
<unit_model>2</unit_model>
</mSize>
</sizes>
</mModel>
</creditNoteModels>
<cust_id>1</cust_id>
<documentFormat>sample string 1</documentFormat>
<referenceText>sample string 2</referenceText>
<remark>sample string 5</remark>
<taxInvoiceDeliveryNoteId>1</taxInvoiceDeliveryNoteId>
<totalAmount>9</totalAmount>
<totalPrice>8</totalPrice>
<vat>true</vat>
<vatName>sample string 4</vatName>
</mCreateCreditNote>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.