POST api/DonorManagement/SaveBillingAccount

Request Information

URI Parameters

None.

Body Parameters

DonorBillingAccountBindingModel
NameDescriptionTypeAdditional information
DonorTokenStorageId

integer

Required

DonorId

integer

Required

ExpirationMonth

integer

None.

ExpirationYear

integer

None.

CreditCard

string

None.

CreditCardType

integer

None.

NameOnCard

string

None.

AbaNumber

string

String length: inclusive between 0 and 9

BankAccountNumber

string

None.

BankName

string

String length: inclusive between 0 and 100

IsCheckingAccount

boolean

None.

Nonce

string

None.

IsCreditCardAccount

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "donorTokenStorageId": 1,
  "donorId": 2,
  "expirationMonth": 1,
  "expirationYear": 1,
  "creditCard": "sample string 3",
  "creditCardType": 1,
  "nameOnCard": "sample string 4",
  "abaNumber": "sample string 5",
  "bankAccountNumber": "sample string 6",
  "bankName": "sample string 7",
  "isCheckingAccount": true,
  "nonce": "sample string 8",
  "isCreditCardAccount": true
}

application/xml, text/xml

Sample:
<DonorBillingAccountBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMN.DonorNet.V3.Binding.Models">
  <AbaNumber>sample string 5</AbaNumber>
  <BankAccountNumber>sample string 6</BankAccountNumber>
  <BankName>sample string 7</BankName>
  <CreditCard>sample string 3</CreditCard>
  <CreditCardType>1</CreditCardType>
  <DonorId>2</DonorId>
  <DonorTokenStorageId>1</DonorTokenStorageId>
  <ExpirationMonth>1</ExpirationMonth>
  <ExpirationYear>1</ExpirationYear>
  <IsCheckingAccount>true</IsCheckingAccount>
  <IsCreditCardAccount>true</IsCreditCardAccount>
  <NameOnCard>sample string 4</NameOnCard>
  <Nonce>sample string 8</Nonce>
</DonorBillingAccountBindingModel>

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.