POST api/Purchase/InsertPayment

Request Information

URI Parameters

None.

Body Parameters

PaymentsHeadModel
NameDescriptionTypeAdditional information
payHeadnum

integer

None.

payDocPrefix

string

None.

payDocNumb

integer

None.

payDocDate

date

None.

payEntyDate

date

None.

payPdcdate

date

None.

payDoctype

string

None.

payModePaym

string

None.

payDescrip

string

None.

payReferNo

string

None.

supplierKey

integer

None.

supplierName

string

None.

supplierAdrs

string

None.

payDocPost

string

None.

payAmount

decimal number

None.

currencyKey

integer

None.

currencyRate

decimal number

None.

ledgerCashKey

integer

None.

ledgerCashName

string

None.

ledgerDiscKey

integer

None.

ledgerApkey

integer

None.

ledgerApName

string

None.

yearKey

integer

None.

userKey

integer

None.

compKey

integer

None.

branchKey

integer

None.

payPostedBy

integer

None.

payPostedDt

date

None.

payModifiedBy

string

None.

payModifiedDt

date

None.

payAmountpaid

decimal number

None.

payAmtType

string

None.

addEdittag

string

None.

Subsordemo

string

None.

paymentDetailList

Collection of PaymentsDetailModel

None.

paymentApDetailList

Collection of PayableAPModel

None.

Request Formats

application/json, text/json

Sample:
{
  "payHeadnum": 1,
  "payDocPrefix": "sample string 2",
  "payDocNumb": 3,
  "payDocDate": "2026-04-02T05:28:12.5570887+04:00",
  "payEntyDate": "2026-04-02T05:28:12.5570887+04:00",
  "payPdcdate": "2026-04-02T05:28:12.5570887+04:00",
  "payDoctype": "sample string 7",
  "payModePaym": "sample string 8",
  "payDescrip": "sample string 9",
  "payReferNo": "sample string 10",
  "supplierKey": 11,
  "supplierName": "sample string 12",
  "supplierAdrs": "sample string 13",
  "payDocPost": "sample string 14",
  "payAmount": 15.1,
  "currencyKey": 16,
  "currencyRate": 17.1,
  "ledgerCashKey": 18,
  "ledgerCashName": "sample string 19",
  "ledgerDiscKey": 20,
  "ledgerApkey": 21,
  "ledgerApName": "sample string 22",
  "yearKey": 23,
  "userKey": 24,
  "compKey": 25,
  "branchKey": 26,
  "payPostedBy": 27,
  "payPostedDt": "2026-04-02T05:28:12.5570887+04:00",
  "payModifiedBy": "sample string 29",
  "payModifiedDt": "2026-04-02T05:28:12.5570887+04:00",
  "payAmountpaid": 31.1,
  "payAmtType": "sample string 32",
  "addEdittag": "sample string 33",
  "Subsordemo": "sample string 34",
  "paymentDetailList": [
    {
      "payDLinenum": 1,
      "payHeadnum": 2,
      "payDescrip": "sample string 3",
      "payTransDate": "2026-04-02T05:28:12.5570887+04:00",
      "ledgerKey": 5,
      "payDebit": 6.1,
      "payCredit": 7.1,
      "ledgerName": "sample string 8",
      "compKey": 9
    },
    {
      "payDLinenum": 1,
      "payHeadnum": 2,
      "payDescrip": "sample string 3",
      "payTransDate": "2026-04-02T05:28:12.5570887+04:00",
      "ledgerKey": 5,
      "payDebit": 6.1,
      "payCredit": 7.1,
      "ledgerName": "sample string 8",
      "compKey": 9
    }
  ],
  "paymentApDetailList": [
    {
      "apHeadNmb": 1,
      "apDocTag": "sample string 2",
      "apDocPrefix": "sample string 3",
      "apDocNmb": 4,
      "apDocDate": "2026-04-02T05:28:12.5570887+04:00",
      "apDescrip": "sample string 6",
      "apReference": "sample string 7",
      "apAmount": 8.1,
      "paidAmount": 9.1,
      "balEditAmount": 10.1,
      "balAmount": 11.1,
      "supplierKey": 12,
      "supplierCode": "sample string 13",
      "supplierName": "sample string 14",
      "paymteDays": 15,
      "docPosted": "sample string 16",
      "currencyKey": 17,
      "currencyRate": 18.1,
      "yearKey": 19,
      "branchKey": 20,
      "userKey": 21,
      "compKey": 22,
      "totalInvAmt": 23.1,
      "totalpaidAmt": 24.1,
      "totalbalAmt": 25.1
    },
    {
      "apHeadNmb": 1,
      "apDocTag": "sample string 2",
      "apDocPrefix": "sample string 3",
      "apDocNmb": 4,
      "apDocDate": "2026-04-02T05:28:12.5570887+04:00",
      "apDescrip": "sample string 6",
      "apReference": "sample string 7",
      "apAmount": 8.1,
      "paidAmount": 9.1,
      "balEditAmount": 10.1,
      "balAmount": 11.1,
      "supplierKey": 12,
      "supplierCode": "sample string 13",
      "supplierName": "sample string 14",
      "paymteDays": 15,
      "docPosted": "sample string 16",
      "currencyKey": 17,
      "currencyRate": 18.1,
      "yearKey": 19,
      "branchKey": 20,
      "userKey": 21,
      "compKey": 22,
      "totalInvAmt": 23.1,
      "totalpaidAmt": 24.1,
      "totalbalAmt": 25.1
    }
  ]
}

text/xml

Sample:
<PaymentsHeadModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Com.Probooks.ng.Domain.ViewModels">
  <Subsordemo>sample string 34</Subsordemo>
  <addEdittag>sample string 33</addEdittag>
  <branchKey>26</branchKey>
  <compKey>25</compKey>
  <currencyKey>16</currencyKey>
  <currencyRate>17.1</currencyRate>
  <ledgerApName>sample string 22</ledgerApName>
  <ledgerApkey>21</ledgerApkey>
  <ledgerCashKey>18</ledgerCashKey>
  <ledgerCashName>sample string 19</ledgerCashName>
  <ledgerDiscKey>20</ledgerDiscKey>
  <payAmount>15.1</payAmount>
  <payAmountpaid>31.1</payAmountpaid>
  <payAmtType>sample string 32</payAmtType>
  <payDescrip>sample string 9</payDescrip>
  <payDocDate>2026-04-02T05:28:12.5570887+04:00</payDocDate>
  <payDocNumb>3</payDocNumb>
  <payDocPost>sample string 14</payDocPost>
  <payDocPrefix>sample string 2</payDocPrefix>
  <payDoctype>sample string 7</payDoctype>
  <payEntyDate>2026-04-02T05:28:12.5570887+04:00</payEntyDate>
  <payHeadnum>1</payHeadnum>
  <payModePaym>sample string 8</payModePaym>
  <payModifiedBy>sample string 29</payModifiedBy>
  <payModifiedDt>2026-04-02T05:28:12.5570887+04:00</payModifiedDt>
  <payPdcdate>2026-04-02T05:28:12.5570887+04:00</payPdcdate>
  <payPostedBy>27</payPostedBy>
  <payPostedDt>2026-04-02T05:28:12.5570887+04:00</payPostedDt>
  <payReferNo>sample string 10</payReferNo>
  <paymentApDetailList>
    <PayableAPModel>
      <apAmount>8.1</apAmount>
      <apDescrip>sample string 6</apDescrip>
      <apDocDate>2026-04-02T05:28:12.5570887+04:00</apDocDate>
      <apDocNmb>4</apDocNmb>
      <apDocPrefix>sample string 3</apDocPrefix>
      <apDocTag>sample string 2</apDocTag>
      <apHeadNmb>1</apHeadNmb>
      <apReference>sample string 7</apReference>
      <balAmount>11.1</balAmount>
      <balEditAmount>10.1</balEditAmount>
      <branchKey>20</branchKey>
      <compKey>22</compKey>
      <currencyKey>17</currencyKey>
      <currencyRate>18.1</currencyRate>
      <docPosted>sample string 16</docPosted>
      <paidAmount>9.1</paidAmount>
      <paymteDays>15</paymteDays>
      <supplierCode>sample string 13</supplierCode>
      <supplierKey>12</supplierKey>
      <supplierName>sample string 14</supplierName>
      <totalInvAmt>23.1</totalInvAmt>
      <totalbalAmt>25.1</totalbalAmt>
      <totalpaidAmt>24.1</totalpaidAmt>
      <userKey>21</userKey>
      <yearKey>19</yearKey>
    </PayableAPModel>
    <PayableAPModel>
      <apAmount>8.1</apAmount>
      <apDescrip>sample string 6</apDescrip>
      <apDocDate>2026-04-02T05:28:12.5570887+04:00</apDocDate>
      <apDocNmb>4</apDocNmb>
      <apDocPrefix>sample string 3</apDocPrefix>
      <apDocTag>sample string 2</apDocTag>
      <apHeadNmb>1</apHeadNmb>
      <apReference>sample string 7</apReference>
      <balAmount>11.1</balAmount>
      <balEditAmount>10.1</balEditAmount>
      <branchKey>20</branchKey>
      <compKey>22</compKey>
      <currencyKey>17</currencyKey>
      <currencyRate>18.1</currencyRate>
      <docPosted>sample string 16</docPosted>
      <paidAmount>9.1</paidAmount>
      <paymteDays>15</paymteDays>
      <supplierCode>sample string 13</supplierCode>
      <supplierKey>12</supplierKey>
      <supplierName>sample string 14</supplierName>
      <totalInvAmt>23.1</totalInvAmt>
      <totalbalAmt>25.1</totalbalAmt>
      <totalpaidAmt>24.1</totalpaidAmt>
      <userKey>21</userKey>
      <yearKey>19</yearKey>
    </PayableAPModel>
  </paymentApDetailList>
  <paymentDetailList>
    <PaymentsDetailModel>
      <compKey>9</compKey>
      <ledgerKey>5</ledgerKey>
      <ledgerName>sample string 8</ledgerName>
      <payCredit>7.1</payCredit>
      <payDLinenum>1</payDLinenum>
      <payDebit>6.1</payDebit>
      <payDescrip>sample string 3</payDescrip>
      <payHeadnum>2</payHeadnum>
      <payTransDate>2026-04-02T05:28:12.5570887+04:00</payTransDate>
    </PaymentsDetailModel>
    <PaymentsDetailModel>
      <compKey>9</compKey>
      <ledgerKey>5</ledgerKey>
      <ledgerName>sample string 8</ledgerName>
      <payCredit>7.1</payCredit>
      <payDLinenum>1</payDLinenum>
      <payDebit>6.1</payDebit>
      <payDescrip>sample string 3</payDescrip>
      <payHeadnum>2</payHeadnum>
      <payTransDate>2026-04-02T05:28:12.5570887+04:00</payTransDate>
    </PaymentsDetailModel>
  </paymentDetailList>
  <supplierAdrs>sample string 13</supplierAdrs>
  <supplierKey>11</supplierKey>
  <supplierName>sample string 12</supplierName>
  <userKey>24</userKey>
  <yearKey>23</yearKey>
</PaymentsHeadModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.