POST jxc_api/InvoiceBill/PostInvoice

Request Information

URI Parameters

None.

Body Parameters

PostInvoicePara
NameDescriptionTypeAdditional information
models

Collection of InvoiceModel

None.

Request Formats

application/json, text/json

Sample:
{
  "models": [
    {
      "AsId": 1,
      "InvoiceId": 2,
      "InvoiceCategory": 3,
      "InvoiceType": 4,
      "InvoiceDate": "2024-11-25 02:55:25",
      "Code": "sample string 6",
      "Number": "sample string 7",
      "IsInvalid": true,
      "Name": "sample string 9",
      "Note": "sample string 10",
      "IsDetail": true,
      "Amount": 11.0,
      "Tax": 12.0,
      "AdValoremTaxTotals": 23.0,
      "InvoiceEntries": [
        {
          "Sn": 1,
          "Name": "sample string 2",
          "Model": "sample string 3",
          "Unit": "sample string 4",
          "Quality": 1.0,
          "Amount": 5.0,
          "TaxRate": 6.0,
          "Tax": 7.0,
          "TaxProject": 8,
          "TaxCountingMethod": 9,
          "SpecificBusinessTypes": "sample string 10"
        },
        {
          "Sn": 1,
          "Name": "sample string 2",
          "Model": "sample string 3",
          "Unit": "sample string 4",
          "Quality": 1.0,
          "Amount": 5.0,
          "TaxRate": 6.0,
          "Tax": 7.0,
          "TaxProject": 8,
          "TaxCountingMethod": 9,
          "SpecificBusinessTypes": "sample string 10"
        }
      ]
    },
    {
      "AsId": 1,
      "InvoiceId": 2,
      "InvoiceCategory": 3,
      "InvoiceType": 4,
      "InvoiceDate": "2024-11-25 02:55:25",
      "Code": "sample string 6",
      "Number": "sample string 7",
      "IsInvalid": true,
      "Name": "sample string 9",
      "Note": "sample string 10",
      "IsDetail": true,
      "Amount": 11.0,
      "Tax": 12.0,
      "AdValoremTaxTotals": 23.0,
      "InvoiceEntries": [
        {
          "Sn": 1,
          "Name": "sample string 2",
          "Model": "sample string 3",
          "Unit": "sample string 4",
          "Quality": 1.0,
          "Amount": 5.0,
          "TaxRate": 6.0,
          "Tax": 7.0,
          "TaxProject": 8,
          "TaxCountingMethod": 9,
          "SpecificBusinessTypes": "sample string 10"
        },
        {
          "Sn": 1,
          "Name": "sample string 2",
          "Model": "sample string 3",
          "Unit": "sample string 4",
          "Quality": 1.0,
          "Amount": 5.0,
          "TaxRate": 6.0,
          "Tax": 7.0,
          "TaxProject": 8,
          "TaxCountingMethod": 9,
          "SpecificBusinessTypes": "sample string 10"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<PostInvoicePara xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.ToAcc.Models">
  <models xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonAcc.Invoice.DTO">
    <d2p1:InvoiceModel>
      <d2p1:_x003C_Amount_x003E_k__BackingField>11</d2p1:_x003C_Amount_x003E_k__BackingField>
      <d2p1:_x003C_AsId_x003E_k__BackingField>1</d2p1:_x003C_AsId_x003E_k__BackingField>
      <d2p1:_x003C_Code_x003E_k__BackingField>sample string 6</d2p1:_x003C_Code_x003E_k__BackingField>
      <d2p1:_x003C_InvoiceCategory_x003E_k__BackingField>3</d2p1:_x003C_InvoiceCategory_x003E_k__BackingField>
      <d2p1:_x003C_InvoiceDate_x003E_k__BackingField>2024-11-25T02:55:25.5739951+08:00</d2p1:_x003C_InvoiceDate_x003E_k__BackingField>
      <d2p1:_x003C_InvoiceEntries_x003E_k__BackingField>
        <d2p1:InvoiceEntryModel>
          <d2p1:_x003C_Amount_x003E_k__BackingField>5</d2p1:_x003C_Amount_x003E_k__BackingField>
          <d2p1:_x003C_Model_x003E_k__BackingField>sample string 3</d2p1:_x003C_Model_x003E_k__BackingField>
          <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField>
          <d2p1:_x003C_Quality_x003E_k__BackingField>1</d2p1:_x003C_Quality_x003E_k__BackingField>
          <d2p1:_x003C_Sn_x003E_k__BackingField>1</d2p1:_x003C_Sn_x003E_k__BackingField>
          <d2p1:_x003C_SpecificBusinessTypes_x003E_k__BackingField>sample string 10</d2p1:_x003C_SpecificBusinessTypes_x003E_k__BackingField>
          <d2p1:_x003C_TaxCountingMethod_x003E_k__BackingField>9</d2p1:_x003C_TaxCountingMethod_x003E_k__BackingField>
          <d2p1:_x003C_TaxProject_x003E_k__BackingField>8</d2p1:_x003C_TaxProject_x003E_k__BackingField>
          <d2p1:_x003C_TaxRate_x003E_k__BackingField>6</d2p1:_x003C_TaxRate_x003E_k__BackingField>
          <d2p1:_x003C_Tax_x003E_k__BackingField>7</d2p1:_x003C_Tax_x003E_k__BackingField>
          <d2p1:_x003C_Unit_x003E_k__BackingField>sample string 4</d2p1:_x003C_Unit_x003E_k__BackingField>
        </d2p1:InvoiceEntryModel>
        <d2p1:InvoiceEntryModel>
          <d2p1:_x003C_Amount_x003E_k__BackingField>5</d2p1:_x003C_Amount_x003E_k__BackingField>
          <d2p1:_x003C_Model_x003E_k__BackingField>sample string 3</d2p1:_x003C_Model_x003E_k__BackingField>
          <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField>
          <d2p1:_x003C_Quality_x003E_k__BackingField>1</d2p1:_x003C_Quality_x003E_k__BackingField>
          <d2p1:_x003C_Sn_x003E_k__BackingField>1</d2p1:_x003C_Sn_x003E_k__BackingField>
          <d2p1:_x003C_SpecificBusinessTypes_x003E_k__BackingField>sample string 10</d2p1:_x003C_SpecificBusinessTypes_x003E_k__BackingField>
          <d2p1:_x003C_TaxCountingMethod_x003E_k__BackingField>9</d2p1:_x003C_TaxCountingMethod_x003E_k__BackingField>
          <d2p1:_x003C_TaxProject_x003E_k__BackingField>8</d2p1:_x003C_TaxProject_x003E_k__BackingField>
          <d2p1:_x003C_TaxRate_x003E_k__BackingField>6</d2p1:_x003C_TaxRate_x003E_k__BackingField>
          <d2p1:_x003C_Tax_x003E_k__BackingField>7</d2p1:_x003C_Tax_x003E_k__BackingField>
          <d2p1:_x003C_Unit_x003E_k__BackingField>sample string 4</d2p1:_x003C_Unit_x003E_k__BackingField>
        </d2p1:InvoiceEntryModel>
      </d2p1:_x003C_InvoiceEntries_x003E_k__BackingField>
      <d2p1:_x003C_InvoiceId_x003E_k__BackingField>2</d2p1:_x003C_InvoiceId_x003E_k__BackingField>
      <d2p1:_x003C_InvoiceType_x003E_k__BackingField>4</d2p1:_x003C_InvoiceType_x003E_k__BackingField>
      <d2p1:_x003C_IsInvalid_x003E_k__BackingField>true</d2p1:_x003C_IsInvalid_x003E_k__BackingField>
      <d2p1:_x003C_Name_x003E_k__BackingField>sample string 9</d2p1:_x003C_Name_x003E_k__BackingField>
      <d2p1:_x003C_Note_x003E_k__BackingField>sample string 10</d2p1:_x003C_Note_x003E_k__BackingField>
      <d2p1:_x003C_Number_x003E_k__BackingField>sample string 7</d2p1:_x003C_Number_x003E_k__BackingField>
      <d2p1:_x003C_Tax_x003E_k__BackingField>12</d2p1:_x003C_Tax_x003E_k__BackingField>
    </d2p1:InvoiceModel>
    <d2p1:InvoiceModel>
      <d2p1:_x003C_Amount_x003E_k__BackingField>11</d2p1:_x003C_Amount_x003E_k__BackingField>
      <d2p1:_x003C_AsId_x003E_k__BackingField>1</d2p1:_x003C_AsId_x003E_k__BackingField>
      <d2p1:_x003C_Code_x003E_k__BackingField>sample string 6</d2p1:_x003C_Code_x003E_k__BackingField>
      <d2p1:_x003C_InvoiceCategory_x003E_k__BackingField>3</d2p1:_x003C_InvoiceCategory_x003E_k__BackingField>
      <d2p1:_x003C_InvoiceDate_x003E_k__BackingField>2024-11-25T02:55:25.5739951+08:00</d2p1:_x003C_InvoiceDate_x003E_k__BackingField>
      <d2p1:_x003C_InvoiceEntries_x003E_k__BackingField>
        <d2p1:InvoiceEntryModel>
          <d2p1:_x003C_Amount_x003E_k__BackingField>5</d2p1:_x003C_Amount_x003E_k__BackingField>
          <d2p1:_x003C_Model_x003E_k__BackingField>sample string 3</d2p1:_x003C_Model_x003E_k__BackingField>
          <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField>
          <d2p1:_x003C_Quality_x003E_k__BackingField>1</d2p1:_x003C_Quality_x003E_k__BackingField>
          <d2p1:_x003C_Sn_x003E_k__BackingField>1</d2p1:_x003C_Sn_x003E_k__BackingField>
          <d2p1:_x003C_SpecificBusinessTypes_x003E_k__BackingField>sample string 10</d2p1:_x003C_SpecificBusinessTypes_x003E_k__BackingField>
          <d2p1:_x003C_TaxCountingMethod_x003E_k__BackingField>9</d2p1:_x003C_TaxCountingMethod_x003E_k__BackingField>
          <d2p1:_x003C_TaxProject_x003E_k__BackingField>8</d2p1:_x003C_TaxProject_x003E_k__BackingField>
          <d2p1:_x003C_TaxRate_x003E_k__BackingField>6</d2p1:_x003C_TaxRate_x003E_k__BackingField>
          <d2p1:_x003C_Tax_x003E_k__BackingField>7</d2p1:_x003C_Tax_x003E_k__BackingField>
          <d2p1:_x003C_Unit_x003E_k__BackingField>sample string 4</d2p1:_x003C_Unit_x003E_k__BackingField>
        </d2p1:InvoiceEntryModel>
        <d2p1:InvoiceEntryModel>
          <d2p1:_x003C_Amount_x003E_k__BackingField>5</d2p1:_x003C_Amount_x003E_k__BackingField>
          <d2p1:_x003C_Model_x003E_k__BackingField>sample string 3</d2p1:_x003C_Model_x003E_k__BackingField>
          <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField>
          <d2p1:_x003C_Quality_x003E_k__BackingField>1</d2p1:_x003C_Quality_x003E_k__BackingField>
          <d2p1:_x003C_Sn_x003E_k__BackingField>1</d2p1:_x003C_Sn_x003E_k__BackingField>
          <d2p1:_x003C_SpecificBusinessTypes_x003E_k__BackingField>sample string 10</d2p1:_x003C_SpecificBusinessTypes_x003E_k__BackingField>
          <d2p1:_x003C_TaxCountingMethod_x003E_k__BackingField>9</d2p1:_x003C_TaxCountingMethod_x003E_k__BackingField>
          <d2p1:_x003C_TaxProject_x003E_k__BackingField>8</d2p1:_x003C_TaxProject_x003E_k__BackingField>
          <d2p1:_x003C_TaxRate_x003E_k__BackingField>6</d2p1:_x003C_TaxRate_x003E_k__BackingField>
          <d2p1:_x003C_Tax_x003E_k__BackingField>7</d2p1:_x003C_Tax_x003E_k__BackingField>
          <d2p1:_x003C_Unit_x003E_k__BackingField>sample string 4</d2p1:_x003C_Unit_x003E_k__BackingField>
        </d2p1:InvoiceEntryModel>
      </d2p1:_x003C_InvoiceEntries_x003E_k__BackingField>
      <d2p1:_x003C_InvoiceId_x003E_k__BackingField>2</d2p1:_x003C_InvoiceId_x003E_k__BackingField>
      <d2p1:_x003C_InvoiceType_x003E_k__BackingField>4</d2p1:_x003C_InvoiceType_x003E_k__BackingField>
      <d2p1:_x003C_IsInvalid_x003E_k__BackingField>true</d2p1:_x003C_IsInvalid_x003E_k__BackingField>
      <d2p1:_x003C_Name_x003E_k__BackingField>sample string 9</d2p1:_x003C_Name_x003E_k__BackingField>
      <d2p1:_x003C_Note_x003E_k__BackingField>sample string 10</d2p1:_x003C_Note_x003E_k__BackingField>
      <d2p1:_x003C_Number_x003E_k__BackingField>sample string 7</d2p1:_x003C_Number_x003E_k__BackingField>
      <d2p1:_x003C_Tax_x003E_k__BackingField>12</d2p1:_x003C_Tax_x003E_k__BackingField>
    </d2p1:InvoiceModel>
  </models>
</PostInvoicePara>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

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