Billhighway Cloud API

<back to all web services

ChargeTokenV2Rq

The following routes are available for this service:
POST/integrations/api/v2/{tokenType}/charge/token
ChargeTokenRqBase Parameters:
NameParameterData TypeRequiredDescription
tokenTypeformstringNo
AmountformintNo
DescriptionformstringNo
OptionsformChargeTokenOptionsNo
CardInfoformCreditCardChargeItemNo
AchInfoformAchChargeItemNo
ReferenceIdsformList<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
ChargeTokenV2Rs Parameters:
NameParameterData TypeRequiredDescription
TokenformstringNo
AmountformintNo
TokenTypeformstringNo
DescriptionformstringNo
ExpiresOnformDateTimeNo
CurrencyformstringNo
UsagesformintNo
CardDetailsformCreditCardChargeDetailsV2No
AchDetailsformAchChargeDetailsV2No
CreditCardChargeDetailsV2 Parameters:
NameParameterData TypeRequiredDescription
CardTypeformstringNo
ExpMonthformintNo
ExpYearformintNo
Last4formstringNo
AddressformCreditCardBillingAddressItemNo
AchChargeDetailsV2 Parameters:
NameParameterData TypeRequiredDescription
AccountTypeformstringNo
RoutingNumberformstringNo
AccountNumberLast4formstringNo
BankNameformstringNo

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

HTTP + JSV

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

POST /integrations/api/v2/{tokenType}/charge/token HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/jsv
Content-Type: text/jsv
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/jsv
Content-Length: length

{
	Token: String,
	Amount: 0,
	TokenType: String,
	Description: String,
	ExpiresOn: 0001-01-01,
	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
				}
			]
		}
	},
	AchDetails: 
	{
		AccountType: String,
		RoutingNumber: String,
		AccountNumberLast4: String,
		BankName: String
	}
}