POST api/Invoice/ApproveStagingInvoice
Request Information
URI Parameters
None.
Body Parameters
ApproveInvoiceRequest| Name | Description | Type | Additional information | 
|---|---|---|---|
| CompanyId | decimal number | 
                             None.  | 
                |
| InvoiceId | decimal number | 
                             None.  | 
                |
| ApprovalType | ResponseType | 
                             None.  | 
                |
| Reason | string | 
                             None.  | 
                
Request Formats
application/json, text/json
            Sample:
        
{
  "CompanyId": 1.0,
  "InvoiceId": 2.0,
  "ApprovalType": 0,
  "Reason": "sample string 3"
}
        application/xml, text/xml
            Sample:
        <ApproveInvoiceRequest 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> <InvoiceId>2</InvoiceId> <Reason>sample string 3</Reason> </ApproveInvoiceRequest>
application/x-www-form-urlencoded
            Sample:
    
        
Response Information
Resource Description
ApproveInvoiceResponse| 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:
<ApproveInvoiceResponse 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> </ApproveInvoiceResponse>