Billhighway Cloud API

<back to all web services

CoreChargeVerifyRq

The following routes are available for this service:
POST/integrations/api/{integrationType}/core/verifycharge
import Foundation
import ServiceStack

public class CoreChargeVerifyRq : Codable
{
    public var reCaptchaScore:Double?
    public var integrationType:String?
    public var nationalId:Int?
    public var chapterId:Int?
    public var contextIntegrationPartnerId:Int?
    public var authenticationId:Int?
    public var token:String?

    required public init(){}
}

public class CoreChargeVerifyRs : Codable
{
    public var token:String?
    public var cardVerificationDetails:CreditCardVerificationDetails?
    public var achVerificationDetails:AchVerificationDetails?

    required public init(){}
}

public class CreditCardVerificationDetails : Codable
{
    public var isError:Bool?
    public var isDuplicate:Bool?
    public var gatewayResponseCode:String?
    public var gatewayMessage:String?
    public var networkVerificationAttempted:Bool?
    public var cvvVerificationResult:String?
    public var addressVerificationResult:String?
    public var postalCodeVerificationResult:String?
    public var networkTransactionId:String?

    required public init(){}
}

public class AchVerificationDetails : Codable
{
    public var isError:Bool?
    public var networkVerificationAttempted:Bool?
    public var result:String?
    public var code:String?
    public var message:String?

    required public init(){}
}


Swift CoreChargeVerifyRq DTOs

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/{integrationType}/core/verifycharge HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"reCaptchaScore":0,"integrationType":"String","NationalId":0,"ChapterId":0,"ContextIntegrationPartnerId":0,"AuthenticationId":0,"Token":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Token":"String","CardVerificationDetails":{"IsError":false,"IsDuplicate":false,"GatewayResponseCode":"String","GatewayMessage":"String","NetworkVerificationAttempted":false,"CvvVerificationResult":"String","AddressVerificationResult":"String","PostalCodeVerificationResult":"String","NetworkTransactionId":"String"},"AchVerificationDetails":{"IsError":false,"NetworkVerificationAttempted":false,"Result":"String","Code":"String","Message":"String"}}