POST api/Purchase/DeletePayment

Request Information

URI Parameters

None.

Body Parameters

GetPaymentRequest
NameDescriptionTypeAdditional information
PayHeadnum

integer

None.

CompKey

integer

None.

SupplierKey

integer

None.

ApDocDate

string

None.

PayDocPrefix

string

None.

Subsordemo

string

None.

YearKey

integer

None.

insertPaymentHeader

PaymentsHeadModel

None.

Request Formats

application/json, text/json

Sample:
{
  "PayHeadnum": 1,
  "CompKey": 2,
  "SupplierKey": 3,
  "ApDocDate": "sample string 4",
  "PayDocPrefix": "sample string 5",
  "Subsordemo": "sample string 6",
  "YearKey": 7,
  "insertPaymentHeader": {
    "payHeadnum": 1,
    "payDocPrefix": "sample string 2",
    "payDocNumb": 3,
    "payDocDate": "2026-04-02T05:23:28.5193442+04:00",
    "payEntyDate": "2026-04-02T05:23:28.5193442+04:00",
    "payPdcdate": "2026-04-02T05:23:28.5193442+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:23:28.5193442+04:00",
    "payModifiedBy": "sample string 29",
    "payModifiedDt": "2026-04-02T05:23:28.5193442+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:23:28.5193442+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:23:28.5193442+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:23:28.5193442+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:23:28.5193442+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
      }
    ]
  }
}

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.