POST api/DonorManagement/SaveTransaction

Request Information

URI Parameters

None.

Body Parameters

DonorTransactionBindingModel
NameDescriptionTypeAdditional information
DonorTransactionId

integer

Required

DonorId

integer

Required

Range: inclusive between 1 and 2147483647

DonorSeed

string

None.

DonorReferenceNumber

integer

None.

CampaignId

integer

Required

RecurringTransactionId

integer

None.

TransactionType

TransactionTypeEnum

Required

DayToCharge

integer

None.

MonthToTerminate

integer

None.

YearToTerminate

integer

None.

DonationAmount

decimal number

Required

Range: inclusive between 0.01 and 1.79769313486232E+308

CreditCardType

integer

None.

CreditCard

string

None.

Cvv

string

None.

ExpirationMonth

integer

None.

ExpirationYear

integer

None.

AbaNumber

string

None.

BankAccountNumber

string

None.

BankAccountType

string

None.

AccountPersonName

string

None.

ChargeFrequency

ChargeFrequencyEnum

Required

ProcessRefNo

string

None.

ResultCode

integer

None.

ResponseMsg

string

None.

AuthCode

string

None.

PhoneDonationYn

boolean

Required

HospitalId

integer

Required

Range: inclusive between 1 and 2147483647

RadioStationNameId

integer

Range: inclusive between 1 and 2147483647

DonorAppealId

integer

Range: inclusive between 1 and 2147483647

DonationSourceId

integer

Required

Range: inclusive between 1 and 2147483647

BankName

string

String length: inclusive between 0 and 100

IsCheckingAccount

boolean

None.

DisplayInDash

boolean

None.

ExternalProgramForms

Collection of ExternalProgramForm

None.

Nonce

string

None.

Request Formats

application/json, text/json

Sample:
{
  "donorTransactionId": 1,
  "donorId": 2,
  "donorSeed": "sample string 3",
  "donorReferenceNumber": 1,
  "campaignId": 4,
  "recurringTransactionId": 1,
  "transactionType": 1,
  "dayToCharge": 1,
  "monthToTerminate": 1,
  "yearToTerminate": 1,
  "donationAmount": 5.0,
  "creditCardType": 1,
  "creditCard": "sample string 6",
  "cvv": "sample string 7",
  "expirationMonth": 1,
  "expirationYear": 1,
  "abaNumber": "sample string 8",
  "bankAccountNumber": "sample string 9",
  "bankAccountType": "sample string 10",
  "accountPersonName": "sample string 11",
  "chargeFrequency": 1,
  "processRefNo": "sample string 12",
  "resultCode": 1,
  "responseMsg": "sample string 13",
  "authCode": "sample string 14",
  "phoneDonationYn": true,
  "hospitalId": 16,
  "radioStationNameId": 1,
  "donorAppealId": 1,
  "donationSourceId": 17,
  "bankName": "sample string 18",
  "isCheckingAccount": true,
  "displayInDash": true,
  "externalProgramForms": [
    {
      "sqlId": 1,
      "externalProgramSecondId": "sample string 2",
      "description": "sample string 3",
      "donationAmount": 4.0
    },
    {
      "sqlId": 1,
      "externalProgramSecondId": "sample string 2",
      "description": "sample string 3",
      "donationAmount": 4.0
    }
  ],
  "nonce": "sample string 20"
}

application/xml, text/xml

Sample:
<DonorTransactionBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMN.DonorNet.V3.Binding.Models">
  <AbaNumber>sample string 8</AbaNumber>
  <AccountPersonName>sample string 11</AccountPersonName>
  <AuthCode>sample string 14</AuthCode>
  <BankAccountNumber>sample string 9</BankAccountNumber>
  <BankAccountType>sample string 10</BankAccountType>
  <BankName>sample string 18</BankName>
  <CampaignId>4</CampaignId>
  <ChargeFrequency>OneTime</ChargeFrequency>
  <CreditCard>sample string 6</CreditCard>
  <CreditCardType>1</CreditCardType>
  <Cvv>sample string 7</Cvv>
  <DayToCharge>1</DayToCharge>
  <DisplayInDash>true</DisplayInDash>
  <DonationAmount>5</DonationAmount>
  <DonationSourceId>17</DonationSourceId>
  <DonorAppealId>1</DonorAppealId>
  <DonorId>2</DonorId>
  <DonorReferenceNumber>1</DonorReferenceNumber>
  <DonorSeed>sample string 3</DonorSeed>
  <DonorTransactionId>1</DonorTransactionId>
  <ExpirationMonth>1</ExpirationMonth>
  <ExpirationYear>1</ExpirationYear>
  <ExternalProgramForms>
    <ExternalProgramForm>
      <Description>sample string 3</Description>
      <DonationAmount>4</DonationAmount>
      <ExternalProgramSecondId>sample string 2</ExternalProgramSecondId>
      <SqlId>1</SqlId>
    </ExternalProgramForm>
    <ExternalProgramForm>
      <Description>sample string 3</Description>
      <DonationAmount>4</DonationAmount>
      <ExternalProgramSecondId>sample string 2</ExternalProgramSecondId>
      <SqlId>1</SqlId>
    </ExternalProgramForm>
  </ExternalProgramForms>
  <HospitalId>16</HospitalId>
  <IsCheckingAccount>true</IsCheckingAccount>
  <MonthToTerminate>1</MonthToTerminate>
  <Nonce>sample string 20</Nonce>
  <PhoneDonationYn>true</PhoneDonationYn>
  <ProcessRefNo>sample string 12</ProcessRefNo>
  <RadioStationNameId>1</RadioStationNameId>
  <RecurringTransactionId>1</RecurringTransactionId>
  <ResponseMsg>sample string 13</ResponseMsg>
  <ResultCode>1</ResultCode>
  <TransactionType>CreditCard</TransactionType>
  <YearToTerminate>1</YearToTerminate>
</DonorTransactionBindingModel>

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.