# Technical Documentation API Money Transfer Hub provides possibility to process Person-2-Person and Person-2-Merchant transactions in various forms. Please check details in the below documentation.
This documentation contains the methods for **mobile-server** integration. The methods included in the documentation are intended for Customers creating their own mobile SDK.
The Customer creating the SDK must also remember about the integration with the [MobileDC](https://developer.verestro.com/books/user-lifecycle-card-management-api-sdk) component
Documentation for the **server-to-server** integration is available [here](https://p2ptransactions.upaidtest.pl/docs/index.html) but is **deprecated.**
## Receiver types which can be used to set Receiver.Type Based on ReceiverType user can fill different field in Receiver object in requests.**ReceiverType** | **Description** |
BARE\_CARD\_NUMBER | Bare card number in **Receiver.card** field |
FRIEND\_ID | Should pass FriendId in **Receiver.Card** field |
WALLET\_CARD\_ID | Should pass DataCoreCardId to **Receiver.Card** field and UserDataCoreCardId to **Receiver.userId** field |
EMPTY | Means that the receiver have the same card data like sender. This type may be useful on [Determine Currency](#determine-currency) |
**Type** | **Value** | **Constraints** | **Description** |
alg | RSA-OAEP-256 | Required | Identifies the cryptographic algorithm used to secure the JWE Encrypted Key. Supported algorithms: **RSA-OAEP-256**, **RSA-OAEP-384**, **RSA-OAEP-512**. Recommend value: **RSA-OAEP-256**. |
enc | A256GCM | Required | Identifies the cryptographic algorithm used to secure the payload. Supported algorithms: **A128GCM**, **A192GCM**, **A256GCM**, **A128CBC-HS256**, **A192CBC-HS384**, **A256CBC-HS512**. Recommend value: **A256GCM**. |
typ | JOSE | Optional | Identifies the type of encrypted payload. Recommend value: **JOSE**. |
iat | 1637929226 | Optional | Identifies the time of generation of the JWT token. Supported date format: unix time in UTC. In the case of *iat*send, the validity of JWE is validated. Recommend send the header due to the increase in the security level. |
kid | 5638742a5094327fcd7a5945d06a45a9d83e9006 | Optional | Identifies the public key of use to encrypt payload. Supported format: SHA-1 value of the public key. In the case of *kid* send, the validity of public key is validated, so we can inform the client that the public key has changed. |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
Content-Type | application/x-jwe-encryption-body+json | Optional | Header must be present if the request body is encrypted using the JWE standard. |
X-Encryption-Public-Key | Optional | Header must be present if the response body is to be encrypted using the JWE standard. Public key must be encoded Base64. |
**Http Status** | **Error Status** | **Description** |
400 - Bad Request | ERROR\_VALIDATION | Some fields are invalid |
400 - Bad Request | ERROR\_BAD\_TOKEN | Invalid authorization token |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error decoding public key has sent in header: *X-Encryption-Public-Key* |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error on decrypting request |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error on encrypting response |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | JWE encryption Key is invalid |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | JWE payload is expired |
400 - Bad Request | INVALID\_PHONE\_NUMBERS | Phone numbers has incorrect format |
404 - Not Found | PRODUCT\_NOT\_FOUND | Product not found based on sent header: *Product-Name* |
500 - Internal Server Error | INTERNAL\_SERVER\_ERROR | Internal application error |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
Content-Type | application/x-jwe-encryption-body+json | Optional | Header must be present if the request body is encrypted using the JWE standard. |
X-Encryption-Public-Key | Optional | Header must be present if the response body is to be encrypted using the JWE standard. Public key must be encoded Base64. |
**Http Status** | **Error Status** | **Description** |
400 - Bad Request | ERROR\_VALIDATION | Some fields are invalid |
400 - Bad Request | ERROR\_BAD\_TOKEN | Invalid authorization token |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error decoding public key has sent in header: *X-Encryption-Public-Key* |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error on decrypting request |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error on encrypting response |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | JWE encryption Key is invalid |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | JWE payload is expired |
400 - Bad Request | ERROR\_SENDER\_CARD\_NOT\_ACTIVE | Sender card is not active |
400 - Bad Request | ERROR\_RECEIVER\_CARD\_NOT\_ACTIVE | Receiver card is not active |
400 - Bad Request | UNKNOWN\_ERROR | Unknown error |
404 - Not Found | PRODUCT\_NOT\_FOUND | Product not found based on sent header: *Product-Name* |
404 - Not Found | CANT\_FIND\_CARD | Not found card |
404 - Not Found | FRIEND\_NOT\_EXISTS | Not found friend |
500 - Internal Server Error | INTERNAL\_SERVER\_ERROR | Internal application error |
500 - Internal Server Error | ERROR\_ON\_GETTING\_DEFAULT\_CARD | Error on getting card for friend |
500 - Internal Server Error | FENIGE\_ERROR | Fenige error |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
X-Encryption-Public-Key | Optional | Header must be present if the response body is to be encrypted using the JWE standard. Public key must be encoded Base64. |
**Http Status** | **Error Status** | **Description** |
400 - Bad Request | ERROR\_BAD\_TOKEN | Invalid authorization token |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error decoding public key has sent in header: *X-Encryption-Public-Key* |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error on encrypting response |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | JWE encryption Key is invalid |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | JWE payload is expired |
404 - Not Found | PRODUCT\_NOT\_FOUND | Product not found based on sent header: *Product-Name* |
500 - Internal Server Error | INTERNAL\_SERVER\_ERROR | Internal application error |
500 - Internal Server Error | FENIGE\_ERROR | Fenige error |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
Content-Type | application/x-jwe-encryption-body+json | Optional | Header must be present if the request body is encrypted using the JWE standard. |
X-Encryption-Public-Key | Optional | Header must be present if the response body is to be encrypted using the JWE standard. Public key must be encoded Base64. |
**Http Status** | **Error Status** | **Description** |
400 - Bad Request | ERROR\_VALIDATION | Some fields are invalid |
400 - Bad Request | ERROR\_BAD\_TOKEN | Invalid authorization token |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error decoding public key has sent in header: *X-Encryption-Public-Key* |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error on decrypting request |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error on encrypting response |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | JWE encryption Key is invalid |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | JWE payload is expired |
400 - Bad Request | ERROR\_WHILE\_GETTING\_COUNTRY\_CODE | Could not get card country code |
400 - Bad Request | ERROR\_WHILE\_GETTING\_SENDER\_COUNTRY\_CODE | Could not get card country code for sender |
400 - Bad Request | ERROR\_WHILE\_GETTING\_RECEIVER\_COUNTRY\_CODE | Could not get card country code for receiver |
400 - Bad Request | ERROR\_SENDER\_CARD\_NOT\_ACTIVE | Sender card is not active |
400 - Bad Request | ERROR\_RECEIVER\_CARD\_NOT\_ACTIVE | Receiver card is not active |
400 - Bad Request | UNKNOWN\_ERROR | Unknown error |
404 - Not Found | PRODUCT\_NOT\_FOUND | Product not found based on sent header: *Product-Name* |
404 - Not Found | CANT\_FIND\_CARD | Not found card |
404 - Not Found | FRIEND\_NOT\_EXISTS | Not found friend |
500 - Internal Server Error | INTERNAL\_SERVER\_ERROR | Internal application error |
500 - Internal Server Error | ERROR\_ON\_GETTING\_DEFAULT\_CARD | Error on getting card for friend |
500 - Internal Server Error | FENIGE\_ERROR | Fenige error |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
Content-Type | application/x-jwe-encryption-body+json | Optional | Header must be present if the request body is encrypted using the JWE standard. |
X-Encryption-Public-Key | Optional | Header must be present if the response body is to be encrypted using the JWE standard. Public key must be encoded Base64. |
**Http Status** | **Error Status** | **Description** |
400 - Bad Request | ERROR\_VALIDATION | Some fields are invalid |
400 - Bad Request | ERROR\_BAD\_TOKEN | Invalid authorization token |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error decoding public key has sent in header: *X-Encryption-Public-Key* |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error on decrypting request |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | Error on encrypting response |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | JWE encryption Key is invalid |
400 - Bad Request | CRYPTOGRAPHY\_ERROR | JWE payload is expired |
400 - Bad Request | ERROR\_WHILE\_GETTING\_COUNTRY\_CODE | Could not get card country code |
400 - Bad Request | ERROR\_MERCHANT\_NOT\_SUPPORT\_CARD\_PROVIDER | Merchant not support card provider |
400 - Bad Request | ERROR\_SENDER\_CARD\_NOT\_ACTIVE | Sender card is not active |
400 - Bad Request | ERROR\_RECEIVER\_CARD\_NOT\_ACTIVE | Receiver card is not active |
400 - Bad Request | ERROR\_SENDER\_CARD\_IS\_BLOCKED | Sender card is blocked |
400 - Bad Request | ERROR\_RECEIVER\_CARD\_IS\_BLOCKED | Receiver card is blocked |
400 - Bad Request | UNKNOWN\_ERROR | Unknown error |
404 - Not Found | PRODUCT\_NOT\_FOUND | Product not found based on sent header: *Product-Name* |
404 - Not Found | CANT\_FIND\_CARD | Not found card |
404 - Not Found | FRIEND\_NOT\_EXISTS | Not found friend |
500 - Internal Server Error | INTERNAL\_SERVER\_ERROR | Internal application error |
500 - Internal Server Error | FENIGE\_ERROR | Fenige error |
500 - Internal Server Error | ERROR\_ON\_GETTING\_DEFAULT\_CARD | Error on getting card for friend |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
Content-Type | application/x-response-body+json | Optional | Header must be present if the response body must have body. |
Content-Type | application/x-jwe-encryption-body+json | Optional | Header must be present if the request body is encrypted using the JWE standard. |
X-Encryption-Public-Key | Optional | Header must be present if the response body is to be encrypted using the JWE standard. Public key must be encoded Base64. |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
X-Encryption-Public-Key | Optional | Header must be present if the response body is to be encrypted using the JWE standard. Public key must be encoded Base64. |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
Content-Type | application/x-jwe-encryption-body+json | Optional | Header must be present if the request body is encrypted using the JWE standard. |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
Content-Type | application/x-jwe-encryption-body+json | Optional | Header must be present if the request body is encrypted using the JWE standard. |
X-Encryption-Public-Key | Optional | Header must be present if the response body is to be encrypted using the JWE standard. Public key must be encoded Base64. |
**Error Detail Code** | **Reason Code** | **Description** |
062000 | INVALID\_INPUT\_FORMAT | Value contains invalid character |
072000 | INVALID\_INPUT\_LENGTH | Invalid length |
082000 | INVALID\_INPUT\_VALUE | Invalid value |
092000 | MISSING\_REQUIRED\_INPUT | Value is required |
110501 | RESOURCE\_ERROR | Duplicate value |
110503 | RESOURCE\_ERROR | Account not eligible |
110505 | RESOURCE\_ERROR | Invalid currency |
110507 | RESOURCE\_UNKNOWN | Record not found |
110510 | RESOURCE\_ERROR | Invalid Request |
110537 | RESOURCE\_ERROR | Value is not supported for the merchant |
130004 | DECLINE | Per transaction maximum amount limit reached |
130006 | DECLINE | Transaction Limit is less than the minimum configured for the partner |
130010 | DECLINE | Partner not onboarded for the network to reach the account |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
Content-Type | application/x-jwe-encryption-body+json | Optional | Header must be present if the request body is encrypted using the JWE standard. |
X-Encryption-Public-Key | Optional | Header must be present if the response body is to be encrypted using the JWE standard. Public key must be encoded Base64. |
**Path** | **Type** | **Description** |
authenticationId | String | Unique authentication identifier |
threeDsMethodData | String | Encoded data used for request to ACS |
threeDsMethodUrl | String | ACS endpoint for hidden request. If endpoint is not present then request is not required. |
authenticationStatus | String | Indicates whether a transaction qualifies as an authenticated transaction or account verification. Possible values are: **Y** - Authentication/account verification successful **N** - Not authenticated/account not verified; transaction denied **U** - Authentication/account verification could not be performed; technical or other problem as indicated in ARes or RReq **A** - Attempts processing performed; not authenticated/verified, but a proof of attempted authentication/verification is provided **C** - Challenge required; additional authentication is required using the CReq/CRes **R** - Authentication/account verification rejected; issuer is rejecting authentication/verification and request that authorization not be attempted **D** - Challenge required; decoupled authentication confirmed **I** - Informational only; ThreeDs Requestor challenge preference acknowledged The CRes message can contain only a value of Y or N. Values of D and I are only applicable for ThreeDs version 2.2.0. |
transactionXId | String | This field indicates the transactionXid from recurring initial authentication. |
cavv | String | This property is determined by the Access Control Server. This property will be valid if the TransactionStatus is "Y" or "A". The value may be used to provide proof of authentication. |
eci | String | This property is determined by the Access Control Server. This property contains the two digit Electronic Commerce Indicator (ECI) value, which is to be submitted in a credit card authorization message. This value indicates to the processor that the customer data in the authorization message has been authenticated. The data contained within this property is only valid if the TransactionStatus is "Y" or "A". |
acsUrl | String | If challenge is required, data for building a form such as challengeHtmlFormBase64 |
creq | String | If challenge is required, data for building a form such as challengeHtmlFormBase64 |
challengeHtmlFormBase64 | String | This field is a BASE64 encrypted html source file containing the challenge 3-D Secure frame |
threeDsSessionData | String | ThreeDsSessionData value |
threeDsMode | String | ThreeDs process mode which informs about. One of: \[FRICTIONLESS, THREE\_DS\_METHOD, CHALLENGE\] **FRICTIONLESS** - this is where the authentication process was finished. **THREE\_DS\_METHOD** - next step is to execute the ThreeDs method process. After it is done, we need to make a request to the method: [Continue Authentication](#continue-authentication) **CHALLENGE** - next step is to execute the challenge process. After it is done, we need to make a request to the method: [Finalize Authentication](#finalize-authentication) |
**Http Status** | **Error Status** | **Description** |
400 - Bad Request | PROCESS\_NOT\_ALLOWED | Method not allowed - invoke calculate commission method is necessary first. |
400 - Bad Request | ERROR\_SENDER\_CARD\_NOT\_ACTIVE | Sender card is not active |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
Content-Type | application/x-jwe-encryption-body+json | Optional | Header must be present if the request body is encrypted using the JWE standard. |
X-Encryption-Public-Key | Optional | Header must be present if the response body is to be encrypted using the JWE standard. Public key must be encoded Base64. |
**Path** | **Type** | **Description** |
authenticationId | String | Unique authentication identifier |
authenticationStatus | String | Indicates whether a transaction qualifies as an authenticated transaction or account verification. Possible values are: **Y** - Authentication/account verification successful **N** - Not authenticated/account not verified; transaction denied **U** - Authentication/account verification could not be performed; technical or other problem as indicated in ARes or RReq **A** - Attempts processing performed; not authenticated/verified, but a proof of attempted authentication/verification is provided **C** - Challenge required; additional authentication is required using the CReq/CRes **R** - Authentication/account verification rejected; issuer is rejecting authentication/verification and request that authorization not be attempted **D** - Challenge required; decoupled authentication confirmed **I** - Informational only; ThreeDs Requestor challenge preference acknowledged The CRes message can contain only a value of Y or N. Values of D and I are only applicable for ThreeDs version 2.2.0. |
transactionXId | String | This field indicates the transactionXid from recurring initial authentication. |
cavv | String | This property is determined by the Access Control Server. This property will be valid if the TransactionStatus is "Y" or "A". The value may be used to provide proof of authentication. |
eci | String | This property is determined by the Access Control Server. This property contains the two digit Electronic Commerce Indicator (ECI) value, which is to be submitted in a credit card authorization message. This value indicates to the processor that the customer data in the authorization message has been authenticated. The data contained within this property is only valid if the TransactionStatus is "Y" or "A". |
acsUrl | String | If challenge is required, data for building a form such as challengeHtmlFormBase64 |
creq | String | If challenge is required, data for building a form such as challengeHtmlFormBase64 |
challengeHtmlFormBase64 | String | This field is a BASE64 encrypted html source file containing the challenge 3-D Secure frame |
threeDsSessionData | String | ThreeDsSessionData value |
threeDsMode | String | ThreeDs process mode which informs about. One of: \[FRICTIONLESS, CHALLENGE\] **FRICTIONLESS** - this is where the authentication process was finished. **CHALLENGE** - next step is to execute the challenge process. After it is done, we need to make a request to the method: [Finalize Authentication](#finalize-authentication) |
**Type** | **Value** | **Constraints** | **Description** |
Authorization | Mobile bG9naW46YWNrbWU= | Required | Device token with "Mobile " prefix |
Product-Name | TestProduct | Required | Application product name |
Content-Type | application/x-jwe-encryption-body+json | Optional | Header must be present if the request body is encrypted using the JWE standard. |
X-Encryption-Public-Key | Optional | Header must be present if the response body is to be encrypted using the JWE standard. Public key must be encoded Base64. |
**Path** | **Type** | **Description** |
authenticationId | String | Unique authentication identifier |
authenticationStatus | String | Indicates whether a transaction qualifies as an authenticated transaction or account verification. Possible values are: **Y** - Authentication/account verification successful **N** - Not authenticated/account not verified; transaction denied **U** - Authentication/account verification could not be performed; technical or other problem as indicated in ARes or RReq **A** - Attempts processing performed; not authenticated/verified, but a proof of attempted authentication/verification is provided **C** - Challenge required; additional authentication is required using the CReq/CRes **R** - Authentication/account verification rejected; issuer is rejecting authentication/verification and request that authorization not be attempted **D** - Challenge required; decoupled authentication confirmed **I** - Informational only; ThreeDs Requestor challenge preference acknowledged The CRes message can contain only a value of Y or N. Values of D and I are only applicable for ThreeDs version 2.2.0. |
transactionXId | String | This field indicates the transactionXid from recurring initial authentication. |
cavv | String | This property is determined by the Access Control Server. This property will be valid if the TransactionStatus is "Y" or "A". The value may be used to provide proof of authentication. |
eci | String | This property is determined by the Access Control Server. This property contains the two digit Electronic Commerce Indicator (ECI) value, which is to be submitted in a credit card authorization message. This value indicates to the processor that the customer data in the authorization message has been authenticated. The data contained within this property is only valid if the TransactionStatus is "Y" or "A". |