Billhighway Cloud API

<back to all web services

ChargeTokenRq

The following routes are available for this service:
POST/integrations/api/{tokenType}/charge/token
ChargeTokenRq Parameters:
NameParameterData TypeRequiredDescription
tokenTypepathstringNo
AmountbodyintNo
DescriptionbodystringNo
OptionsbodyChargeTokenOptionsNo
CardInfobodyCreditCardChargeItemNo
AchInfobodyAchChargeItemNo
ReferenceIdsbodyList<ReferenceIdTypedAssociationItem>No
ChargeTokenOptions Parameters:
NameParameterData TypeRequiredDescription
UsagesformintNo
DurationformintNo
CreditCardChargeItem Parameters:
NameParameterData TypeRequiredDescription
NameOnCardformstringNo
ExpMonthformintNo
ExpYearformintNo
CardNumberformstringNo
CvvformstringNo
AddressformCreditCardBillingAddressItemNo
CreditCardBillingAddressItem Parameters:
NameParameterData TypeRequiredDescription
Address1formstringNo
Address2formstringNo
CityformstringNo
PostalCodeformstringNo
RegionformstringNo
CountryformstringNo
AttributesformList<AttributeItem>No
AttributeItem Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ValueformstringNo
AchChargeItem Parameters:
NameParameterData TypeRequiredDescription
AccountNumberformstringNo
RoutingNumberformstringNo
AccountTypeformstringNo
AccountHolderNameformstringNo
ReferenceIdTypedAssociationItem Parameters:
NameParameterData TypeRequiredDescription
ValueformstringNo
TypeformstringNo
ChargeTokenRs Parameters:
NameParameterData TypeRequiredDescription
TokenformstringNo
OrganizationIdformintNo
ChapterIdformintNo
AmountformintNo
TokenTypeformstringNo
DescriptionformstringNo
ExpiresOnformDateTimeNo
CurrencyformstringNo
UsagesformintNo
CardDetailsformCreditCardChargeDetailsNo
AchDetailsformAchChargeDetailsNo
CreditCardChargeDetails Parameters:
NameParameterData TypeRequiredDescription
CardTypeformstringNo
ExpMonthformintNo
ExpYearformintNo
Last4formstringNo
AddressformCreditCardBillingAddressItemNo
VerificationResultformCreditCardChargeVerificationResultNo
CreditCardChargeVerificationResult Parameters:
NameParameterData TypeRequiredDescription
NetworkVerificationAttemptedformboolNo
CvvVerificationResultformstringNo
AddressVerificationResultformstringNo
PostalCodeVerificationResultformstringNo
AchChargeDetails Parameters:
NameParameterData TypeRequiredDescription
AccountTypeformstringNo
RoutingNumberformstringNo
AccountNumberLast4formstringNo
BankNameformstringNo
VerificationResultformAchChargeVerificationResultNo
AchChargeVerificationResult Parameters:
NameParameterData TypeRequiredDescription
NetworkVerificationAttemptedformboolNo
ResultformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /integrations/api/{tokenType}/charge/token HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"tokenType":"String","Amount":0,"Description":"String","Options":{"Usages":0,"Duration":0},"CardInfo":{"NameOnCard":"String","ExpMonth":0,"ExpYear":0,"CardNumber":"String","Cvv":"String","Address":{"Address1":"String","Address2":"String","City":"String","PostalCode":"String","Region":"String","Country":"String","Attributes":[{"Name":"String","Value":"String"}]}},"AchInfo":{"AccountNumber":"String","RoutingNumber":"String","AccountType":"String","AccountHolderName":"String"},"ReferenceIds":[{"Value":"String","Type":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Token":"String","OrganizationId":0,"ChapterId":0,"Amount":0,"TokenType":"String","Description":"String","ExpiresOn":"0001-01-01T00:00:00.0000000","Currency":"String","Usages":0,"CardDetails":{"CardType":"String","ExpMonth":0,"ExpYear":0,"Last4":"String","Address":{"Address1":"String","Address2":"String","City":"String","PostalCode":"String","Region":"String","Country":"String","Attributes":[{"Name":"String","Value":"String"}]},"VerificationResult":{"NetworkVerificationAttempted":false,"CvvVerificationResult":"String","AddressVerificationResult":"String","PostalCodeVerificationResult":"String"}},"AchDetails":{"AccountType":"String","RoutingNumber":"String","AccountNumberLast4":"String","BankName":"String","VerificationResult":{"NetworkVerificationAttempted":false,"Result":"String"}}}