POST api/Invoice/ApproveIncomingDespatch
Request Information
URI Parameters
None.
Body Parameters
ApproveDespatchRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyId | decimal number |
None. |
|
| DespatchId | decimal number |
None. |
|
| ApprovalType | ResponseType |
None. |
|
| Reason | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CompanyId": 1.0,
"DespatchId": 2.0,
"ApprovalType": 0,
"Reason": "sample string 3"
}
application/xml, text/xml
Sample:
<ApproveDespatchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile"> <ApprovalType>KABUL</ApprovalType> <CompanyId>1</CompanyId> <DespatchId>2</DespatchId> <Reason>sample string 3</Reason> </ApproveDespatchRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApproveDespatchResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | ResultType |
None. |
|
| ErrorMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": 0,
"ErrorMessage": "sample string 1"
}
application/xml, text/xml
Sample:
<ApproveDespatchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile"> <_x003C_ErrorMessage_x003E_k__BackingField>sample string 1</_x003C_ErrorMessage_x003E_k__BackingField> <_x003C_Result_x003E_k__BackingField>Success</_x003C_Result_x003E_k__BackingField> </ApproveDespatchResponse>