POST api/TaxInvoice/CancelTaxInvoice

Request Information

URI Parameters

None.

Body Parameters

TaxInvoiceModel
NameDescriptionTypeAdditional information
TaxInvoiceDetails

Collection of T_TaxInvoiceDetail

None.

TourCompanySelected

M_TourCompany

None.

ID

globally unique identifier

None.

TourCompany_ID

integer

None.

DocRef

string

Required

TaxInvoiceType

integer

None.

TaxInvoiceNumber

string

String length: inclusive between 0 and 12

TaxInvoiceDate

date

None.

RealTotal

decimal number

None.

Total

decimal number

None.

CancelRemark

string

None.

Remark

string

None.

CreateBy

integer

None.

CreateTime

date

None.

UpdateBy

integer

None.

UpdateTime

date

None.

IsDelete

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "TaxInvoiceDetails": [
    {
      "ID": "6063ba71-6879-4955-bde0-5a432db09942",
      "ProductID": 2,
      "ProductName": "sample string 3",
      "Amount": 4,
      "Price": 5.0,
      "Total": 6.0,
      "CreateBy": 7,
      "CreateTime": "2025-12-11T21:29:00.1073666+07:00",
      "UpdateBy": 1,
      "UpdateTime": "2025-12-11T21:29:00.1073666+07:00",
      "IsDelete": true,
      "T_TaxInvoice_ID": "0f5e1aea-29cc-41a6-9429-e17282e88fac"
    },
    {
      "ID": "6063ba71-6879-4955-bde0-5a432db09942",
      "ProductID": 2,
      "ProductName": "sample string 3",
      "Amount": 4,
      "Price": 5.0,
      "Total": 6.0,
      "CreateBy": 7,
      "CreateTime": "2025-12-11T21:29:00.1073666+07:00",
      "UpdateBy": 1,
      "UpdateTime": "2025-12-11T21:29:00.1073666+07:00",
      "IsDelete": true,
      "T_TaxInvoice_ID": "0f5e1aea-29cc-41a6-9429-e17282e88fac"
    }
  ],
  "TourCompanySelected": {
    "ID": 1,
    "TourCompany_Name": "sample string 2",
    "Customer_Code": "sample string 3",
    "TaxID": "sample string 4",
    "Address": "sample string 5",
    "Tel": "sample string 6",
    "KeepBack": "sample string 7",
    "IsActive": true,
    "IsDelete": true,
    "CreateBy": 9,
    "CreateTime": "2025-12-11T21:29:00.1073666+07:00",
    "UpdateBy": 1,
    "UpdateTime": "2025-12-11T21:29:00.1073666+07:00"
  },
  "ID": "d5444681-e68e-4f43-a531-e6f8ba3eb97b",
  "TourCompany_ID": 2,
  "DocRef": "sample string 3",
  "TaxInvoiceType": 4,
  "TaxInvoiceNumber": "sample string 5",
  "TaxInvoiceDate": "2025-12-11T21:29:00.1073666+07:00",
  "RealTotal": 6.0,
  "Total": 7.0,
  "CancelRemark": "sample string 8",
  "Remark": "sample string 9",
  "CreateBy": 10,
  "CreateTime": "2025-12-11T21:29:00.1073666+07:00",
  "UpdateBy": 1,
  "UpdateTime": "2025-12-11T21:29:00.1073666+07:00",
  "IsDelete": true
}

application/xml, text/xml

Sample:
<TaxInvoiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.CustomModel">
  <CancelRemark xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 8</CancelRemark>
  <CreateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">10</CreateBy>
  <CreateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:29:00.1073666+07:00</CreateTime>
  <DocRef xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 3</DocRef>
  <ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">d5444681-e68e-4f43-a531-e6f8ba3eb97b</ID>
  <IsDelete xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</IsDelete>
  <RealTotal xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">6</RealTotal>
  <Remark xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 9</Remark>
  <TaxInvoiceDate xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:29:00.1073666+07:00</TaxInvoiceDate>
  <TaxInvoiceNumber xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 5</TaxInvoiceNumber>
  <TaxInvoiceType xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">4</TaxInvoiceType>
  <Total xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">7</Total>
  <TourCompany_ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2</TourCompany_ID>
  <UpdateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</UpdateBy>
  <UpdateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:29:00.1073666+07:00</UpdateTime>
  <TaxInvoiceDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">
    <d2p1:T_TaxInvoiceDetail>
      <d2p1:Amount>4</d2p1:Amount>
      <d2p1:CreateBy>7</d2p1:CreateBy>
      <d2p1:CreateTime>2025-12-11T21:29:00.1073666+07:00</d2p1:CreateTime>
      <d2p1:ID>6063ba71-6879-4955-bde0-5a432db09942</d2p1:ID>
      <d2p1:IsDelete>true</d2p1:IsDelete>
      <d2p1:Price>5</d2p1:Price>
      <d2p1:ProductID>2</d2p1:ProductID>
      <d2p1:ProductName>sample string 3</d2p1:ProductName>
      <d2p1:T_TaxInvoice_ID>0f5e1aea-29cc-41a6-9429-e17282e88fac</d2p1:T_TaxInvoice_ID>
      <d2p1:Total>6</d2p1:Total>
      <d2p1:UpdateBy>1</d2p1:UpdateBy>
      <d2p1:UpdateTime>2025-12-11T21:29:00.1073666+07:00</d2p1:UpdateTime>
    </d2p1:T_TaxInvoiceDetail>
    <d2p1:T_TaxInvoiceDetail>
      <d2p1:Amount>4</d2p1:Amount>
      <d2p1:CreateBy>7</d2p1:CreateBy>
      <d2p1:CreateTime>2025-12-11T21:29:00.1073666+07:00</d2p1:CreateTime>
      <d2p1:ID>6063ba71-6879-4955-bde0-5a432db09942</d2p1:ID>
      <d2p1:IsDelete>true</d2p1:IsDelete>
      <d2p1:Price>5</d2p1:Price>
      <d2p1:ProductID>2</d2p1:ProductID>
      <d2p1:ProductName>sample string 3</d2p1:ProductName>
      <d2p1:T_TaxInvoice_ID>0f5e1aea-29cc-41a6-9429-e17282e88fac</d2p1:T_TaxInvoice_ID>
      <d2p1:Total>6</d2p1:Total>
      <d2p1:UpdateBy>1</d2p1:UpdateBy>
      <d2p1:UpdateTime>2025-12-11T21:29:00.1073666+07:00</d2p1:UpdateTime>
    </d2p1:T_TaxInvoiceDetail>
  </TaxInvoiceDetails>
  <TourCompanySelected xmlns:d2p1="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">
    <d2p1:Address>sample string 5</d2p1:Address>
    <d2p1:CreateBy>9</d2p1:CreateBy>
    <d2p1:CreateTime>2025-12-11T21:29:00.1073666+07:00</d2p1:CreateTime>
    <d2p1:Customer_Code>sample string 3</d2p1:Customer_Code>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:IsDelete>true</d2p1:IsDelete>
    <d2p1:KeepBack>sample string 7</d2p1:KeepBack>
    <d2p1:TaxID>sample string 4</d2p1:TaxID>
    <d2p1:Tel>sample string 6</d2p1:Tel>
    <d2p1:TourCompany_Name>sample string 2</d2p1:TourCompany_Name>
    <d2p1:UpdateBy>1</d2p1:UpdateBy>
    <d2p1:UpdateTime>2025-12-11T21:29:00.1073666+07:00</d2p1:UpdateTime>
  </TourCompanySelected>
</TaxInvoiceModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.