billingAddress
object
|
Show definition |
customer
object
|
Show definition |
device
object
|
Show definition |
paymentMethod
object
|
Show definition |
shippingAddress
object
|
Show definition |
threeds
object
|
Show definition |
A Unix timestamp preferably as an
integer count of milliseconds since |
transaction
object
|
Show definition |
POST https://api.ravelin.com/psp/transaction HTTP/1.1
Authorization: token ...
Content-Type: application/json
{
"billingAddress": {
"additional": "Prestbury",
"addressee": "John Smith",
"country": "GBR",
"locality": "Macclesfield",
"postalCode": "SK10 4JQ",
"region": "Cheshire",
"source": "E_WALLET",
"street1": "Flat 16",
"street2": "7 Acacia Avenue"
},
"customer": {
"customerId": "string",
"email": "sales@ravelin.com",
"telephone": "+16045555555"
},
"device": {
"deviceId": "string",
"ipAddress": "81.152.92.84",
"lang": "en-US",
"manufacturer": "apple",
"model": "iPhone15,3",
"os": "ios",
"type": "phone",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
},
"paymentMethod": {
"countryIssued": "GBR",
"eWallet": "applepay",
"expiryMonth": 7,
"expiryYear": 2024,
"iin": "454303",
"instrumentId": "fp_abc123",
"issuer": "rabobank",
"lastFour": "0001",
"methodType": "card",
"nameOnCard": "John Smith",
"prepaid": false,
"scheme": "visa"
},
"shippingAddress": {
"additional": "Prestbury",
"addressee": "John Smith",
"country": "GBR",
"locality": "Macclesfield",
"postalCode": "SK10 4JQ",
"region": "Cheshire",
"source": "E_WALLET",
"street1": "Flat 16",
"street2": "7 Acacia Avenue"
},
"threeds": {
"challengeCancel": "01",
"deviceChannel": "01",
"endTime": 1512828989826,
"liabilityShifted": true,
"requestorChallengeInd": "01",
"startTime": 1512828988826,
"transStatus": "Y",
"transStatusReason": "01",
"version": "2.2.0",
"whiteListStatus": "Y",
"whiteListStatusSource": "01"
},
"timestamp": 1667387532297,
"transaction": {
"acquirerBin": "454303",
"acquirerCountryCode": "GBR",
"acquirerId": "adyen",
"amount": 1337,
"arn": "string",
"avsResultCode": {
"postalCode": "STRONG_MATCH",
"street": "STRONG_MATCH"
},
"currency": "GBP",
"cvvResultCode": "PASS",
"declineCode": "LOST_OR_STOLEN",
"gateway": "braintree",
"gatewayReference": "string",
"mcc": "string",
"merchantCountryCode": "GBR",
"merchantName": "string",
"mid": "string",
"parentTransactionId": "string",
"partial": false,
"stepId": "string",
"success": true,
"transactionId": "string",
"type": "auth"
}
}
HTTP/1.1 200 OK
Content-Type: applicaton/json
{
"data": {
"action": "ALLOW",
"rules": {
"passiveAction": "PREVENT",
"triggered": [
{
"action": "REVIEW",
"description": "Psp.secondsSinceEmailFirstSeen is less than 200.",
"ruleId": 14384,
"ruleVersion": 7,
"state": "active"
}
]
},
"score": 76,
"scoreId": "b4a88559-5090-44fb-8a31-eff8a00a79dd",
"transactionId": "6cbe7636-3c15-45e8-bf29-2f010ae829bf"
},
"status": 200,
"timestamp": 1512828988826
}
HTTP/1.1 200 OK
Content-Type: applicaton/json
{
"data": {
"action": "ALLOW",
"rules": {
"passiveAction": "PREVENT",
"triggered": [
{
"action": "REVIEW",
"description": "Psp.secondsSinceEmailFirstSeen is less than 200.",
"ruleId": 14384,
"ruleVersion": 7,
"state": "active"
}
]
},
"score": 76,
"scoreId": "b4a88559-5090-44fb-8a31-eff8a00a79dd",
"transactionId": "6cbe7636-3c15-45e8-bf29-2f010ae829bf"
},
"status": 200,
"timestamp": 1512828988826
}
Was this page helpful?