| 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(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
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/jsv
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
}
}