Skip to main content

Attachments

In this section there will be information not deemed obligatory in the main document.

Attachment #1

Example operation

{
"action": "transfer",
"type": "actionable",
"active": true,
"version": 24,
"default_language": "EN-US",
"dactions": {
"EN-US": "Transfer Edited",
"PT-PT": "Transferência"
},
"dparams": [
{
"key": "destination_account",
"data_type": "string",
"description": "Destination Account",
"languages": {
"EN-US": "Destination Account",
"PT-PT": "Conta Destino"
},
"optional": false
},
{
"key": "amount",
"data_type": "money",
"description": "Amount",
"languages": {
"EN-US": "Amount",
"PT-PT": "Montante"
},
"risk": {
"low": {
"type": "money-v2",
"rule_logic": "vcae47dc7b473496cac7dee950beee972",
"conditions": {
"vcae47dc7b473496cac7dee950beee972": {
"alias": "teste",
"type": "lt",
"value": {
"EUR": 500,
"USD": 1000
},
"aux_params": {
"strict_check": true
}
}
}
},
"medium": {
"weight": 0.5,
"type": "money-v2",
"rule_logic": "v9be363bf165747acaa1e5d794d941eb0",
"conditions": {
"v9be363bf165747acaa1e5d794d941eb0": {
"alias": "limite_inferior",
"type": "gte",
"value": {
"EUR": 500,
"USD": 1000
},
"aux_params": {
"strict_check": true
}
}
},
"languages": {
"EN-US": "Considerable high amount to transfer",
"PT-PT": "Montante para transferir consideravelmente alto"
}
},
"high": {
"weight": 1,
"type": "money-v2",
"rule_logic": "ve47efc391c1248c9aa1b63fd81d75dba",
"conditions": {
"ve47efc391c1248c9aa1b63fd81d75dba": {
"alias": "teste",
"type": "gte",
"value": {
"EUR": 1000,
"USD": 1500
},
"aux_params": {
"strict_check": true
}
}
},
"languages": {
"EN-US": "Large amount to transfer",
"PT-PT": "Grande montante de transferência"
}
}
},
"optional": false
},
{
"key": "source_account",
"data_type": "string",
"description": "Source Account",
"languages": {
"EN-US": "Source Account",
"PT-PT": "Conta Remetente"
},
"optional": false
}
],
"messages": {
"EN-US": {
"1": "Are you trying to transfer <b>{{.amount}}</b>?"
},
"PT-PT": {
"1": "Está a tentar transferir <b>{{.amount}}</b>?"
}
},
"transaction_duration": 30,
"description": "Transfer",
"risk": {
"amount": 100
},
"risk_modules": {
"ip_reputation": {
"weight": 100,
"mandatory": false
},
"lrc": {
"weight": 100,
"mandatory": false
}
}
}

Attachment #2

Blocked custom headers, returns as a parameter with error code E_400090076

[
"Header", "Access-Control-Allow-Credentials", "Access-Control-Allow-Headers",
"Access-Control-Allow-Methods", "Access-Control-Allow-Origin",
"Access-Control-Expose-Headers", "Access-Control-Max-Age", "Accept-Ranges",
"Age", "Allow", "Alternate-Protocol", "Cache-Control", "Client-Date", "Client-Peer",
"Client-Response-Num", "Connection", "Content-Disposition", "Content-Encoding",
"Content-Language", "Content-Length", "Content-Location", "Content-MD5",
"Content-Range", "Content-Security-Policy", "X-Content-Security-Policy",
"X-WebKit-CSP", "Content-Security-Policy-Report-Only", "Content-Type",
"Date", "ETag", "Expires", "HTTP", "Keep-Alive", "Last-Modified", "Link",
"Location", "P3P", "Pragma", "Proxy-Authenticate", "Proxy-Connection",
"Refresh", "Retry-After", "Server", "Set-Cookie", "Status",
"Strict-Transport-Security", "Timing-Allow-Origin", "Trailer",
"Transfer-Encoding", "Upgrade", "Vary", "Via", "Warning", "WWW-Authenticate",
"X-Aspnet-Version","X-Content-Type-Options", "X-Frame-Options",
"X-Permitted-Cross-Domain-Policies", "X-Pingback", "X-Powered-By",
"X-Robots-Tag", "X-UA-Compatible", "X-XSS-Protection", "X-Request-Correlation-ID"
]

Attachment #3

Error codes used in the SDK

Error CodeDescriptionParameters
E_500010002Concurrent writes on event store for the same aggregate idNone
E_500030003The application cannot handle device removal at this timeApplication Name
E_500040001Invalid OperationNone
E_500050001Invalid risk ruleNone
E_500050003Mandatory risk module isn’t registeredRisk Module
E_400010004Application has no access to the transactionNone
E_400020001There is an existing contract already for this userApp User ID
E_400020002The specified contract doesn’t existNone
E_400020005Missing contract’s usernameNone
E_400020006Invalid contract’s app user IDNone
E_400020007Invalid registration token duration. It should be between 0s and 600s.None
E_400030010Device does not existNone
E_400040001Device has no access to contractDevice key
E_400080010Transaction doesn’t support state updateNone
E_400080011Invalid stateNone
E_400080012Transaction is already in final stateNone
E_400090007Parameter key not foundParameter key
E_400090010Field is not validField
E_400090013SIBS 3DS Transaction not allowedNone
E_400090014Generic Transaction not allowedNone
E_400090015Empty actionNone
E_400090016No rule logic expression providedNone
E_400090017Could not evaluate rule logic expressionNone
E_400090018Invalid value for data type conditionData Type
E_400090019You can’t specify a message identifier if you specify the message for the transactionNone
E_400090020You should either specify the message or a message identifierNone
E_400090022Operation message identifier is not validMessage Identifier
E_400090023Invalid language tagLanguage
E_400090024Invalid message identifierMessage Identifier
E_400090026You can’t specify risk level for the transaction without overriding risk calculationNone
E_400090027You can’t specify risk level for the parameter without overriding risk calculationParameter
E_400090028You can’t specify risk message for the parameter without overriding risk calculationParameter
E_400090029Invalid risk level for param and riskParameter, Risk Parameter
E_400090030Invalid risk levelRisk Level
E_400090031There is a parameter with no key specifiedNone
E_400090032Missing required parameter in the transactionParameter
E_400090033Specified parameter does not exist on the operationParameter
E_400090034Invalid parameter data typeNone
E_400090035Error validating parameter, invalid data typeParameter, Currency
E_400090036Missing currency in aux fieldsNone
E_400090037Invalid currencyNone
E_400090038Currency isn’t validCurrency
E_400090039Transaction’s message can’t be emptyNone
E_400090040Transaction’s action message can’t be emptyNone
E_400090041Transaction duration is too lowDuration
E_400090042Transaction duration is too highDuration
E_400090044Invalid value for money conditionNone
E_400090045Invalid currency for money conditionNone
E_400090046Invalid value for metadata attributeMetadata Attribute
E_400090047Invalid required authenticationRequired Authentication
E_400090050Couldn’t calculate risk for a mandatory moduleRisk Module
E_400090051Not found risk level for paramParameter
E_400090052Param doesn’t fit in any ruleNone
E_400090057Invalid Transaction TypeTransaction Type
E_400090061Masked PAN is emptyNone
E_400090062Service operation player code is emptyNone
E_400090063MBWay partner ID is emptyNone
E_400090064MBWay partner key is emptyNone
E_400090065MBWay phone prefix is emptyNone
E_400090066MBWay phone number is emptyNone
E_400090067MBWay application ID is emptyNone
E_400090068MBWay service ID is emptyNone
E_400090069MBWay PIN is emptyNone
E_400090070MBWay activation code is emptyNone
E_400090071SIBS 3DS Transaction version not allowedNone
E_400090072Parameters order is referring an unknown parameterParameter
E_400090073Parameter is not being referred on parameters order definitionParameter
E_400090074Parameters order doesn’t start from 0 or doesn’t contain sequential numbersNone
E_400090076Blocked headerHeader Key
E_400090077Invalid transaction actionNone
E_400090078Parameter with null valueParameter key
E_400090079You can’t specify any more authentication mechanisms besides “default”None
E_400090080You can’t define risk message for a parameter without defining risk levelNone
E_400090081You can’t define risk level (unless it’s low level) for a parameter without defining risk messageNone