POST jxc_api/JournalPayment/CashDiscountOffset

Request Information

URI Parameters

None.

Body Parameters

JofCashDiscountEditModel
NameDescriptionTypeAdditional information
OfMode

integer

Required

Id

integer

None.

No

string

None.

Date

date

Required

AsId

integer

None.

AcId

integer

None.

Amount

decimal number

Required

Type

integer

Required

TypeName

string

None.

DepartmentId

integer

None.

DepartmentName

string

None.

AccountingItemId

integer

None.

SettlePeriodId

integer

None.

SettlePeriodDate

date

None.

OrpType

integer

None.

BillItems

Collection of JofSourceEntryEditModel

Required

Request Formats

application/json, text/json

Sample:
{
  "OfMode": 1,
  "Id": 2,
  "No": "sample string 3",
  "Date": "2024-11-25 02:32:02",
  "AsId": 5,
  "AcId": 6,
  "Amount": 7.0,
  "Type": 8,
  "TypeName": "sample string 9",
  "DepartmentId": 10,
  "DepartmentName": "sample string 11",
  "AccountingItemId": 12,
  "SettlePeriodId": 13,
  "SettlePeriodDate": "2024-11-25 02:32:02",
  "OrpType": 15,
  "BillItems": [
    {
      "PayeeType": 1010,
      "VcId": 1,
      "BillDate": "2024-11-25 02:32:02",
      "BillBType": 1010,
      "Id": 3,
      "BillNo": "sample string 4",
      "BillAmount": 5.0,
      "BillOFDAmount": 6.0,
      "BillOFUAmount": 7.0,
      "BillOFAmount": 8.0,
      "InitBillOFUAmount": -1.0
    },
    {
      "PayeeType": 1010,
      "VcId": 1,
      "BillDate": "2024-11-25 02:32:02",
      "BillBType": 1010,
      "Id": 3,
      "BillNo": "sample string 4",
      "BillAmount": 5.0,
      "BillOFDAmount": 6.0,
      "BillOFUAmount": 7.0,
      "BillOFAmount": 8.0,
      "InitBillOFUAmount": -1.0
    }
  ]
}

application/xml, text/xml

Sample:
<JofCashDiscountEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Money.Models">
  <AcId>6</AcId>
  <AccountingItemId>12</AccountingItemId>
  <Amount>7</Amount>
  <AsId>5</AsId>
  <BillItems>
    <JofSourceEntryEditModel>
      <BillAmount>5</BillAmount>
      <BillBType>Purchase</BillBType>
      <BillDate>2024-11-25T02:32:02.5846494+08:00</BillDate>
      <BillNo>sample string 4</BillNo>
      <BillOFAmount>8</BillOFAmount>
      <BillOFDAmount>6</BillOFDAmount>
      <BillOFUAmount>7</BillOFUAmount>
      <Id>3</Id>
      <PayeeType>Customer</PayeeType>
      <VcId>1</VcId>
    </JofSourceEntryEditModel>
    <JofSourceEntryEditModel>
      <BillAmount>5</BillAmount>
      <BillBType>Purchase</BillBType>
      <BillDate>2024-11-25T02:32:02.5846494+08:00</BillDate>
      <BillNo>sample string 4</BillNo>
      <BillOFAmount>8</BillOFAmount>
      <BillOFDAmount>6</BillOFDAmount>
      <BillOFUAmount>7</BillOFUAmount>
      <Id>3</Id>
      <PayeeType>Customer</PayeeType>
      <VcId>1</VcId>
    </JofSourceEntryEditModel>
  </BillItems>
  <Date>2024-11-25T02:32:02.5846494+08:00</Date>
  <DepartmentId>10</DepartmentId>
  <DepartmentName>sample string 11</DepartmentName>
  <Id>2</Id>
  <No>sample string 3</No>
  <OfMode>1</OfMode>
  <OrpType>15</OrpType>
  <SettlePeriodDate>2024-11-25T02:32:02.5846494+08:00</SettlePeriodDate>
  <SettlePeriodId>13</SettlePeriodId>
  <Type>8</Type>
  <TypeName>sample string 9</TypeName>
</JofCashDiscountEditModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

WebApi.IdNoPair
NameDescriptionTypeAdditional information
Id

integer

None.

No

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "No": "sample string 2",
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<IdNoPair xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Models">
  <Id>1</Id>
  <Message>sample string 3</Message>
  <No>sample string 2</No>
</IdNoPair>