POST api/LisenCavali/Cavali

Request Information

URI Parameters

None.

Body Parameters

ModelResponseGetInvoice
NameDescriptionTypeAdditional information
getInvoiceResponse

GetInvoiceResponse

None.

Request Formats

application/json, text/json

Sample:
{
  "getInvoiceResponse": {
    "invoiceDetail": {
      "invoice": [
        {
          "processNumber": 1,
          "acqRegister": 1,
          "sunatResponse": 1,
          "acqResponse": 1,
          "invoiceState": 1,
          "stateProcess": "sample string 1",
          "processResult": "sample string 2"
        },
        {
          "processNumber": 1,
          "acqRegister": 1,
          "sunatResponse": 1,
          "acqResponse": 1,
          "invoiceState": 1,
          "stateProcess": "sample string 1",
          "processResult": "sample string 2"
        }
      ]
    }
  }
}

application/xml, text/xml

Sample:
<ModelResponseGetInvoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiCavaliExterno.Models.WS">
  <getInvoiceResponse>
    <invoiceDetail>
      <invoice>
        <Invoiced>
          <acqRegister>1</acqRegister>
          <acqResponse>1</acqResponse>
          <invoiceState>1</invoiceState>
          <processNumber>1</processNumber>
          <processResult>sample string 2</processResult>
          <stateProcess>sample string 1</stateProcess>
          <sunatResponse>1</sunatResponse>
        </Invoiced>
        <Invoiced>
          <acqRegister>1</acqRegister>
          <acqResponse>1</acqResponse>
          <invoiceState>1</invoiceState>
          <processNumber>1</processNumber>
          <processResult>sample string 2</processResult>
          <stateProcess>sample string 1</stateProcess>
          <sunatResponse>1</sunatResponse>
        </Invoiced>
      </invoice>
    </invoiceDetail>
  </getInvoiceResponse>
</ModelResponseGetInvoice>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Reply
NameDescriptionTypeAdditional information
result

integer

None.

data

Object

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "result": 1,
  "data": {},
  "message": "sample string 3"
}

application/xml, text/xml

Sample:
<Reply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiCavaliExterno.Models.WS">
  <data />
  <message>sample string 3</message>
  <result>1</result>
</Reply>