POST dz_api/Invoice/UpdateInvoice

代账服务-更改收票信息

Request Information

URI Parameters

None.

Body Parameters

ReceiveInvoiceModel
NameDescriptionTypeAdditional information
CustId

客户ID

integer

None.

RiId

收票记录ID

integer

None.

InvoiceDate

收票日期

date

None.

Year

integer

None.

Note

备注

string

None.

Months

Collection of integer

None.

PushOnOrOff

是否开启推送

boolean

None.

HasItem

是否有详情

boolean

None.

Total

合计

InvoiceItemModel

None.

Items

收票明细

Collection of InvoiceItemModel

None.

Request Formats

application/json, text/json

Sample:
{
  "CustId": 1,
  "RiId": 2,
  "InvoiceDate": "2024-03-28T22:41:40.3284822+08:00",
  "Year": 4,
  "Note": "sample string 5",
  "Months": [
    1,
    2
  ],
  "PushOnOrOff": true,
  "HasItem": true,
  "Total": {
    "InvoiceTypeId": 0,
    "InvoiceTypeName": "合计",
    "Count": 6,
    "Amount": 8.0,
    "TaxAmount": 10.0
  },
  "Items": [
    {
      "InvoiceTypeId": 1,
      "InvoiceTypeName": "sample string 2",
      "Count": 3,
      "Amount": 4.0,
      "TaxAmount": 5.0
    },
    {
      "InvoiceTypeId": 1,
      "InvoiceTypeName": "sample string 2",
      "Count": 3,
      "Amount": 4.0,
      "TaxAmount": 5.0
    }
  ]
}

application/xml, text/xml

Sample:
<ReceiveInvoiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAa.Model.Aa">
  <CustId>1</CustId>
  <InvoiceDate>2024-03-28T22:41:40.3284822+08:00</InvoiceDate>
  <Items>
    <InvoiceItemModel>
      <Amount>4</Amount>
      <Count>3</Count>
      <InvoiceTypeId>1</InvoiceTypeId>
      <InvoiceTypeName>sample string 2</InvoiceTypeName>
      <TaxAmount>5</TaxAmount>
    </InvoiceItemModel>
    <InvoiceItemModel>
      <Amount>4</Amount>
      <Count>3</Count>
      <InvoiceTypeId>1</InvoiceTypeId>
      <InvoiceTypeName>sample string 2</InvoiceTypeName>
      <TaxAmount>5</TaxAmount>
    </InvoiceItemModel>
  </Items>
  <Months xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Months>
  <Note>sample string 5</Note>
  <PushOnOrOff>true</PushOnOrOff>
  <RiId>2</RiId>
  <Year>4</Year>
</ReceiveInvoiceModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

代账服务-更改收票信息

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>