POST api/DonorManagement/SaveBillingRecord

Request Information

URI Parameters

None.

Body Parameters

DonorBillingRecordBindingModel
NameDescriptionTypeAdditional information
RecurringTransactionId

integer

Required

DonorId

integer

Required

DonationAmount

decimal number

Required

Range: inclusive between 0.01 and 1.79769313486232E+308

Frequency

integer

Required

DayToCharge

integer

None.

MonthToTerminate

integer

None.

YearToTerminate

integer

None.

TransactionTypeId

integer

None.

DelayUntil

date

Required

StopRecurringBilling

boolean

None.

BillingAccountNo

string

None.

DonorTokenStorageId

integer

None.

Comment

string

None.

CampaignId

integer

None.

HospitalId

integer

None.

DonorName

string

None.

FromFailedTransaction

boolean

None.

CampaignName

string

None.

ChargenowYN

boolean

None.

ChargeNextDateYN

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "recurringTransactionId": 1,
  "donorId": 2,
  "donationAmount": 3.0,
  "frequency": 4,
  "dayToCharge": 1,
  "monthToTerminate": 1,
  "yearToTerminate": 1,
  "transactionTypeId": 5,
  "delayUntil": "2023-01-21T22:26:46.3337127+00:00",
  "stopRecurringBilling": true,
  "billingAccountNo": "sample string 8",
  "donorTokenStorageId": 1,
  "comment": "sample string 9",
  "campaignId": 1,
  "hospitalId": 1,
  "donorName": "sample string 10",
  "fromFailedTransaction": true,
  "campaignName": "sample string 12",
  "chargenowYN": true,
  "chargeNextDateYN": true
}

application/xml, text/xml

Sample:
<DonorBillingRecordBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMN.DonorNet.V3.Binding.Models">
  <BillingAccountNo>sample string 8</BillingAccountNo>
  <CampaignId>1</CampaignId>
  <CampaignName>sample string 12</CampaignName>
  <ChargeNextDateYN>true</ChargeNextDateYN>
  <ChargenowYN>true</ChargenowYN>
  <Comment>sample string 9</Comment>
  <DayToCharge>1</DayToCharge>
  <DelayUntil>2023-01-21T22:26:46.3337127+00:00</DelayUntil>
  <DonationAmount>3</DonationAmount>
  <DonorId>2</DonorId>
  <DonorName>sample string 10</DonorName>
  <DonorTokenStorageId>1</DonorTokenStorageId>
  <Frequency>4</Frequency>
  <FromFailedTransaction>true</FromFailedTransaction>
  <HospitalId>1</HospitalId>
  <MonthToTerminate>1</MonthToTerminate>
  <RecurringTransactionId>1</RecurringTransactionId>
  <StopRecurringBilling>true</StopRecurringBilling>
  <TransactionTypeId>5</TransactionTypeId>
  <YearToTerminate>1</YearToTerminate>
</DonorBillingRecordBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.