POST api/DFCPayments/InsertOrUpdateDFCPayment?userId={userId}&isOpen={isOpen}&grossValue={grossValue}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

integer

Required

isOpen

boolean

Required

grossValue

decimal number

Required

Body Parameters

DFCPayments
NameDescriptionTypeAdditional information
PaymentId

integer

None.

PaymentDate

date

None.

CommodityId

integer

None.

BankAccountNo

string

None.

ChallanNo

string

None.

NoOfBags

integer

None.

BagWeight

decimal number

None.

TotalWeight

decimal number

None.

RateUnitId

integer

None.

RatePerUnit

decimal number

None.

TTLValueWheet

decimal number

None.

BagsTypeId

integer

None.

BagsClassId

integer

None.

BagsQty

integer

None.

PricePerBag

decimal number

None.

Cost

decimal number

None.

BagsCost

decimal number

None.

TTLValueBags

decimal number

None.

IsPosted

boolean

None.

Narration

string

None.

CurrencyId

integer

None.

ListBody

Collection of AuthorityLetters

None.

Request Formats

application/json, text/json

Sample:
{
  "PaymentId": 1,
  "PaymentDate": "2026-06-24T04:25:47.4724123-07:00",
  "CommodityId": 3,
  "BankAccountNo": "sample string 4",
  "ChallanNo": "sample string 5",
  "NoOfBags": 6,
  "BagWeight": 7.0,
  "TotalWeight": 8.0,
  "RateUnitId": 9,
  "RatePerUnit": 10.0,
  "TTLValueWheet": 11.0,
  "BagsTypeId": 12,
  "BagsClassId": 13,
  "BagsQty": 14,
  "PricePerBag": 15.0,
  "Cost": 16.0,
  "BagsCost": 17.0,
  "TTLValueBags": 18.0,
  "IsPosted": true,
  "Narration": "sample string 20",
  "CurrencyId": 21,
  "ListBody": [
    {
      "LetterID": 1,
      "PermitNo": "sample string 2",
      "PermitDate": "2026-06-24T04:25:47.4724123-07:00",
      "PaymentId": 4,
      "PRCenterId": 5,
      "NoOfBags": 6,
      "BagWeight": 7.0,
      "TotalWeight": 8.0,
      "IsWithBags": true,
      "CenterName": "sample string 10"
    },
    {
      "LetterID": 1,
      "PermitNo": "sample string 2",
      "PermitDate": "2026-06-24T04:25:47.4724123-07:00",
      "PaymentId": 4,
      "PRCenterId": 5,
      "NoOfBags": 6,
      "BagWeight": 7.0,
      "TotalWeight": 8.0,
      "IsWithBags": true,
      "CenterName": "sample string 10"
    }
  ]
}

application/xml, text/xml

Sample:
<DFCPayments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects">
  <BagWeight>7</BagWeight>
  <BagsClassId>13</BagsClassId>
  <BagsCost>17</BagsCost>
  <BagsQty>14</BagsQty>
  <BagsTypeId>12</BagsTypeId>
  <BankAccountNo>sample string 4</BankAccountNo>
  <ChallanNo>sample string 5</ChallanNo>
  <CommodityId>3</CommodityId>
  <Cost>16</Cost>
  <CurrencyId>21</CurrencyId>
  <IsPosted>true</IsPosted>
  <ListBody>
    <AuthorityLetters>
      <BagWeight>7</BagWeight>
      <CenterName>sample string 10</CenterName>
      <IsWithBags>true</IsWithBags>
      <LetterID>1</LetterID>
      <NoOfBags>6</NoOfBags>
      <PRCenterId>5</PRCenterId>
      <PaymentId>4</PaymentId>
      <PermitDate>2026-06-24T04:25:47.4724123-07:00</PermitDate>
      <PermitNo>sample string 2</PermitNo>
      <TotalWeight>8</TotalWeight>
    </AuthorityLetters>
    <AuthorityLetters>
      <BagWeight>7</BagWeight>
      <CenterName>sample string 10</CenterName>
      <IsWithBags>true</IsWithBags>
      <LetterID>1</LetterID>
      <NoOfBags>6</NoOfBags>
      <PRCenterId>5</PRCenterId>
      <PaymentId>4</PaymentId>
      <PermitDate>2026-06-24T04:25:47.4724123-07:00</PermitDate>
      <PermitNo>sample string 2</PermitNo>
      <TotalWeight>8</TotalWeight>
    </AuthorityLetters>
  </ListBody>
  <Narration>sample string 20</Narration>
  <NoOfBags>6</NoOfBags>
  <PaymentDate>2026-06-24T04:25:47.4724123-07:00</PaymentDate>
  <PaymentId>1</PaymentId>
  <PricePerBag>15</PricePerBag>
  <RatePerUnit>10</RatePerUnit>
  <RateUnitId>9</RateUnitId>
  <TTLValueBags>18</TTLValueBags>
  <TTLValueWheet>11</TTLValueWheet>
  <TotalWeight>8</TotalWeight>
</DFCPayments>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.