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 Code | Description | Parameters |
|---|---|---|
E_500010002 | Concurrent writes on event store for the same aggregate id | None |
E_500030003 | The application cannot handle device removal at this time | Application Name |
E_500040001 | Invalid Operation | None |
E_500050001 | Invalid risk rule | None |
E_500050003 | Mandatory risk module isn’t registered | Risk Module |
E_400010004 | Application has no access to the transaction | None |
E_400020001 | There is an existing contract already for this user | App User ID |
E_400020002 | The specified contract doesn’t exist | None |
E_400020005 | Missing contract’s username | None |
E_400020006 | Invalid contract’s app user ID | None |
E_400020007 | Invalid registration token duration. It should be between 0s and 600s. | None |
E_400030010 | Device does not exist | None |
E_400040001 | Device has no access to contract | Device key |
E_400080010 | Transaction doesn’t support state update | None |
E_400080011 | Invalid state | None |
E_400080012 | Transaction is already in final state | None |
E_400090007 | Parameter key not found | Parameter key |
E_400090010 | Field is not valid | Field |
E_400090013 | SIBS 3DS Transaction not allowed | None |
E_400090014 | Generic Transaction not allowed | None |
E_400090015 | Empty action | None |
E_400090016 | No rule logic expression provided | None |
E_400090017 | Could not evaluate rule logic expression | None |
E_400090018 | Invalid value for data type condition | Data Type |
E_400090019 | You can’t specify a message identifier if you specify the message for the transaction | None |
E_400090020 | You should either specify the message or a message identifier | None |
E_400090022 | Operation message identifier is not valid | Message Identifier |
E_400090023 | Invalid language tag | Language |
E_400090024 | Invalid message identifier | Message Identifier |
E_400090026 | You can’t specify risk level for the transaction without overriding risk calculation | None |
E_400090027 | You can’t specify risk level for the parameter without overriding risk calculation | Parameter |
E_400090028 | You can’t specify risk message for the parameter without overriding risk calculation | Parameter |
E_400090029 | Invalid risk level for param and risk | Parameter, Risk Parameter |
E_400090030 | Invalid risk level | Risk Level |
E_400090031 | There is a parameter with no key specified | None |
E_400090032 | Missing required parameter in the transaction | Parameter |
E_400090033 | Specified parameter does not exist on the operation | Parameter |
E_400090034 | Invalid parameter data type | None |
E_400090035 | Error validating parameter, invalid data type | Parameter, Currency |
E_400090036 | Missing currency in aux fields | None |
E_400090037 | Invalid currency | None |
E_400090038 | Currency isn’t valid | Currency |
E_400090039 | Transaction’s message can’t be empty | None |
E_400090040 | Transaction’s action message can’t be empty | None |
E_400090041 | Transaction duration is too low | Duration |
E_400090042 | Transaction duration is too high | Duration |
E_400090044 | Invalid value for money condition | None |
E_400090045 | Invalid currency for money condition | None |
E_400090046 | Invalid value for metadata attribute | Metadata Attribute |
E_400090047 | Invalid required authentication | Required Authentication |
E_400090050 | Couldn’t calculate risk for a mandatory module | Risk Module |
E_400090051 | Not found risk level for param | Parameter |
E_400090052 | Param doesn’t fit in any rule | None |
E_400090057 | Invalid Transaction Type | Transaction Type |
E_400090061 | Masked PAN is empty | None |
E_400090062 | Service operation player code is empty | None |
E_400090063 | MBWay partner ID is empty | None |
E_400090064 | MBWay partner key is empty | None |
E_400090065 | MBWay phone prefix is empty | None |
E_400090066 | MBWay phone number is empty | None |
E_400090067 | MBWay application ID is empty | None |
E_400090068 | MBWay service ID is empty | None |
E_400090069 | MBWay PIN is empty | None |
E_400090070 | MBWay activation code is empty | None |
E_400090071 | SIBS 3DS Transaction version not allowed | None |
E_400090072 | Parameters order is referring an unknown parameter | Parameter |
E_400090073 | Parameter is not being referred on parameters order definition | Parameter |
E_400090074 | Parameters order doesn’t start from 0 or doesn’t contain sequential numbers | None |
E_400090076 | Blocked header | Header Key |
E_400090077 | Invalid transaction action | None |
E_400090078 | Parameter with null value | Parameter key |
E_400090079 | You can’t specify any more authentication mechanisms besides “default” | None |
E_400090080 | You can’t define risk message for a parameter without defining risk level | None |
E_400090081 | You can’t define risk level (unless it’s low level) for a parameter without defining risk message | None |