POST api/BulkOperation/synchronizePaymentTable

Request Information

URI Parameters

None.

Body Parameters

PaymentBulkParam
NameDescriptionTypeAdditional information
tableName

string

None.

data

Collection of Payment

None.

batchSize

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "tableName": "sample string 1",
  "data": [
    {
      "PId": 1,
      "PaymentDate": "2024-12-23T17:15:10.9557525+01:00",
      "BillReference": "sample string 2",
      "ReceiptNo": "sample string 3",
      "AdmissionNo": "sample string 4",
      "School": "sample string 5",
      "Session": "sample string 6",
      "Term": "sample string 7",
      "Class": "sample string 8",
      "PaymentMode": "sample string 9",
      "PaymentType": "sample string 10",
      "DestinationAccount": "sample string 11",
      "AmountPaid": 1.1,
      "IsReversed": true,
      "BillTotal": 1.1,
      "UnitDiscount": 1.1,
      "TotalDiscount": 1.1,
      "PreviousBalance": 1.1,
      "CurrentBalance": 1.1,
      "CollectedBy": "sample string 12",
      "Details": "sample string 13"
    },
    {
      "PId": 1,
      "PaymentDate": "2024-12-23T17:15:10.9557525+01:00",
      "BillReference": "sample string 2",
      "ReceiptNo": "sample string 3",
      "AdmissionNo": "sample string 4",
      "School": "sample string 5",
      "Session": "sample string 6",
      "Term": "sample string 7",
      "Class": "sample string 8",
      "PaymentMode": "sample string 9",
      "PaymentType": "sample string 10",
      "DestinationAccount": "sample string 11",
      "AmountPaid": 1.1,
      "IsReversed": true,
      "BillTotal": 1.1,
      "UnitDiscount": 1.1,
      "TotalDiscount": 1.1,
      "PreviousBalance": 1.1,
      "CurrentBalance": 1.1,
      "CollectedBy": "sample string 12",
      "Details": "sample string 13"
    }
  ],
  "batchSize": 2
}

application/xml, text/xml

Sample:
<PaymentBulkParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Server.Models">
  <batchSize>2</batchSize>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BaseLibrary.Entities">
    <d2p1:Payment>
      <d2p1:AdmissionNo>sample string 4</d2p1:AdmissionNo>
      <d2p1:AmountPaid>1.1</d2p1:AmountPaid>
      <d2p1:BillReference>sample string 2</d2p1:BillReference>
      <d2p1:BillTotal>1.1</d2p1:BillTotal>
      <d2p1:Class>sample string 8</d2p1:Class>
      <d2p1:CollectedBy>sample string 12</d2p1:CollectedBy>
      <d2p1:CurrentBalance>1.1</d2p1:CurrentBalance>
      <d2p1:DestinationAccount>sample string 11</d2p1:DestinationAccount>
      <d2p1:Details>sample string 13</d2p1:Details>
      <d2p1:IsReversed>true</d2p1:IsReversed>
      <d2p1:PId>1</d2p1:PId>
      <d2p1:PaymentDate>2024-12-23T17:15:10.9557525+01:00</d2p1:PaymentDate>
      <d2p1:PaymentMode>sample string 9</d2p1:PaymentMode>
      <d2p1:PaymentType>sample string 10</d2p1:PaymentType>
      <d2p1:PreviousBalance>1.1</d2p1:PreviousBalance>
      <d2p1:ReceiptNo>sample string 3</d2p1:ReceiptNo>
      <d2p1:School>sample string 5</d2p1:School>
      <d2p1:Session>sample string 6</d2p1:Session>
      <d2p1:Term>sample string 7</d2p1:Term>
      <d2p1:TotalDiscount>1.1</d2p1:TotalDiscount>
      <d2p1:UnitDiscount>1.1</d2p1:UnitDiscount>
    </d2p1:Payment>
    <d2p1:Payment>
      <d2p1:AdmissionNo>sample string 4</d2p1:AdmissionNo>
      <d2p1:AmountPaid>1.1</d2p1:AmountPaid>
      <d2p1:BillReference>sample string 2</d2p1:BillReference>
      <d2p1:BillTotal>1.1</d2p1:BillTotal>
      <d2p1:Class>sample string 8</d2p1:Class>
      <d2p1:CollectedBy>sample string 12</d2p1:CollectedBy>
      <d2p1:CurrentBalance>1.1</d2p1:CurrentBalance>
      <d2p1:DestinationAccount>sample string 11</d2p1:DestinationAccount>
      <d2p1:Details>sample string 13</d2p1:Details>
      <d2p1:IsReversed>true</d2p1:IsReversed>
      <d2p1:PId>1</d2p1:PId>
      <d2p1:PaymentDate>2024-12-23T17:15:10.9557525+01:00</d2p1:PaymentDate>
      <d2p1:PaymentMode>sample string 9</d2p1:PaymentMode>
      <d2p1:PaymentType>sample string 10</d2p1:PaymentType>
      <d2p1:PreviousBalance>1.1</d2p1:PreviousBalance>
      <d2p1:ReceiptNo>sample string 3</d2p1:ReceiptNo>
      <d2p1:School>sample string 5</d2p1:School>
      <d2p1:Session>sample string 6</d2p1:Session>
      <d2p1:Term>sample string 7</d2p1:Term>
      <d2p1:TotalDiscount>1.1</d2p1:TotalDiscount>
      <d2p1:UnitDiscount>1.1</d2p1:UnitDiscount>
    </d2p1:Payment>
  </data>
  <tableName>sample string 1</tableName>
</PaymentBulkParam>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PaymentBulkParam'.

Response Information

Resource Description

None.