POST | /integrations/api/{tokenType}/charge/token |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
tokenType | path | string | No | |
Amount | body | int | No | |
Description | body | string | No | |
Options | body | ChargeTokenOptions | No | |
CardInfo | body | CreditCardChargeItem | No | |
AchInfo | body | AchChargeItem | No | |
ReferenceIds | body | List<ReferenceIdTypedAssociationItem> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Usages | form | int | No | |
Duration | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
NameOnCard | form | string | No | |
ExpMonth | form | int | No | |
ExpYear | form | int | No | |
CardNumber | form | string | No | |
Cvv | form | string | No | |
Address | form | CreditCardBillingAddressItem | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Address1 | form | string | No | |
Address2 | form | string | No | |
City | form | string | No | |
PostalCode | form | string | No | |
Region | form | string | No | |
Country | form | string | No | |
Attributes | form | List<AttributeItem> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | No | |
Value | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AccountNumber | form | string | No | |
RoutingNumber | form | string | No | |
AccountType | form | string | No | |
AccountHolderName | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Value | form | string | No | |
Type | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Token | form | string | No | |
OrganizationId | form | int | No | |
ChapterId | form | int | No | |
Amount | form | int | No | |
TokenType | form | string | No | |
Description | form | string | No | |
ExpiresOn | form | DateTime | No | |
Currency | form | string | No | |
Usages | form | int | No | |
CardDetails | form | CreditCardChargeDetails | No | |
AchDetails | form | AchChargeDetails | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CardType | form | string | No | |
ExpMonth | form | int | No | |
ExpYear | form | int | No | |
Last4 | form | string | No | |
Address | form | CreditCardBillingAddressItem | No | |
VerificationResult | form | CreditCardChargeVerificationResult | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
NetworkVerificationAttempted | form | bool | No | |
CvvVerificationResult | form | string | No | |
AddressVerificationResult | form | string | No | |
PostalCodeVerificationResult | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AccountType | form | string | No | |
RoutingNumber | form | string | No | |
AccountNumberLast4 | form | string | No | |
BankName | form | string | No | |
VerificationResult | form | AchChargeVerificationResult | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
NetworkVerificationAttempted | form | bool | No | |
Result | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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"}}}