POST Payment/PostTransaction

Request Information

URI Parameters

None.

Body Parameters

NewtekRequest
NameDescriptionTypeAdditional information
Command

string

None.

TransactionAmount

string

None.

CreditCardHolder

string

None.

CreditCardNumber

string

Required

Matching regular expression pattern: \b(?:(?:\d[ -]*?){17,}|((?:\d[ -]*?){13,16}))\b

CreditCardExpiration

string

None.

FirstName

string

Required

LastName

string

Required

CVCNumber

string

Required

Matching regular expression pattern: ^[0-9]{3,4}$

ZipCode

string

Required

Matching regular expression pattern: ^\d{5}(-\d{4})?$

CreditCardExpirationMonth

string

Required

CreditCardExpirationYear

string

Required

ReceiptEmail

string

Matching regular expression pattern: ^([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})?$

SendReceipt

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Command": "sample string 1",
  "TransactionAmount": "sample string 2",
  "CreditCardHolder": "sample string 3",
  "CreditCardNumber": "sample string 4",
  "CreditCardExpiration": "sample string 5",
  "FirstName": "sample string 6",
  "LastName": "sample string 7",
  "CVCNumber": "sample string 8",
  "ZipCode": "sample string 9",
  "CreditCardExpirationMonth": "sample string 10",
  "CreditCardExpirationYear": "sample string 11",
  "ReceiptEmail": "sample string 12",
  "SendReceipt": true
}

application/xml, text/xml

Sample:
<NewtekRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VHCSAPIModels.Models">
  <CVCNumber>sample string 8</CVCNumber>
  <Command>sample string 1</Command>
  <CreditCardExpiration>sample string 5</CreditCardExpiration>
  <CreditCardExpirationMonth>sample string 10</CreditCardExpirationMonth>
  <CreditCardExpirationYear>sample string 11</CreditCardExpirationYear>
  <CreditCardHolder>sample string 3</CreditCardHolder>
  <CreditCardNumber>sample string 4</CreditCardNumber>
  <FirstName>sample string 6</FirstName>
  <LastName>sample string 7</LastName>
  <ReceiptEmail>sample string 12</ReceiptEmail>
  <SendReceipt>true</SendReceipt>
  <TransactionAmount>sample string 2</TransactionAmount>
  <ZipCode>sample string 9</ZipCode>
</NewtekRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'NewtekRequest'.

Response Information

Resource Description

NewtekResponse
NameDescriptionTypeAdditional information
type

string

None.

refnum

string

None.

result_code

string

None.

result

string

None.

authcode

string

None.

auth_amount

string

None.

Response Formats

application/json, text/json

Sample:
{
  "type": "sample string 1",
  "refnum": "sample string 2",
  "result_code": "sample string 3",
  "result": "sample string 4",
  "authcode": "sample string 5",
  "auth_amount": "sample string 6"
}

application/xml, text/xml

Sample:
<NewtekResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VHCSAPIModels.Models">
  <auth_amount>sample string 6</auth_amount>
  <authcode>sample string 5</authcode>
  <refnum>sample string 2</refnum>
  <result>sample string 4</result>
  <result_code>sample string 3</result_code>
  <type>sample string 1</type>
</NewtekResponse>