POST api/ApnPaymentRefund/Chargeback

Request Information

URI Parameters

None.

Body Parameters

PaymentRefundSaveParams
NameDescriptionTypeAdditional information
AccountID

integer

None.

PaymentID

integer

None.

Amount

decimal number

None.

Lines

Collection of PaymentRefundLineInput

None.

Note

string

None.

ChargebackDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountID": 1,
  "PaymentID": 1,
  "Amount": 1.0,
  "Lines": [
    {
      "ItemKey": "sample string 1",
      "Amount": 2.0
    },
    {
      "ItemKey": "sample string 1",
      "Amount": 2.0
    }
  ],
  "Note": "sample string 1",
  "ChargebackDate": "2026-11-25T07:26:22.3455274+00:00"
}

application/xml, text/xml

Sample:
<PaymentRefundSaveParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.ApnExtensions">
  <AccountID>1</AccountID>
  <Amount>1</Amount>
  <ChargebackDate>2026-11-25T07:26:22.3455274+00:00</ChargebackDate>
  <Lines>
    <PaymentRefundLineInput>
      <Amount>2</Amount>
      <ItemKey>sample string 1</ItemKey>
    </PaymentRefundLineInput>
    <PaymentRefundLineInput>
      <Amount>2</Amount>
      <ItemKey>sample string 1</ItemKey>
    </PaymentRefundLineInput>
  </Lines>
  <Note>sample string 1</Note>
  <PaymentID>1</PaymentID>
</PaymentRefundSaveParams>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResultOfPaymentRefundResult
NameDescriptionTypeAdditional information
Response

ApiResponse

None.

Data

PaymentRefundResult

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": {
    "Success": true,
    "ErrorMessage": "sample string 2"
  },
  "Data": {
    "ReversalPaymentID": 1,
    "AllocationsEdited": true
  }
}

application/xml, text/xml

Sample:
<ApiResultOfPaymentRefundResultoWZ9pqIS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.ApnExtensions">
  <Data>
    <AllocationsEdited>true</AllocationsEdited>
    <ReversalPaymentID>1</ReversalPaymentID>
  </Data>
  <Response>
    <ErrorMessage>sample string 2</ErrorMessage>
    <Success>true</Success>
  </Response>
</ApiResultOfPaymentRefundResultoWZ9pqIS>