1. Changelog
Version | Date | Description |
---|---|---|
10.3 |
2024-08-29 |
Mock for Mastercard and Visa test cards have been added only for Staging env 2.7. Mock cards for test. |
10.2 |
2024-08-06 |
Change validation for firstName, lastName and cardholderName. Fields cannot start and end with whitespace characters. Full regular expressions may be found in every sendmoney request (e.g. Card 2 card) and 3DS Authentication requests. Requirements will apply from 2024-10-01 in production environment. |
10.1 |
2024-08-01 |
Change validation for 7.2. Authentication method. From August 12th Visa will officially require to provide one of these fields: cardholderEmail, cardholderMobilePhone, cardholderHomePhone or cardholderWorkPhone. Failure to provide this value may result in 3DS authentication rejections. As of September 2 Fenige will require to provide one of these values in every Authentication request for VISA. |
10.0 |
2024-07-20 |
Added tokenize card support in all send-money methods |
9.9 |
2024-07-01 |
New fields 'subMerchantName' and 'subMerchantCountry' in Send Money request added. Both fields are conditional - mandatory only when merchant is configured as marketplace. |
9.8 |
2024-06-25 |
A new field has been added - 'sendMoneyType' in response to request 3.1.6. Transaction details and 3.2.6. Transaction details. |
9.7 |
2024-05-23 |
Added optional "rodo" and "marketing" flags for Add user USA or CAN transactions request 11.1.1. Add user, and Update user request 11.2.1. Update user |
9.6 |
2024-04-16 |
Added new webhook notification occuring during CASH_ACCOUNT transaction processing. |
9.5 |
2024-04-10 |
Added webhook : Acquirer reconciliation date webhook + Acquirer reconciliation date webhook |
9.4 |
2024-04-06 |
New transaction model in Payouts area is released. Now we can process transaction from Card to Account number. New transaction model was added as new tab in Card to Card section: + New CARD-ACCOUNT transaction model + New CARD-ACCOUNT transaction model with 3DS |
9.3 |
2024-04-05 |
New regexp for houseNumber |
9.2 |
2024-04-05 |
Payouts from deposit Possibility to make payouts with tokens. |
9.1 |
2024-02-15 |
Release of the new method Calculate commission payout. The method informs about the amount that will be removed from the deposit and gives possibility to use exact result in the send money method. |
9.0 |
2023-12-29 |
Added new status to send-money methods: ERROR_WEEKLY_TRANSACTION_LIMIT. Adjustment of card limits for Visa and Mastercard organizations. |
8.9 |
2023-12-14 |
New transaction model in Payouts area is released. Now we can process transaction from Deposit to Account number. Look here for more information and navigate to CASH-ACCOUNT tab in Request section + New CASH-ACCOUNT transaction model |
8.8 |
2023-11-20 |
Adding information about Merchant Advice Codes. Changes in check transaction status response - new field merchantAdviceCode. Occurs only for Mastercard and for declined transactions if Mastercard returns this information |
8.7 |
2023-11-02 |
Complete end of support for 3ds version 1.0 |
8.6 |
2023-10-26 |
Added new payment method BLIK-CARD BLIK to Card |
8.5 |
2023-03-21 |
Added new optional fields for method /client/3ds/authentication regarding Cardholder Billing Information |
8.4 |
2023-02-16 |
Regexp for house number properties in each occurrences was changed |
8.3 |
2023-01-11 |
Following to the newest Mastercard Data Integrity Monitoring Program Edits for Funding Transactions all of the money transfers must contain additional informations about receiver: First name and Last name. Consequently delayed receiver type for delayed payment: Receiver Delayed was changed - required fields: firstName and lastName were added. |
8.2 |
2022-12-02 |
Added new field to receiver - country of residence. Changes in request transactions - sender country is required for merchant crypto. Added new status to check status send-money response: ERROR_TRANSACTION_BLOCKED_WITH_CARD_ISSUED_IN_GIVEN_CARD_COUNTRY |
8.1 |
2022-12-09 |
Extension of methods determine currency and currency for card by country card |
8.0 |
2022-12-01 |
Delete field 'currency' from sender models: Sender Cash and Receiver Cash. Restrict 'type' field to specific transaction types: CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER |
7.9 |
2022-11-24 |
Added new status to check status send-money response: MERCHANT_CRYPTO_OUTSIDE_EEA_UK_NOT_SUPPORTED |
7.8 |
2022-11-07 |
Documentation enhancement, minor fixes and better details for 401 UNAUTHORIZED status |
7.7 |
2022-10-26 |
Removal from use 3DS 1 for all countries (except those configured in the system) |
7.6 |
2022-10-24 |
Adding information about the withdrawal of 3DSv1. |
7.5 |
2022-10-13 |
New optional birthDay parameter added to Sender and Receiver data. This parameter may help in AML verification |
7.4 |
2022-10-12 |
Changes in Payment of Delayed Transaction - now it is enabled to include cardId without plain card number in request, look at 4. Delayed payment chapter |
7.3 |
2022-10-06 |
New statuses added for Delayed Payment: ERROR_SINGLE_TRANSACTION_LIMIT, ERROR_DAILY_TRANSACTION_LIMIT, ERROR_DAILY_COUNT_TRANSACTION_LIMIT, ERROR_MONTHLY_TRANSACTION_LIMIT, ERROR_MONTHLY_COUNT_TRANSACTION_LIMIT, ERROR_DAILY_CUMULATIVE_LIMIT, ERROR_MONTHLY_CUMULATIVE_LIMIT, ERROR_MERCHANT_MASTERCARD_DAILY_CUMULATIVE_LIMIT, ERROR_MERCHANT_MASTERCARD_MONTHLY_CUMULATIVE_LIMIT, ERROR_MERCHANT_VISA_DAILY_CUMULATIVE_LIMIT, ERROR_MERCHANT_VISA_MONTHLY_CUMULATIVE_LIMIT, ERROR_MERCHANT_DAILY_CUMULATIVE_LIMIT, ERROR_MERCHANT_MONTHLY_CUMULATIVE_LIMIT, LIMIT_ERROR. Statuses may be occurred in Delayed Send Money and in Delayed Payment methods. |
7.2 |
2022-10-03 |
Updated error responses in delayed send money / payment operations (card lock info added). New endpoints added: + Check the detailed status of a multi-currency transaction + Check the detailed status of a 3DS transaction |
7.1 |
2022-08-26 |
New status added for Delayed Payment feature: ERROR_DELAYED_PAYMENT_UNEXPECTED_EXCEPTION_OCCURRED |
7.0 |
2022-08-05 |
New request field on 3DS 2.X: challengeWindowSize |
6.9 |
2022-07-15 |
Added new fields Cardholder First Name and Last Name to Add card method. + 14.1. Add card |
6.8 |
2022-06-13 |
Delete status ERROR_TRANSACTION_USER_NAME_CONTAINS_FRAUDULENT_PART, added a new INCORRECT_NAME_DATA status that will have the same role. |
6.7 |
2022-05-09 |
Added new statuses to send-money methods: ERROR_TRANSACTION_USER_NAME_CONTAINS_FRAUDULENT_PART - Transaction rejected, sender or receiver name contains fraudulent phrase, ERROR_NAME_VERIFICATION - Transaction rejected, suspicious sender or receiver name |
6.6 |
2022-04-14 |
Added new status to check status send-money response: ERROR_VALIDATION_EXPIRY_DATE |
6.5 |
2022-04-08 |
Added new fields to check status method. Fields: merchantSettlementCurrency, fenigeCommissionInMerchantSettlementCurrency, transactionAmountInMerchantSettlementCurrency |
6.4 |
2022-03-11 |
New transaction status added (MASTERCARD_MAC_TPE_EXCELLENCE_RULE) for all transactions type to reject transaction. Transaction rejected, when second transaction with merchant advice code 03 or 21 was retried within 30 days. + 3. Send money + 4. Delayed payment |
6.3 |
2022-02-28 |
Added new field for Add Card method. It is possible to correlate Sender Card with phone number now. One phone number can hold one card per User. Additionally new status was added: ERROR_CARD_WITH_PHONE_NUMBER_EXISTS, when card with phone number exists for such User. + 14.1. Add Card |
6.2 |
2022-03-10 |
Add new PLAIN-DATACORE methods. + 3. Send money + 8. Determine currency + 9. Calculate commission |
6.1 |
2022-02-07 |
Add new response error statuses: ERROR_SINGLE_TRANSACTION_LIMIT, ERROR_DAILY_COUNT_TRANSACTION_LIMIT, ERROR_MONTHLY_TRANSACTION_LIMIT, ERROR_MONTHLY_COUNT_TRANSACTION_LIMIT. |
6.0 |
2022-01-15 |
Add new response error status: ERROR_TRANSACTION_PROCESSING_TIME_TOO_LONG + 3. Send money |
5.9 |
2021-12-06 |
New transaction status added (ERROR_TRANSACTION_GEOGRAPHIC_SCOPE_BLOCKED) for all transactions type to indicate blocked transaction in specific geographic scope + 3. Send money + 4. Delayed payment |
5.8 |
2021-12-29 |
Add new API methods for reset user password + 13. User management |
5.7 |
2021-12-10 |
Changed constraint from optional to required on country field in user management > add user. |
5.6 |
2021-12-09 |
Documentation updated. Error ERROR_CARD_ALREADY_EXISTS_FOR_ANOTHER_USER added for add card error statuses. |
5.5 |
2021-12-06 |
Updated validation for purchaseAmount in Authentication request in 3DS 2.X verification methods |
5.4 |
2021-11-16 |
Added new mandatory field when country is set to US (United States) or CA (Canada) to CASH_PLAIN and CASH_PHONE send-money methods. |
5.3 |
2021-11-08 |
Updated information about API-TOKEN refresh time in methods that require it |
5.2 |
2021-10-27 |
Add new response error statuses: ERROR_PAYMENT_CARD_COUNTRY_RESTRICTED, ERROR_FUNDING_CARD_COUNTRY_RESTRICTED, ERROR_MERCHANT_DELAYED_PAYMENT_CARD_COUNTRY_RESTRICTED, ERROR_DELAYED_PAYMENT_CARD_COUNTRY_RESTRICTED + 3. Send money + 4. Delayed payment |
5.1 |
2021-10-25 |
Removed redundant validation response statuses from methods + Card to Card + Payouts on Card + Card to Card 3D Secure + The change does not affect the API. |
5.0 |
2021-10-20 |
New status added for send-money validation error response: ERROR_MERCHANT_NOT_SUPPORT_CARD_PROVIDER 3. Send money |
4.9 |
2021-10-14 |
Added new types: DOMESTIC_PL, INTRA_EU, INTER to geographicScope field in 9. Calculate commission |
4.8 |
2021-10-05 |
Addition of an explanation of the default status ERROR_SOMETHING_WRONG for the check status send money methods + 3.1.3 Check status + 3.2.3 Check status |
4.7 |
2021-09-06 |
New merchant cumulative limits added: daily and monthly cumulative limit for all card providers. + New Statuses added: ERROR_MERCHANT_DAILY_CUMULATIVE_LIMIT, ERROR_MERCHANT_MONTHLY_CUMULATIVE_LIMIT + 3.1.3 Check status + 3.2.3 Check status |
4.6 |
2021-09-07 |
New response status ERROR_API_TOKEN_NOT_FOUND added when API-TOKEN header is not attached to DATACORE based request |
4.5 |
2021-05-05 |
An implementation of CODE_65/CODE_1A transaction rejection logic for MASTERCARD and VISA. More details can be found here: 3. Send money 4. Delayed payment |
4.4 |
2021-04-26 |
Introducing a service that validates the personal information of transaction users and Add User method data. In case of positive verification, the transaction/Add User is rejected with the status: ERROR_USER_VERIFICATION |
4.3 |
2021-04-22 |
Exclusion of deprecated currencies. Validation will reject these currencies: BYR, LTL, MRO, RUR, STD |
4.2 |
2021-03-01 |
Introduction of a new webhook functionality. Now it is possible to handle information about transaction status without polling API. + 5. Webhooks |
4.1 |
2021-02-17 |
New status: CARD_MODIFY_LIMIT_REACHED for Add/Delete Card and Add/Delete Friend Card methods. Default limits are set to 3 cards modifications e.g. Add/Delete card per user during 24h also 3 modifications for friend cards. These values could be modified for the merchant, please contact us if you need changes. |
4.0 |
2021-02-02 |
Added method Currency rate by provider which also allows you to download historical rates. |
3.9 |
2021-02-02 |
Added new fields '3DS', 'amountInUsDollar', 'provider', 'bankName' on thw response body for Check status and Transaction history methods. |
3.8 |
2021-01-18 |
New fields 'merchantUrl' and 'addressIp' in Send Money request added. Both fields are optional now, but it is recommended to include it in your request body. From 2021-05-03 the fields will be required. |
3.7 |
2021-01-13 |
New merchant cumulative limits added: daily and monthly with distinction between Mastercard and VISA. + New Statuses added: ERROR_MERCHANT_MASTERCARD_DAILY_CUMULATIVE_LIMIT, ERROR_MERCHANT_MASTERCARD_MONTHLY_CUMULATIVE_LIMIT, ERROR_MERCHANT_VISA_DAILY_CUMULATIVE_LIMIT, ERROR_MERCHANT_VISA_MONTHLY_CUMULATIVE_LIMIT + Old status to remove: ERROR_MERCHANT_MONTHLY_CUMULATIVE_LIMIT + 3.1.3 Check status + 3.2.3 Check status 3ds |
3.6 |
2021-01-05 |
Updates for 3DS 2.X |
3.5 |
2020-12-16 |
Modify personal data validation for send money methods, especially sender and receiver - firstName, lastName, email. Set minimum length 2 for firstName and lastName. FirstName and lastName cannot be the same and cannot consist of the same characters. One email address cannot be the same within sender and receiver for 2 different personal data. |
3.4 |
2020-12-03 |
Add new Delayed Payment methods. + 4. Delayed payment |
3.3 |
2020-12-02 |
New status: CARD_LIMIT_REACHED for Add Card and Add Friend Card methods. Default limits are 5 cards per user and 5 friend cards per user. These values are configured for the merchant, please contact us if you need changes |
3.2 |
2020-11-17 |
3DS 2.x method introduced in Send money + Card to Card 3D Secure |
3.1 |
2020-10-14 |
Add new VISA response code value 80 |
3.0 |
2020-10-05 |
Documentation updated. Error CURRENCY_RATES_NOT_FOUND added for send money error statuses. |
2.9 |
2020-07-09 |
Description of check card’s provided added. |
2.8 |
2020-07-03 |
Documentation updated. Error ERROR_WHILE_GETTING_COUNTRY_CODE added for Calculate commission method. |
2.7 |
2020-06-03 |
Documentation updated. Change value and description about field "md" in Initialize and Finalize methods: + 5.2. Initialize + 5.3. Finalize |
2.6 |
2020-05-21 |
User blocking for entire system operations feature added, new response for login method added. + 8.1. Login |
2.5 |
2020-03-17 |
Add information about card bin to responses of methods: Get Card List, Get Friend Card List + 10.3. Get card list + 11.4. Get friend card list |
2.4 |
2020-03-05 |
New response code from Monitoring service added: ERROR_FUNDING_BANK_IS_BLOCKED, ERROR_PAYMENT_BANK_IS_BLOCKED + 3.1.3 Check status + 3.2.3 Check status 3ds |
2.3 |
2020-01-31 |
Information about certification process added |
2.2 |
2019-10-11 |
Regular expression added to models + 13. Models |
2.1 |
2019-09-26 |
New response code from Monitoring service added + 3.1.3 Check status + 3.2.3 Check status 3ds |
2.0 |
2019-09-16 |
New response code added + 3.1.3 Check status + 3.2.3 Check status 3ds |
1.9 |
2019-09-06 |
New response code added + 3.1.3 Check status + 3.2.3 Check status 3ds |
1.8 |
2019-07-17 |
Regexp for Postal code properties in each occurrences was changed |
1.7 |
2019-07-10 |
ISO-8583 statuses updated |
1.6 |
2019-04-26 |
Datacenter migration. + Removed fields from here: 9.1 Add user + -acceptMarketing + -acceptTos + -dailyLimit |
1.5 |
2019-03-21 |
Added new method to check deposit state for CASH_CARD Merchants + 7. Check deposit state |
1.4 |
2019-01-10 |
|
1.3 |
2019-01-02 |
Added new transaction error status: ERROR_MPI_STATUS_TO_LOW: 3.2.3 Response→ 500 INTERNAL SERVER ERROR |
1.2 |
2018-11-27 |
Documentation updated. Change description about response field "prefix" in: 9.5. Get countries |
1.1 |
2018-11-22 |
Documentation updated. Added information about errors related to incompatible country codes of User and User’s card for USA or CAN transaction in: 3.1.2. Response→ 200 OK - Error validation, 3.2.2. Response → 200 OK - Error validation. |
1.0 |
2018-06-25 |
First release of documentation. |
2. Introduction
Document describes technical scope of the "Fenige Transfer HUB REST API" i.e. services, which is financial institution that processes credit or debit card payments.
Quick tutorial that may helps you in works with API you can find here: Tutorial
Documentation has been prepared for external partners that are willing to cooperate with Fenige and offer MoneySend card-to-card P2P transactions inside their mobile or web applications. The roles of Fenige and Partner in such project are the following:
Partner:
Fenige:
High Level Architecture:
Transaction process:
2.1. Endpoints
Environment | Endpoint (base url) |
---|---|
Staging |
2.2. HTTP verbs
RESTful notes tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP verbs.
Verb | Usage |
---|---|
|
Used to retrieve a resource |
|
Used to create a new resource |
|
Used to update specific resource |
|
Used to delete a resource |
2.3. User authentication
Authentication in HUB API is done by basic authentication and two token mechanism.
-
API-TOKEN - we can use this authentication method when client is integrated only with HUB application.
-
X-Request-Token, X-Device-ID - this authentication method is using by mobile devices which are in communication with different server.
2.4. Language
If you want to select your language, add Accept-Language header to request JSON and set its value to, for example, pl, en, cs or sk. In case of a successful transaction for the send money method you will receive a email confirmation in the language which you set.
Accept-Language |
en |
2.5. General methods
All api methods require the delivery of appropriate headers.
List of methods headers used in Fenige REST API:
Key | Value | Validation | Description |
---|---|---|---|
|
application/json |
Required |
Used to indicate the media type of the resource |
|
application/vnd.sendmoney.v2+json |
Optional |
Used for send-money with multi-currency purpose |
|
application/vnd.sendmoney3ds.v2+json |
Optional |
Used for send-money-3ds with multi-currency purpose |
|
application/vnd.determine-currencies.v2+json |
Optional |
Used for determine currencies with multi-currency purpose |
|
application/vnd.calculate-commission.v2+json |
Optional |
Used for calculate commission with multi-currency purpose |
|
Basic dGVzdDp0ZXN0 |
Required |
Used to resolve merchant context of user. Basic Auth from merchant data (merchant name and password). Consist of keyword Basic and string obtained from Base64 coding method for merchant name and password parameter |
|
BMT4wKduNftnN3AUkkKnm4BJEqiMKZlcdLiKRtJH9ac= |
Optional |
Some of the methods require additional authentication. The API-TOKEN is obtained by calling the logUser method. API-TOKEN is valid for 30 minutes |
2.6. HTTP status codes
RESTful notes tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP status codes.
Status code | Usage |
---|---|
|
The request completed successfully |
|
The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place |
|
The request was malformed. The response body will include an error providing further information |
|
The requested resource did not exist |
|
Message occur when an unexpected condition was encountered |
2.7. Mock cards for test:
Here are test cards with a defined ResponseCode running only on the STAGING environment. Please note that these are just card ranges, you need to generate a valid card number that will be included in this card range (e.g. using any online generator that generates cards based on bin - first 6 digits).
Begin | End | RC | MAC |
---|---|---|---|
5117960000000000 |
5117968999999999 |
CODE_00 |
x |
5486000000000000 |
5486009999999999 |
CODE_05 |
x |
5402060000000000 |
5402069999999999 |
CODE_30 |
x |
5406603500000000 |
5406603599999999 |
CODE_05 |
03 |
Begin | End | RC |
---|---|---|
4400430000000000 |
4400430399999999 |
CODE_00 |
4444184330000000 |
4444184339999999 |
CODE_05 |
4444184320000000 |
4444184329999999 |
CODE_30 |
4444184310000000 |
4444184319999999 |
CODE_N7 |
2.8. Mastercard/VISA response code (ISO 8583):
Status code | Usage |
---|---|
|
Approved or completed successfully |
|
Refer to card issuer |
|
Refer to card issuer’s special conditions |
|
Invalid merchant |
|
Pick up card (no fraud) |
|
Do not honor |
|
General error |
|
Pick up card, special condition (fraud account) |
|
Honor with ID |
|
Request in progress |
|
Approved for partial amount |
|
Approved (V.I.P) |
|
Invalid transaction |
|
Invalid amount |
|
Invalid account number (no such number) |
|
No such issuer |
|
Approved, update track 3 |
|
Customer cancellation |
|
Customer dispute |
|
Re-enter transaction |
|
Invalid response |
|
No action taken |
|
Suspected malfunction |
|
Unacceptable transaction fee |
|
File update not supported by receiver |
|
Unable to locate record in file |
|
Duplicate file update record, old record replaced |
|
File update field edit error |
|
File update file locked out |
|
File update not successful, contact acquirer |
|
Format error |
|
Bank not supported by switch |
|
Completed partially |
|
Expired card |
|
Suspected fraud |
|
Card acceptor contact acquirer |
|
Restricted card |
|
Card acceptor call acquirer security |
|
Allowable PIN tries exceeded |
|
No credit account |
|
Requested function not supported |
|
Lost card, pick up (fraud account) |
|
No universal account |
|
Stolen card, pick up (fraud account) |
|
No investment account |
|
Not sufficient funds |
|
No checking account |
|
No savings account |
|
Expired card or expiration date is missing |
|
Incorrect PIN or PIN missing |
|
No card record |
|
Transaction not permitted to cardholder |
|
Transaction not permitted to acquirer/terminal |
|
Suspected fraud |
|
Card acceptor contact acquirer |
|
Exceeds withdrawal amount limit |
|
Restricted card (card invalid in this region or country) |
|
Security violation (source is not correct issuer) |
|
Original amount incorrect/Transaction does not fulfill AML requirement |
|
Exceeds withdrawal frequency limit |
|
Card acceptor call acquirer’s security department |
|
Hard capture (requires that card be picked up at ATM) |
|
Response received too late |
|
Contact Card Issuer/PIN data required |
|
PIN Not Changed |
|
Different value than that used for PIN encryption errors |
|
Allowable number of PIN tries exceeded |
|
Invalid/nonexistent “To Account” specified/Unsolicited reversal |
|
Invalid/nonexistent “From Account” specified |
|
Invalid/nonexistent account specified (general)/“Blocked, first used”—Transaction from new cardholder, and card not properly unblocked |
|
Life cycle/Already reversed (by Switch) |
|
System not available/No financial impact |
|
Domestic Debit Transaction Not Allowed (Regional use only)/Cryptographic error found in PIN |
|
Policy (Mastercard use only)/Negative CAM, dCVV, iCVV, or CVV results |
|
Fraud/Security (Mastercard use only) |
|
Invalid Authorization Life Cycle |
|
Not declined/No reason to decline a request for address verification, CVV2 verification, or a credit voucher or merchandise return |
|
PIN Validation not possible |
|
Purchase Amount Only, No Cash Back Allowed |
|
Cryptographic failure |
|
Unacceptable PIN—Transaction Declined—Retry/Ineligible to receive financial position information (GIV) |
|
Cutoff is in process (switch ending a day’s business and starting the next. Transaction can be sent again in a few minutes) |
|
Issuer or switch is inoperative/Issuer or switch inoperative and STIP not applicable or not available for this transaction; Time-out when no stand-in; POS Check Service: Destination unavailable; Credit Voucher and Merchandise Return Authorizations: V.I.P. sent the transaction to the issuer, but the issuer was unavailable. |
|
Financial institution or intermediate network facility cannot be found for routing |
|
Transaction cannot be completed. Violation of law |
|
Duplicate transmission |
|
Reconcile error |
|
System malfunction or certain field error conditions |
|
Additional customer authentication required |
|
Surcharge amount not permitted on Visa cards (U.S. acquirers only) |
|
Surcharge amount not supported by debit network issuer. |
|
Force STIP |
|
Cash service not available |
|
Cashback request exceeds issuer limit or appoved limit |
|
Ineligible for resubmission |
|
Decline for CVV2 failure |
|
Transaction amount exceeds preauthorized approval amount |
|
Invalid biller information |
|
Denied PIN unblock—PIN change or unblock request declined by issuer |
|
Denied PIN change—requested PIN unsafe |
|
Card Authentication failed |
|
Stop payment order |
|
Revocation of authorization order |
|
Transaction does not qualify for Visa PIN |
|
Revocation of all authorizations order |
|
Forward to issuer |
|
Forward to issuer |
|
Unable to go online |
|
Customer ID verification failed |
|
Additional customer authentication required (Europe Region only) |
|
Verification Failed (Cardholder Identification does not match issuer records) |
2.9. Merchant advice codes
Merchant Advice Codes (MACs) are introduced by Mastercard to clearly communicate to merchants the reason for declining transactions, and the course of action that merchants can take. Occurs only for declined transactions if Mastercard returns this information.
Merchant Advice Code | Merchant Advice Code Text |
---|---|
|
New account information available |
|
Cannot approve at this time, try again later |
|
Do not try again |
|
Token not supported |
|
Stop recurring payment |
|
Retry after 1 hour |
|
Retry after 24 hours |
|
Retry after 2 days |
|
Retry after 4 days |
|
Retry after 6 days |
|
Retry after 8 days |
|
Retry after 10 days |
|
Consumer non-reloadable prepaid card |
|
Consumer single-use virtual card number |
2.10. Response codes
RESTful notes tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP status codes.
Code | Messages | Http code | Http status |
---|---|---|---|
S0000 |
SUCCESS |
200 |
OK |
S0001 |
SUCCESS |
204 |
No Content |
S0002 |
Success transaction |
200 |
OK |
S0003 |
Transaction declined, check response code for reason |
200 |
OK |
S0004 |
PENDING |
202 |
Accepted |
S0005 |
Success reverse transaction |
200 |
OK |
S0006 |
Reverse transaction declined, check response code for reason |
200 |
OK |
S0008 |
Transaction declined. |
200 |
OK |
S0010 |
SUCCESS |
200 |
OK |
S0011 |
Refund declined |
200 |
OK |
E0111 |
Invalid format JSON |
422 |
Unprocessable Entity |
E0112 |
User not exists. |
404 |
Not Found |
E0113 |
User is blocked. |
422 |
Unprocessable Entity |
E0114 |
User is not verified. |
422 |
Unprocessable Entity |
E0115 |
Cannot unblock user. User is already blocked by Fenige. |
422 |
Unprocessable Entity |
E0122 |
Merchant not exists. |
404 |
Not Found |
E0128 |
Sub merchant does not exists. |
404 |
Not Found |
E0129 |
Sub merchant name is required for payment facilitators and marketplaces. |
422 |
Unprocessable Entity |
E0132 |
Terminal not exists. |
404 |
Not Found |
E0136 |
Merchant not exists. |
404 |
Not Found |
E0137 |
Default terminal not exist |
422 |
Unprocessable Entity |
E0150 |
Transaction rejected |
422 |
Unprocessable Entity |
E0151 |
Transaction rejected, currency not supported |
422 |
Unprocessable Entity |
E0152 |
Transaction rejected, issuer card not supported |
422 |
Unprocessable Entity |
E0153 |
Transaction declined, problem with MIP connection |
500 |
Internal Server Error |
E0154 |
Failed to fetch transaction details |
500 |
Internal Server Error |
E0155 |
Transaction not exist |
404 |
Not Found |
E0156 |
Transaction rejected, terminal not supported 3ds |
422 |
Unprocessable Entity |
E0157 |
Transaction rejected, card not supported 3ds |
422 |
Unprocessable Entity |
E0158 |
Transaction rejected, maximum transaction amount limit exceeded |
422 |
Unprocessable Entity |
E0159 |
Transaction rejected, restricted transaction amount has occurred |
422 |
Unprocessable Entity |
E01580 |
Transaction rejected. Card is expired. |
422 |
Unprocessable Entity |
E01581 |
Transaction rejected. Not found Card Authentication (3DS 2.X) |
422 |
Unprocessable Entity |
E01582 |
Transaction rejected. Card Authentication not match to transaction type (3DS 2.X) |
422 |
Unprocessable Entity |
E01583 |
Transaction rejected. Outside 3ds is required for terminal |
422 |
Unprocessable Entity |
E01584 |
Transaction rejected, 3DS 2.X flow invoked for other card number than specified in the request |
422 |
Unprocessable Entity |
E01585 |
Transaction rejected, Outside 3ds values are not valid for Card Authentication. |
422 |
Unprocessable Entity |
E01586 |
Transaction rejected, data from transaction request does not match to Card Authentication data. |
422 |
Unprocessable Entity |
E01590 |
Transaction rejected, cof card not found in db |
422 |
Unprocessable Entity |
E01591 |
Transaction rejected, initial cof transaction not approved |
422 |
Unprocessable Entity |
E01592 |
Transaction rejected, recurring card not found in db |
422 |
Unprocessable Entity |
E01593 |
Transaction rejected, initial recurring transaction not cleared |
422 |
Unprocessable Entity |
E01594 |
Transaction rejected, transactionXId parameter had registered for another transaction |
422 |
Unprocessable Entity |
E01596 |
Transaction rejected, terminal blocks transactions with card issued in given card country |
422 |
Unprocessable Entity |
E01598 |
Transaction rejected, ECI value is not available for card provider |
422 |
Unprocessable Entity |
E01599 |
Transaction declined, processing timeout |
500 |
Internal Server Error |
E01600 |
Transaction rejected, 3DS 2.X flow invoked for other card number than specified in the request |
422 |
Unprocessable Entity |
E01601 |
Transaction rejected, terminal is blocked for provider |
422 |
Unprocessable Entity |
E01602 |
Transaction rejected, geographic scope is not permitted for this transaction |
422 |
Unprocessable Entity |
E01603 |
Transaction rejected, Transactions without 3ds above 30 EUR (the blockade applies only to EU countries) |
423 |
Locked |
E01604 |
Transaction rejected, transactions 3DS 1.X not supported for given country |
422 |
Unprocessable Entity |
E01605 |
Transaction rejected, minimum transaction amount limit exceeded |
422 |
Unprocessable Entity |
E01606 |
Transaction rejected, country of residence is not permitted |
422 |
Unprocessable Entity |
E01607 |
Transaction rejected, internal server error during authorization request generation |
422 |
Unprocessable Entity |
E01608 |
Error validation |
422 |
Unprocessable Entity |
E01609 |
Calculated commission for given UUID is expired or does not exists |
422 |
Unprocessable Entity |
E01610 |
Calculated commission has other values than transaction |
422 |
Unprocessable Entity |
E01611 |
Amount is to small |
422 |
Unprocessable Entity |
E01612 |
Mastercard mac tpe excellence rule |
422 |
Unprocessable Entity |
E01613 |
Error sender country is required for merchant crypto |
422 |
Unprocessable Entity |
E01614 |
Receiver country of residence is required for merchant crypto |
422 |
Unprocessable Entity |
E01615 |
Merchant crypto outside eea uk not supported |
422 |
Unprocessable Entity |
E01616 |
Error phone already exists |
422 |
Unprocessable Entity |
E01617 |
Card with phone number already exists |
422 |
Unprocessable Entity |
E01618 |
Error not authorized |
422 |
Unprocessable Entity |
E01619 |
API token not found |
422 |
Unprocessable Entity |
E01620 |
Error 3DS failed |
422 |
Unprocessable Entity |
E01621 |
Required data not complete |
422 |
Unprocessable Entity |
E01622 |
3DS 2.X flow invoked for other merchant |
422 |
Unprocessable Entity |
E01623 |
Sender card is blocked |
422 |
Unprocessable Entity |
E01624 |
Receiver card is blocked |
422 |
Unprocessable Entity |
E01625 |
Sender user is blocked |
422 |
Unprocessable Entity |
E01626 |
Receiver user is blocked |
422 |
Unprocessable Entity |
E01627 |
Sender bin is blocked |
422 |
Unprocessable Entity |
E01628 |
Receiver bin is blocked |
422 |
Unprocessable Entity |
E01631 |
Funding bank is blocked |
422 |
Unprocessable Entity |
E01632 |
Payment bank is blocked |
422 |
Unprocessable Entity |
E01633 |
Possible soft decline alert |
422 |
Unprocessable Entity |
E01634 |
Error user verification |
422 |
Unprocessable Entity |
E01635 |
Error mail verification |
422 |
Unprocessable Entity |
E01636 |
Error merchant or card country same as receiver bank not permitted |
422 |
Unprocessable Entity |
E01637 |
Error sender country is required for account transfers |
422 |
Unprocessable Entity |
E01638 |
Error sender personalId is required for account transfers |
422 |
Unprocessable Entity |
E01639 |
Transaction rejected, terminal blocks transactions with specified country |
422 |
Unprocessable Entity |
E01640 |
Transaction rejected, terminal does not support blik |
422 |
Unprocessable Entity |
E01641 |
Error receiver bank or card country are not permitted |
422 |
Unprocessable Entity |
E01642 |
Error receiver amount is mandatory for terminal |
422 |
Unprocessable Entity |
E0160 |
Reversal of the payment is processing |
422 |
Unprocessable Entity |
E0161 |
Can’t reversal payment |
422 |
Unprocessable Entity |
E0162 |
Payment is already reversed |
422 |
Unprocessable Entity |
E0163 |
Payment is already refunded |
422 |
Unprocessable Entity |
E0164 |
Reversal rejected. Attempts to refund was made. |
422 |
Unprocessable Entity |
E0165 |
Reversal for transaction exists. |
409 |
Conflict |
E0166 |
Reversal rejected. The time for making the reversal has expired. |
422 |
Unprocessable Entity |
E0167 |
Reversal rejected. Reversal amount exceed transaction amount. |
422 |
Unprocessable Entity |
E0170 |
Clearing of the payment is processing |
422 |
Unprocessable Entity |
E0171 |
Can’t clear payment |
422 |
Unprocessable Entity |
E0172 |
Can’t clear payment, the time is over |
422 |
Unprocessable Entity |
E0173 |
Payment is automatically cleared |
422 |
Unprocessable Entity |
E0174 |
Payment is already cleared |
422 |
Unprocessable Entity |
E0175 |
Can’t clear payment, clearing amount is to low |
422 |
Unprocessable Entity |
E0176 |
Can’t clear payment, clearing amount is to high |
422 |
Unprocessable Entity |
E0180 |
Refund rejected, no MC/VISA response |
500 |
Internal Server Error |
E0181 |
Refund rejected by MC/VISA |
500 |
Internal Server Error |
E0182 |
Refund transaction amount to low |
400 |
Bad Request |
E0183 |
Refund transaction amount to high |
400 |
Bad Request |
E0184 |
Transaction is refunded |
422 |
Unprocessable Entity |
E0185 |
Transaction not cleared, can’t refund |
422 |
Unprocessable Entity |
E0186 |
Refund is already processing |
422 |
Unprocessable Entity |
E0187 |
Transaction is chargeback reported |
422 |
Unprocessable Entity |
E0188 |
Refund rejected. Merchant is not active |
500 |
Internal Server Error |
E0189 |
Refund rejected. Transaction was not approved |
422 |
Unprocessable Entity |
E00180 |
Refund rejected. The time for making the return has expired |
422 |
Unprocessable Entity |
E00181 |
Refund rejected. Refunds for Openbanking transactions should be done on the merchant’s side. |
422 |
Unprocessable Entity |
E0190 |
Failed to get currency rates |
500 |
Internal Server Error |
E0200 |
Transaction rejected, card is blocked |
422 |
Unprocessable Entity |
E0201 |
Transaction rejected, bin is blocked |
422 |
Unprocessable Entity |
E0202 |
Transaction rejected, terminal is blocked |
422 |
Unprocessable Entity |
E0203 |
Transaction rejected, token is blocked |
422 |
Unprocessable Entity |
E0204 |
Transaction rejected, user is on aml list |
422 |
Unprocessable Entity |
E0205 |
Transaction rejected, bank is blocked |
422 |
Unprocessable Entity |
E0206 |
Transaction rejected, too many reject transactions and card is blocked |
422 |
Unprocessable Entity |
E0207 |
Transaction rejected, too many attempts declined and card is blocked |
422 |
Unprocessable Entity |
E0208 |
Transaction rejected, second transaction with merchant advice code 03 or 21 within 30 days |
422 |
Unprocessable Entity |
E0209 |
Transaction rejected, sender name contains fraudulent phrase. |
422 |
Unprocessable Entity |
E0210 |
Transaction rejected, suspicious sender name. |
422 |
Unprocessable Entity |
E0211 |
Transaction rejected, card country restricted. |
422 |
Unprocessable Entity |
E0212 |
Sender card country restricted |
422 |
Unprocessable Entity |
E0213 |
Receiver card country restricted |
422 |
Unprocessable Entity |
E0300 |
Error mpi V2 - failed internal |
500 |
Internal Server Error |
E0301 |
Three DS Method Data mismatch |
422 |
Unprocessable Entity |
E0302 |
Error on parsing Three DS Method Data |
422 |
Unprocessable Entity |
E0303 |
Card number not Enrolled in 3DS v2 |
422 |
Unprocessable Entity |
E0304 |
Invalid card authentication id |
422 |
Unprocessable Entity |
E0305 |
Issuer card is not supported |
422 |
Unprocessable Entity |
E0306 |
Invalid card number |
422 |
Unprocessable Entity |
E0307 |
Card Authentication not found |
404 |
Not Found |
E0309 |
Protocol version is not supported |
422 |
Unprocessable Entity |
E0310 |
Invalid Three DS Method Data |
422 |
Unprocessable Entity |
E0311 |
3DS required |
422 |
Unprocessable Entity |
E0400 |
Failed to get currency for card |
500 |
Internal Server Error |
E0401 |
Issuer card is not supported |
422 |
Unprocessable Entity |
E05000 |
Installment Payment initial not found |
500 |
Internal Server Error |
E05001 |
Installment Payment already confirmed |
500 |
Internal Server Error |
E05002 |
Installment Payment already cancelled |
500 |
Internal Server Error |
E05003 |
Installment Payment already pay in full |
500 |
Internal Server Error |
E05004 |
Installment Payment not confirmed in required time |
500 |
Internal Server Error |
E05005 |
Installment Payment Initial was failed |
500 |
Internal Server Error |
E05006 |
Installment Payment could not find valid installment plan for requested uuid |
500 |
Internal Server Error |
E05007 |
Installment Payment Option not allowed for transaction |
500 |
Internal Server Error |
E05008 |
Installment Payment missing plan uuid |
500 |
Internal Server Error |
E05009 |
Installment Payment missing request number of installments |
500 |
Internal Server Error |
E05010 |
Installment Payment requested number of installments is outside of allowed range |
500 |
Internal Server Error |
E05011 |
Installment Payment operation not allowed, installment type allows ISSUER_FINANCED installments |
500 |
Internal Server Error |
E05012 |
Installment Payment reverse not allowed |
500 |
Internal Server Error |
E05013 |
Installment Payment refund not allowed |
500 |
Internal Server Error |
E05014 |
Installment Payment outside 3ds request is required for terminal |
500 |
Internal Server Error |
E05015 |
Installment Payment unsupported card provider VISA |
500 |
Internal Server Error |
E06003 |
Datacenter card not found |
404 |
Not Found |
E06004 |
Delete of ecommerce card failed, card not found |
422 |
Unprocessable Entity |
E06005 |
Update of ecommerce card failed, card not found |
422 |
Unprocessable Entity |
E06007 |
Exception occurred while trying to add ecommerce card |
422 |
Unprocessable Entity |
E7001 |
Request id is exploited |
400 |
Bad Request |
E7002 |
Service not available |
503 |
Service Unavailable |
E8000 |
Bad Request |
400 |
Bad Request |
E8001 |
Forbidden |
403 |
Forbidden |
E8012 |
Not found |
404 |
Not Found |
E8002 |
Unauthorized |
401 |
Unauthorized |
E8003 |
Scale of amount is different than the scale of currency |
422 |
Unprocessable Entity |
E8004 |
Some operation for this requestUuid is processing |
422 |
Unprocessable Entity |
E8009 |
Merchant RSA keys not found |
404 |
Not Found |
E8010 |
Merchant RSA key expired |
422 |
Unprocessable Entity |
E8011 |
Internal error during card decrypting |
500 |
Internal Server Error |
E9000 |
Domain error |
500 |
Internal Server Error |
E9001 |
Error acquirer connection |
503 |
Service Unavailable |
E9002 |
Error mpi connection |
503 |
Service Unavailable |
E9003 |
Error monitoring connection |
503 |
Service Unavailable |
E9010 |
Error data center connection |
503 |
Service Unavailable |
E9800 |
Error blik connection. |
503 |
Service Unavailable |
E9011 |
Error limit connection |
503 |
Service Unavailable |
E9012 |
Error mms connection |
503 |
Service Unavailable |
E10000 |
Transaction rejected, terminal daily card transaction limit exceeded |
422 |
Unprocessable Entity |
E10001 |
Transaction rejected, terminal daily transaction limit exceeded |
422 |
Unprocessable Entity |
E10002 |
Transaction rejected, terminal monthly transaction limit exceeded |
422 |
Unprocessable Entity |
E10003 |
Transaction rejected, limit exceeded |
422 |
Unprocessable Entity |
E10004 |
Transaction rejected, contractor daily transaction limit exceeded for Mastercard provider |
422 |
Unprocessable Entity |
E10005 |
Transaction rejected, contractor monthly transaction limit exceeded for Mastercard provider |
422 |
Unprocessable Entity |
E10006 |
Transaction rejected, contractor daily transaction limit exceeded for Visa provider |
422 |
Unprocessable Entity |
E10007 |
Transaction rejected, contractor monthly transaction limit exceeded for Visa provider |
422 |
Unprocessable Entity |
E10008 |
Transaction rejected, contractor daily transaction limit exceeded |
422 |
Unprocessable Entity |
E10009 |
Transaction rejected, contractor monthly transaction limit exceeded |
422 |
Unprocessable Entity |
E10010 |
Error single transaction limit |
422 |
Unprocessable Entity |
E10011 |
Error daily transaction limit |
422 |
Unprocessable Entity |
E10012 |
Error weekly transaction limit |
422 |
Unprocessable Entity |
E10013 |
Error daily count transaction limit |
422 |
Unprocessable Entity |
E10014 |
Error monthly transaction limit |
422 |
Unprocessable Entity |
E10015 |
Error monthly count transaction limit |
422 |
Unprocessable Entity |
E10016 |
Error daily cumulative limit |
422 |
Unprocessable Entity |
E10017 |
Error monthly cumulative limit |
422 |
Unprocessable Entity |
E10018 |
Error merchant mastercard daily cumulative limit |
422 |
Unprocessable Entity |
E10019 |
Error merchant mastercard monthly cumulative limit |
422 |
Unprocessable Entity |
E10020 |
Error merchant visa daily cumulative limit |
422 |
Unprocessable Entity |
E10021 |
Error merchant visa monthly cumulative limit |
422 |
Unprocessable Entity |
E10022 |
Error merchant daily cumulative limit |
422 |
Unprocessable Entity |
E10023 |
Error merchant monthly cumulative limit |
422 |
Unprocessable Entity |
E11000 |
Time for processing exceeded. |
500 |
Internal Server Error |
E12000 |
Error occurred during decrypting the message |
422 |
Unprocessable Entity |
E13000 |
Transaction rejected, merchant risk score exceeded |
422 |
Unprocessable Entity |
E13001 |
Transaction rejected, merchant risk status REJECTED |
422 |
Unprocessable Entity |
E13002 |
No requests available for contractor |
422 |
Unprocessable Entity |
E13003 |
Transaction rejected, Fenige risk score exceeded |
422 |
Unprocessable Entity |
E13004 |
Transaction rejected, Fenige risk status REJECTED |
422 |
Unprocessable Entity |
E14000 |
Waiting for receiver timeout |
422 |
Unprocessable Entity |
E14001 |
Error delayed payment not found |
422 |
Unprocessable Entity |
E14002 |
Error delayed payment attempts exceeded |
422 |
Unprocessable Entity |
E14003 |
Error delayed payment receiver not present |
422 |
Unprocessable Entity |
E14004 |
Error delayed payment receiver not specified |
422 |
Unprocessable Entity |
E14005 |
Error delayed payment unexpected exception occurred |
422 |
Unprocessable Entity |
E14006 |
Error delayed payment trx not registered for delayed processing |
422 |
Unprocessable Entity |
E14007 |
Error delayed payment datacenter receiver not found |
422 |
Unprocessable Entity |
E14008 |
Error delayed payment datacenter card not found |
422 |
Unprocessable Entity |
E14009 |
Error delayed payment datacenter adding receiver failed |
422 |
Unprocessable Entity |
E14010 |
Error delayed payment datacenter adding card failed |
422 |
Unprocessable Entity |
E15000 |
Error card unprovisioned |
422 |
Unprocessable Entity |
E15001 |
Error card not eligible |
422 |
Unprocessable Entity |
E15002 |
Error card not allowed |
422 |
Unprocessable Entity |
E15003 |
Error card declined |
422 |
Unprocessable Entity |
E15004 |
Error card service unavailable |
500 |
Internal Server Error |
E15005 |
Error card system error |
500 |
Internal Server Error |
E15006 |
Error token not found |
404 |
Not Found |
E16000 |
Error cannot process account transfer to specified country code of bank |
422 |
Unprocessable Entity |
E16001 |
Error cannot process account transfer because of internal VISA API error |
500 |
Internal Server Error |
E16002 |
Transaction rejected, account is blocked |
422 |
Unprocessable Entity |
E16003 |
Error cannot get specific Route for provided country and currency pair |
400 |
Bad Request |
E17000 |
Transaction rejected, unsuccessful transactions score exceeded |
422 |
Unprocessable Entity |
3. Send money
See a diagrams bellow and notice that CARD-CARD and CASH-CARD flow are not the same.
Mastercard and Visa requires for intra-European Economic Area (EEA), plus United Kingdom, for which EMV 3DS must be used subsequent to a valid authorization soft decline DE39=65 (Mastercard)/1A(Visa).To perform a transaction for which the card has previously received CODE_65-Mastercard, CODE_1A-VISA, the transaction must be processed with full EMV 3DS (3DS 2.x) and the authentication status must be 'Y'. Correct flow:
|
In the STAGING environment you can use the test cards available here 2.7. Mock cards for test. |
Is apply for: PLAIN-PLAIN, DATACORE-PLAIN, DATACORE-DATACORE, DATACORE-PHONE
Is apply for: CASH-PLAIN, CASH-PHONE
Is apply for: BLIK-PLAIN
Is apply for: CASH-ACCOUNT
Is apply for: PLAIN-ACCOUNT
3.1. Card to Card
Innovative technology that allows to send money between cards instantly anywhere in the world. No SWIFT or bank account number needed! Money transfer from card to account number is possible from Q1 2024
This method is used to MoneySend transaction (funding and payment). To enable users to make transfers in any currency, Fenige introduces the send-money method for multicurrency.
1 - User by selecting type = SENDER defines amount of funding in given currency. This amount is collected from sender card in selected currency. 2 - User by selecting type = RECEIVER defines amount of payment in given currency. This amount is transferred to receiver card in selected currency. In case there's need revaluation from one currency to another, system uses lowerRate for situation 1 and higherRate for situation 2. For more details about specific rates please refer to Currency Rate method.
*API-TOKEN is required for methods: DATACORE-PLAIN, PLAIN-DATACORE, DATACORE-DATACORE, DATACORE-PHONE
The API-TOKEN is refreshed each time it is used in the header. The API-TOKEN is refreshed for 30 minutes. |
Please notice that you can choose language of email confirmation of this transaction. It is able by attach proper header to request. |
The success of the multicurrency send-money transaction depends primarily on the correctness of the merchant's currency configuration which is done by the admin. To make transactions in a currency other than the currency of the card, contact the admin.
In order to provide users with the ability to safely retry transaction (for example to request for an undelivered response), the v2 of API supports idempotent send money multi-currency operation.
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
When performing authorization, remember that there are currencies with different number of decimal places. For example: VND has no pennies and KWD has three decimal places. Please take this into account in the Amout field. For more information on other currencies, see ISO 4217. |
Worth to note are the new CARD_ACCOUNT and CASH_ACCOUNT transaction models. Using this transaction model, we can quickly make a transfer from a card to an account number or from a Fenige cash deposit to an account number. Transactions in this model are very simple and differ slightly from normal card-to-card transactions. Only the receiver object is changed. An important piece of information to ensure high transaction compliance is the ability to execute the /client/send-money/validate method, which will make sure that your request body is correct and can be processed correctly in a real transaction with the /api/v2/client/send-money method. Your request body will be validate in Visa/Mastercard side so we can be sure that information you gathered is correct. Look at the PLAIN-ACCOUNT tab |
3.1.1. Request
Example HTTP Request
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 946
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "e3a6f494-9b24-44c5-8473-e3ba5e50d5f6",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "PLAIN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"expirationDate" : "03/26",
"personalId" : "AGC688910",
"currency" : "PLN"
},
"receiver" : {
"type" : "PLAIN",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender CASH Sender DATACORE Sender BLIK |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE Receiver ACCOUNT |
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1085
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "6e28d699-0d10-4563-ab3e-2f8599a1517d",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "TOKEN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"tokenType" : "APPLE_PAY",
"expirationDate" : "03/26",
"tokenPan" : "5117964247989169",
"paymentData" : {
"eciIndicator" : "02",
"onlinePaymentCryptogram" : "/0OL1zEABL+gk70RYJ8lMAABAAA="
},
"country" : "PL",
"personalId" : "AGC688910"
},
"receiver" : {
"type" : "TOKEN",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"currency" : "PLN",
"tokenPan" : "5117964247989169",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender CASH Sender DATACORE Sender BLIK |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE Receiver ACCOUNT |
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 994
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "8ac1d1b5-392c-4011-b0ee-6777e5a7c979",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "TOKEN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"tokenType" : "GOOGLE_PAY",
"authMethod" : "PAN_ONLY",
"expirationDate" : "03/26",
"tokenPan" : "5117964247989169",
"country" : "PL",
"personalId" : "AGC688910"
},
"receiver" : {
"type" : "TOKEN",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"currency" : "PLN",
"tokenPan" : "5117964247989169",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender CASH Sender DATACORE Sender BLIK |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE Receiver ACCOUNT |
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 972
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "0ef3b01d-c7d3-4ac2-bd9d-e6655f20691c",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "PLAIN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"expirationDate" : "03/26",
"personalId" : "AGC688910",
"currency" : "PLN"
},
"receiver" : {
"type" : "DATACORE",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender CASH Sender DATACORE Sender BLIK |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE Receiver ACCOUNT |
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 867
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "581a6d4a-4a31-4bd2-8b07-04bf7d318a0b",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "DATACORE",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN"
},
"receiver" : {
"type" : "PLAIN",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender CASH Sender DATACORE Sender BLIK |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE Receiver ACCOUNT |
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 893
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "e450bf15-d8fd-4734-8eb2-f3915565f9d8",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "DATACORE",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN"
},
"receiver" : {
"type" : "DATACORE",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender CASH Sender DATACORE Sender BLIK |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE Receiver ACCOUNT |
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 863
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "ccf88069-256b-4d5b-b21e-c369624b2862",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "DATACORE",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN"
},
"receiver" : {
"type" : "PHONE",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"phoneNumber" : "48123777619",
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender CASH Sender DATACORE Sender BLIK |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE Receiver ACCOUNT |
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1249
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "8c5d4d5c-0335-456c-8f82-c13ae83f4c30",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "PLAIN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"expirationDate" : "03/26",
"personalId" : "AGC688910",
"country" : "PL",
"currency" : "PLN"
},
"receiver" : {
"type" : "ACCOUNT",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"currency" : "PLN",
"bank" : {
"bankCode" : "800554",
"bankCodeType" : "SORT_CODE",
"bankName" : "Barclays",
"accountName" : "Money Market",
"accountNumber" : "BE71096123456769",
"accountNumberType" : "IBAN",
"countryCode" : "BE",
"currencyCode" : "EUR"
},
"accountType" : "I",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender CASH Sender DATACORE Sender BLIK |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE Receiver ACCOUNT |
POST /client/send-money/validate HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 957
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"type" : "RECEIVER",
"requestId" : "32a99272-6e82-47ea-b034-c571dcc5ac45",
"transactionId" : "TRX220132AM",
"cvc2": "123",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"sender" : {
"type" : "PLAIN",
"firstName": "Rob",
"lastName": "Meksuła",
"street": "Wring",
"houseNumber": "17A",
"city": "Lublin",
"postalCode": "20-400",
"flatNumber": "2",
"email": "rob.wring@fenige.pl",
"birthDate": "1993-01-16",
"cardNumber": "5117964247989169",
"expirationDate": "03/26",
"personalId": "AGC688910",
"currency": "PLN",
"country": "PL"
},
"receiver" : {
"type" : "ACCOUNT",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2023-12-13",
"currency" : "PLN",
"bank" : {
"bankCode" : "800554",
"bankCodeType" : "SORT_CODE",
"bankName" : "Barclays",
"accountName" : "Money Market",
"accountNumber" : "BE71096123456769",
"accountNumberType" : "IBAN",
"countryCode" : "BE",
"currencyCode" : "EUR"
},
"accountType" : "I",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender CASH Sender DATACORE Sender BLIK |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE Receiver ACCOUNT |
3.1.2. Response
Response status
Status | Description |
---|---|
|
Returned list of field name which has validation errors. |
|
- Returned when the transaction with the provided requestId has been registered in the system, but has not yet been completed. The user can retry in a few seconds to get the transaction result. Response body: Empty |
|
Returned e.g. when a different transaction with the provided requestId has already been registered in the system. |
|
Returned when API-TOKEN was broken. |
Example HTTP Response
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 56
{
"orderId" : "f78667d8-50ba-4e97-a9a8-c11ff9afa121"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Unique transaction identifier |
HTTP/1.1 400 Bad Request
Content-Type: application/json
Content-Length: 104
{
"error" : {
"message" : "Another transaction with the same id has already been processed."
}
}
HTTP/1.1 200 OK
Content-Type: application/json;charset=ISO-8859-1
{
"status": "ERROR_VALIDATION",
"error": {
"message": "Some information is missing or incorrect.",
"errors": [{
"field": "requestId",
"message": [
"may not be null"
]
},
{
"field": "cvc2",
"message": [
"may not be null",
"length must be 3"
]
},
{
"field": "type",
"message": [
"may not be null"
]
},
{
"field": "amount",
"message": [
"may not be null"
]
},
{
"field": "sender",
"message": [
"may not be null"
]
},
{
"field": "sender.cardNumber",
"message": [
"may not be null",
"may not be empty",
"card number length must be 16"
]
},
{
"field": "sender.expirationDate",
"message": [
"invalid card expiration date",
"may not be null",
"may not be empty"
]
},
{
"field": "sender.city",
"message": [
"may not be empty",
"may not be null",
"length must be between 1 and 25"
]
},
{
"field": "sender.street",
"message": [
"may not be null",
"may not be empty",
"length must be between 1 and 50"
]
},
{
"field": "sender.postalCode",
"message": [
"may not be empty",
"may not be null",
"length must be between 1 and 10"
]
},
{
"field": "sender.flatNumber",
"message": [
"must be null",
"length must be between 0 and 5"
]
},
{
"field": "sender.lastName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "sender.houseNumber",
"message": [
"may not be empty",
"may not be null",
"length must be between 1 and 10",
"must match the expression: ^[1-9][0-9]{0,4}(?:[A-z]?[0-9]{0,4})?((?:[-/ ][1-9]?[A-z]?[0-9]{0,4})*[A-z]?)?$"
]
},
{
"field": "sender.firstName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "sender.email",
"message": [
"may not be empty",
"may not be null",
"not a well-formed email address",
"lenght must be beetween 1 and 128"
]
},
{
"field": "receiver",
"message": [
"may not be null"
]
},
{
"field": "receiver.firstName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "receiver.lastName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "receiver.currency",
"message": [
"may not be null"
]
},
{
"field": "receiver.cardNumber",
"message": [
"may not be null",
"may not be empty",
"card number length must be 16"
]
},
{
"field": "sender",
"message": [
"province is mandatory only if country code is US or CA"
]
},
{
"field": "sender.province",
"message": [
"is not correct province code for country code US",
"may not be null"
]
},
{
"field": "sender.province",
"message": [
"may not be null",
"is not correct province code for country code CA"
]
},
{
"field": "sender.province",
"message": [
"must match ^[A-Z]{2}$",
"is not correct province code for country code US"
]
},
{
"field": "sender.currency",
"message": [
"Currency is not supported"
]
},
{
"field": "receiver.currency",
"message": [
"Currency is not supported"
]
}
]
}
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"status": "ERROR_API_TOKEN_NOT_FOUND",
"error": {
"message": "API-TOKEN header not found in request with DATACORE/PHONE model in sender or receiver."
}
}
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
"timestamp": "2021-12-22T12:39:53.168+0000",
"status": 401,
"error": "Unauthorized",
"message": "Username or password is not correct",
"path": "/api/v2/client/send-money"
}
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
"timestamp": "2021-12-22T12:39:53.168+0000",
"status": 401,
"error": "Unauthorized",
"message": "ERROR_USER_NOTFOUND",
"path": "/api/v2/client/send-money"
}
Path | Description |
---|---|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 403 Forbidden
Content-Type: application/json
{
"timestamp": 1610464313387,
"status": 403,
"error": "Forbidden",
"message": "No message available",
"path": "/client/send-money-3ds"
}
3.1.3. Check status
The method allows obtaining a status of multi-currency transaction specified by order-id. Parameter order-id was returned in the previous step (Send money multicurrency).
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
Parameter | Description |
---|---|
|
Unique transaction identifier. |
GET /client/send-money/00549d98-08cb-45d2-8673-4dcafa81f498 HTTP/1.1
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned if the transaction completes successfully. |
|
Returned when transaction was registered for processing. Check status in a while. |
|
Returned when user provides wrong order-id or transaction was failed or was Declined. |
Example HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1123
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : true,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "511796******9169",
"bankName" : "Alior Bank SA"
}
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 203 Non-Authoritative Information
After you get 203 you need to check status in a while because we processing this transaction and if you don’t get a response (200 - succeeded or 500 - declined) within 60 seconds then please contact us. |
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain;charset=ISO-8859-1
PAYMENT_TRANSACTION_DECLINED:CODE_05
After receiving these statuses, the transaction was rejected |
Error statuses
Name |
Description |
|
REJECTED - Monitoring rule which is designed to prevent the acceptance of names or surnames that do not contain vowels or consonants |
|
CODE_XX - is MasterCard response code (ISO 8583) |
|
This card is not supported |
|
Card is blocked for 1 hour in Fenige |
|
User is blocked in Fenige |
|
Bin is blocked for 1 hour in Fenige |
|
Funding bank is blocked in Fenige |
|
Payment bank is blocked in Fenige |
|
Funding transaction was declined and payment not send |
|
Payment transaction was declined and funding was reversed |
|
A connection error occurred to Acquirer service |
|
User was found on the stop list |
|
Acceptance network is unavailable |
|
No currently effective rates found in the database |
|
Currency is not supported |
|
Currency is not supported by Merchant |
|
Transaction limit for single transaction exceeded |
|
Daily transaction limit for amount per card exceeded |
|
Daily transaction limit for count per card exceeded |
|
Weekly transaction limit for amount per card exceeded |
|
Monthly transaction limit for amount per card exceeded |
|
Monthly transaction limit for count per card exceeded |
|
Daily cumulative limit per card was exceeded |
|
Monthly cumulative limit per card was exceeded |
|
Daily cumulative limit per merchant transactions using mastercard cards was exceeded |
|
Monthly cumulative limit per merchant transactions using mastercard cards was exceeded |
|
Daily cumulative limit per merchant transactions using visa cards was exceeded |
|
Monthly cumulative limit per merchant transactions using visa cards was exceeded |
|
Daily cumulative limit per merchant transactions using mastercard and visa cards was exceeded |
|
Monthly cumulative limit per merchant transactions using mastercard and visa cards was exceeded |
|
Sender’s card is blocked |
|
Receiver’s card is blocked |
|
User acting as sender is blocked |
|
User acting as receiver is blocked |
|
BIN of sender’s card is blocked |
|
BIN of receiver’s card is blocked |
|
Amount is higher than acceptable limit |
|
Couldn’t established connection to Monitoring service |
|
Some unrecognized error occurred |
|
The transaction user’s personal data verified as incorrect on the verification service. Transaction rejected. |
|
Funding transaction declined - mip response timeout |
|
Payment transaction declined - mip response timeout |
|
Funding process failed and it is need to manual verification of transaction |
|
Payment process failed and it is need to manual verification of transaction |
|
Funding transaction declined - mip_proxy response timeout |
|
Payment transaction declined - mip_proxy response timeout |
|
Amount exceeds current merchant deposit limit |
|
Error transaction not exists |
|
Card was not found |
|
Problem with DC |
|
ERROR_SOMETHING_WRONG returned when the check status method is executed means that the details for the indicated transaction could not be retrieved correctly due to an unexpected error. This does not mean that the transaction was rejected by our system. In case of receiving ERROR_SOMETHING_WRONG status, please do not hesitate to notify our support team in order to determine the correctness of the transaction execution and quickly correct the method error. |
|
This error may occur if card’s country is other than user’s country for USA or CAN transaction for PLAIN model |
|
This error may occur if card’s country is other than user’s country for USA or CAN transaction |
|
This error may occur when system could not get card country code. Most often, the error is caused by a missing card in the parameters received from the card provider. |
|
Province code is not valid for USA or CAN transactions. Please update user profile |
|
Some validation error occurred |
|
This error may occur when merchant tries to make transaction in other model than assigned primarily. For example, if merchant’s model is set as CARD-CARD and then merchant will try to make transaction in CASH-CARD model, will receive error as bellow. |
|
Card expired |
|
The amount sent is too small. Enter a larger amount. |
|
The amount sent is too high. Enter a lower amount. |
|
Restricted funding card country was used. + This error may occur when a merchant uses a sender card issued in a country that is on the list of countries High Risk or country not allowed to perform transactions in Fenige API. Please contact support. |
|
Restricted payment card country was used. + This error may occur when a merchant uses a sender card issued in a country that is on the list of countries High Risk or country not allowed to perform transactions in Fenige API. Please contact support. |
|
Merchant not support the given card provider, please contact support to check merchant configuration |
|
Merchant crypto is not supported outside EEA+UK |
|
System does not allow the execution of transaction with the receiver card country. |
|
System does not allow the execution of transaction with the sender card country. |
|
Geographic scope is not permitted for this transaction |
|
Processing time of transaction was too long, transaction is declined. |
|
Transaction rejected, second transaction with merchant advice code 03 or 21 within 30 days. |
|
Transaction rejected, sender or receiver name contains fraudulent phrase. |
|
Transaction rejected, suspicious sender or receiver name. |
|
Transaction rejected, card country is not supported for merchants crypto. |
|
Transaction card-account rejected, country code in sender object is required for this transactional model |
|
Transaction card-account or cash account rejected, personalId field in sender object is required for this transactional model |
|
Transaction rejected, country of merchant cannot be the same as receiver’s bank code |
3.1.4. Check detailed status
The method allows obtaining a detailed status of multi-currency transaction specified by order-id. Parameter order-id was returned in the previous step (Send money multicurrency).
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
Parameter | Description |
---|---|
|
Unique transaction identifier. |
GET /client/send-money/details/00549d98-08cb-45d2-8673-4dcafa81f498 HTTP/1.1
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned if the transaction completes successfully. |
|
Returned when transaction was registered for processing. Check status in a while. |
|
Returned when a transaction related to the given orderId doesn’t exist. |
|
Returned when user provides wrong order-id or transaction was failed or was Declined. |
|
Returned when an internal error occur. |
Example HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1159
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : true,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "511796******9169",
"bankName" : "Alior Bank SA"
},
"transactionStatus" : "APPROVED"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 203 Non-Authoritative Information
After you get 203 you need to check status in a while because we processing this transaction and if you don’t get a response (200 - succeeded or 500 - declined) within 60 seconds then please contact us. |
HTTP/1.1 404 Not Found
Content-Type: application/json
Content-Length: 51
{
"errorStatus" : "ERROR_TRANSACTION_NOT_FOUND"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Additional data of the error occurred during a processing of the request |
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
Content-Length: 1287
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : true,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "511796******9169",
"bankName" : "Alior Bank SA"
},
"transactionStatus" : "DECLINED",
"cardBlockType" : "TEMP",
"cardBlockedUntil" : "2024-09-06T10:58:11.540",
"errorStatus" : "ERROR_SENDER_CARD_IS_BLOCKED"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
|
|
Additional data of the error occurred during a processing of the request |
|
|
Card lock type |
|
|
Card’s lock end date |
|
|
Information about the reasons for declined transactions and actions that merchants can take. Occurs only for mastercard and for rejected transactions if Mastercard returns this information |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
Content-Length: 1358
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : false,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "CASH"
},
"transactionStatus" : "DECLINED",
"merchantSettlementCurrency" : "USD",
"fenigeCommissionInMerchantSettlementCurrency" : 0.05,
"transactionAmountInMerchantSettlementCurrency" : 2.68,
"cardBlockType" : "TEMP",
"cardBlockedUntil" : "2024-09-06T10:58:10.900",
"errorStatus" : "ERROR_SENDER_CARD_IS_BLOCKED"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Merchant settlement currency |
|
|
Commission Fenige in merchant settlement currency |
|
|
Transaction amount in merchant settlement currency |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
|
|
The code of the error occurred during a processing of the request |
|
|
Card lock type |
|
|
Card’s lock end date |
|
|
Information about the reasons for declined transactions and actions that merchants can take. Occurs only for mastercard and for declined transactions if Mastercard returns this information |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Content-Length: 69
{
"errorStatus" : "ERROR_SOMETHING_WRONG - Something went wrong."
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Additional data of the error occurred during a processing of the request |
3.1.5. Transaction history
Method return page with list of user transactions. Transactions are filtered by clientId provided in GET parameter.
User can send additional optional parameters (page, size) to obtain given page with defined size.
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
GET /client/0/transactions?fromDate=2018-03-06&toDate=2018-03-08&page=0&size=100 HTTP/1.1
Content-Type: application/json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned list of transactions history. |
|
Returning the list failed. |
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1118
{
"content" : [ {
"correlationId" : "9f25be20-4827-4a50-b5bc-1d144ae316e0",
"createdDate" : "2018-03-15T10:24:52.149Z",
"amount" : 15000,
"amountInUsDollar" : 4024,
"textAmount" : "150.00 PLN",
"currency" : "PLN",
"cardId" : 3574,
"receiverFirstName" : "Patrick",
"receiverLastName" : "Evans",
"receiverHiddenCardNumber" : "511123******1234",
"receiverProvider" : "MASTERCARD",
"receiverBankName" : "Bank Polska Kasa Opieki Spółka Akcyjna",
"receiverEmail" : "receiver@fenige.pl",
"receiverPhone" : "600300200",
"senderFirstName" : "Rob",
"senderLastName" : "Wring",
"senderHiddenCardNumber" : "522212******4321",
"senderProvider" : "MASTERCARD",
"senderBankName" : "Alior Bank SA",
"status" : "approved",
"transactionDirection" : "OUTGOING",
"3DS" : false
} ],
"pageable" : "INSTANCE",
"last" : true,
"totalElements" : 1,
"totalPages" : 1,
"first" : true,
"size" : 1,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 1,
"empty" : false
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Unique UUID describing single transaction in system |
|
|
Date of transaction processing |
|
|
Transaction amount in pennies |
|
|
Transaction amount in USD currency in pennies. |
|
|
Transaction amount with currency |
|
|
Transaction currency |
|
|
Datacore card id used in transaction (sender card) |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Transaction receiver first name |
|
|
Transaction receiver last name |
|
|
Transaction receiver hidden card number |
|
|
VISA or MASTERCARD or MAESTRO |
|
|
Transaction receiver card bank name. |
|
|
Transaction sender first name. |
|
|
Transaction sender last name. |
|
|
Transaction sender hidden card numbe. |
|
|
VISA or MASTERCARD or MAESTRO |
|
|
Transaction sender card bank name. |
|
|
Transaction receiver phone number |
|
|
Transaction receiver email |
|
|
Status of the transaction (approved, reversed) |
|
|
Direction of the transaction (INCOMING, OUTGOING) |
|
|
Information about the reasons for declined transactions and actions that merchants can take. Occurs only for mastercard and for rejected transactions if Mastercard returns this information |
|
|
Describes whether the page is last (true ot false) |
|
|
Total number of all pages |
|
|
Total number of all transactions |
|
|
Number of transactions on page |
|
|
Describes whether the page is first (true ot false) |
|
|
Details of sort |
|
|
Max number of transactions on page |
|
|
Page number |
|
|
Page number |
HTTP/1.1 404 Not Found
3.1.6. Transaction details
Method return transaction details for single transaction given in method parameter orderId
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
GET /client/transactions/fae3ee90-6f88-4aa6-aff5-7d9f6a5645d3 HTTP/1.1
Content-Type: application/json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned details of transaction. |
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 329
{
"fundingAmount" : "2.00 PLN",
"chargedAmount" : "2.04 PLN",
"commission" : "0.04 PLN",
"paymentAmount" : "0.54 USD",
"exchange" : "1.00 PLN = 0.27 USD",
"transactionTime" : "2018-07-26T17:01:56.364Z",
"cardIssuer" : "MASTERCARD",
"amountInUsDollar" : 1,
"status" : "approved",
"sendMoneyType" : "RECEIVER"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Funding amount in transaction currency |
|
|
Charged amount in transaction currency |
|
|
Transaction commission with currency |
|
|
Payment amount in receiver currency |
|
|
Revaluation amount from sender to receiver currency |
|
|
Date of the transaction |
|
|
Card issuer MASTERCARD/VISA |
|
|
Transaction amount in USD currency in pennies |
|
|
Status of transaction approved/reject/decline |
|
|
Specifies the direction of the transaction currency. SENDER - the currency of the sender, RECEIVER - the currency of the receiver. |
3.2. Card to Card 3D Secure
Innovative technology that allows to send money between cards instantly anywhere in the world. No SWIFT or bank account number needed! Money transfer from card to account number is possible from Q1 2024
This method is used to MoneySend transaction (funding and payment). To enable users to make transfers in any currency, Fenige introduces the send-money method for multicurrency. The method allows executing transactions with additional protection i.e. verification by the 3DS (3D-Secure) in 2.X standard.
1 - User by selecting type = SENDER defines amount of funding in given currency. This amount is collected from sender card in selected currency. 2 - User by selecting type = RECEIVER defines amount of payment in given currency. This amount is transferred to receiver card in selected currency. In case there's need revaluation from one currency to another, system uses lowerRate for situation 1 and higherRate for situation 2. For more details about specific rates please refer to Currency Rate method.
*API-TOKEN is required for methods: DATACORE-PLAIN, PLAIN-DATACORE, DATACORE-DATACORE, DATACORE-CASH, DATACORE-PHONE
The API-TOKEN is refreshed each time it is used in the header. The API-TOKEN is refreshed for 30 minutes. |
3DS 2.X transaction requires additional parameters, but the flow of transaction is the same as transaction without 3DS. |
Please notice that you can choose language of email confirmation of this transaction. It is able by attach proper header to request. |
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
When performing authorization, remember that there are currencies with different number of decimal places. For example: VND has no pennies and KWD has three decimal places. Please take this into account in the Amout field. For more information on other currencies, see ISO 4217. |
Worth to note are the new CARD_ACCOUNT and CASH_ACCOUNT transaction models. Using this transaction model, we can quickly make a transfer from a card to an account number or from a Fenige cash deposit to an account number. Transactions in this model are very simple and differ slightly from normal card-to-card transactions. Only the receiver object is changed. An important piece of information to ensure high transaction compliance is the ability to execute the /client/send-money/validate method, which will make sure that your request body is correct and can be processed correctly in a real transaction with the /api/v2/client/send-money method. Your request body will be validate in Visa/Mastercard side so we can be sure that information you gathered is correct. Look at the PLAIN-ACCOUNT tab |
3.2.1. Request
Example HTTP Request
POST /api/v2/client/send-money-3ds HTTP/1.1
Content-Type: application/vnd.sendmoney3ds.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1094
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"authenticationStatus" : "Y",
"eci" : "01",
"transactionXId" : "26735b7c-91dd-4b99-98de-15b2e4aac5d0"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "6b7c0eac-06dd-4bd4-b6a2-9def68a2943b",
"sender" : {
"type" : "PLAIN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"expirationDate" : "03/26",
"personalId" : "AGC688910",
"currency" : "PLN"
},
"receiver" : {
"type" : "PLAIN",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender DATACORE |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
POST /api/v2/client/send-money-3ds HTTP/1.1
Content-Type: application/vnd.sendmoney3ds.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1233
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"authenticationStatus" : "Y",
"eci" : "01",
"transactionXId" : "2be496ad-b74c-486a-9f2a-d6130320ba6c"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "e26e9fbe-775c-4bef-8eae-8514fb8a4a3a",
"sender" : {
"type" : "TOKEN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"tokenType" : "APPLE_PAY",
"expirationDate" : "03/26",
"tokenPan" : "5117964247989169",
"paymentData" : {
"eciIndicator" : "02",
"onlinePaymentCryptogram" : "/0OL1zEABL+gk70RYJ8lMAABAAA="
},
"country" : "PL",
"personalId" : "AGC688910"
},
"receiver" : {
"type" : "TOKEN",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"currency" : "PLN",
"tokenPan" : "5117964247989169",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender DATACORE |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
POST /api/v2/client/send-money-3ds HTTP/1.1
Content-Type: application/vnd.sendmoney3ds.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1142
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"authenticationStatus" : "Y",
"eci" : "01",
"transactionXId" : "46ec5ac9-aa02-4ef6-bcb1-87579378a867"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "f1775b1c-504c-4e24-bd59-d8254ba8bab6",
"sender" : {
"type" : "TOKEN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"tokenType" : "GOOGLE_PAY",
"authMethod" : "PAN_ONLY",
"expirationDate" : "03/26",
"tokenPan" : "5117964247989169",
"country" : "PL",
"personalId" : "AGC688910"
},
"receiver" : {
"type" : "TOKEN",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"currency" : "PLN",
"tokenPan" : "5117964247989169",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender DATACORE |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
POST /api/v2/client/send-money-3ds HTTP/1.1
Content-Type: application/vnd.sendmoney3ds.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 1120
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"authenticationStatus" : "Y",
"eci" : "01",
"transactionXId" : "14a1deeb-0d86-4b4b-9c0e-215068bdf7ca"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "ad3db5ab-a482-40fa-a252-a66dff6e3a29",
"sender" : {
"type" : "PLAIN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"expirationDate" : "03/26",
"personalId" : "AGC688910",
"currency" : "PLN"
},
"receiver" : {
"type" : "DATACORE",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender DATACORE |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
POST /api/v2/client/send-money-3ds HTTP/1.1
Content-Type: application/vnd.sendmoney3ds.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 1015
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"authenticationStatus" : "Y",
"eci" : "01",
"transactionXId" : "c69d93c7-dde1-4c53-b6a5-0c9e8f6a4c3c"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "0f0a2ea2-7b62-401f-af1e-cee151ba86f8",
"sender" : {
"type" : "DATACORE",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN"
},
"receiver" : {
"type" : "PLAIN",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender DATACORE |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
POST /api/v2/client/send-money-3ds HTTP/1.1
Content-Type: application/vnd.sendmoney3ds.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 1041
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"authenticationStatus" : "Y",
"eci" : "01",
"transactionXId" : "40f0cf8d-8857-4199-b2ed-7b6a07335415"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "c4aad645-0527-4ace-b58c-5df0e0cec542",
"sender" : {
"type" : "DATACORE",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN"
},
"receiver" : {
"type" : "DATACORE",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender DATACORE |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
POST /api/v2/client/send-money-3ds HTTP/1.1
Content-Type: application/vnd.sendmoney3ds.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 1011
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"authenticationStatus" : "Y",
"eci" : "01",
"transactionXId" : "9519b5c2-d343-4a11-8d40-e95fadd46ea8"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "eb2fcdca-c8b2-45a1-b496-949569515189",
"sender" : {
"type" : "DATACORE",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN"
},
"receiver" : {
"type" : "PHONE",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"phoneNumber" : "48123777619",
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender DATACORE |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
POST /api/v2/client/send-money-3ds HTTP/1.1
Content-Type: application/vnd.sendmoney3ds.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1161
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"authenticationStatus" : "Y",
"eci" : "01",
"transactionXId" : "ea0654cb-8616-435d-b287-50f02b64dd7d"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "a713a867-a077-4796-a0c2-41a7d0eabc82",
"sender" : {
"type" : "PLAIN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"expirationDate" : "03/26",
"personalId" : "AGC688910",
"currency" : "PLN"
},
"receiver" : {
"type" : "CASH",
"firstName" : "Rob",
"lastName" : "Wring",
"street" : "Lubelska",
"houseNumber" : "17A",
"city" : "Lubartów",
"postalCode" : "21-100",
"flatNumber" : "2",
"email" : "receiverEmail@fenige.pl",
"country" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender DATACORE |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
POST /api/v2/client/send-money-3ds HTTP/1.1
Content-Type: application/vnd.sendmoney3ds.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 1082
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"authenticationStatus" : "Y",
"eci" : "01",
"transactionXId" : "1fa78712-9e29-40ea-96fd-49d56a666856"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "8297c7c0-1efb-4715-8c24-25806c315e33",
"sender" : {
"type" : "DATACORE",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN"
},
"receiver" : {
"type" : "CASH",
"firstName" : "Rob",
"lastName" : "Wring",
"street" : "Lubelska",
"houseNumber" : "17A",
"city" : "Lubartów",
"postalCode" : "21-100",
"flatNumber" : "2",
"email" : "receiverEmail@fenige.pl",
"country" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender DATACORE |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
POST /api/v2/client/send-money-3ds HTTP/1.1
Content-Type: application/vnd.sendmoney3ds.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1397
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"authenticationStatus" : "Y",
"eci" : "01",
"transactionXId" : "39fae84f-0609-4a65-a12e-862a7beaa7e0"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "202b32d4-3d55-4570-9f98-c9b6c23b10df",
"sender" : {
"type" : "PLAIN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"expirationDate" : "03/26",
"personalId" : "AGC688910",
"country" : "PL",
"currency" : "PLN"
},
"receiver" : {
"type" : "ACCOUNT",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"currency" : "PLN",
"bank" : {
"bankCode" : "800554",
"bankCodeType" : "SORT_CODE",
"bankName" : "Barclays",
"accountName" : "Money Market",
"accountNumber" : "BE71096123456769",
"accountNumberType" : "IBAN",
"countryCode" : "BE",
"currencyCode" : "EUR"
},
"accountType" : "I",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender DATACORE |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
POST /client/send-money/validate HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 957
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"type" : "RECEIVER",
"requestId" : "32a99272-6e82-47ea-b034-c571dcc5ac45",
"transactionId" : "TRX220132AM",
"cvc2": "123",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"sender" : {
"type" : "PLAIN",
"firstName": "Rob",
"lastName": "Meksuła",
"street": "Wring",
"houseNumber": "17A",
"city": "Lublin",
"postalCode": "20-400",
"flatNumber": "2",
"email": "rob.wring@fenige.pl",
"birthDate": "1993-01-16",
"cardNumber": "5117964247989169",
"expirationDate": "03/26",
"personalId": "AGC688910",
"currency": "PLN",
"country": "PL"
},
"receiver" : {
"type" : "ACCOUNT",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2023-12-13",
"currency" : "PLN",
"bank" : {
"bankCode" : "800554",
"bankCodeType" : "SORT_CODE",
"bankName" : "Barclays",
"accountName" : "Money Market",
"accountNumber" : "BE71096123456769",
"accountNumberType" : "IBAN",
"countryCode" : "BE",
"currencyCode" : "EUR"
},
"accountType" : "I",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Sender PLAIN Sender TOKEN - PAN_ONLY Sender TOKEN - CRYPTOGRAM_3DS Sender DATACORE |
receiver |
Object |
Required |
@NotNull |
Receiver PLAIN Receiver TOKEN Receiver CASH Receiver DATACORE Receiver PHONE |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
3.2.2. Response
Response status
Status | Description |
---|---|
|
Returned if the transaction completes successfully. |
|
Returned list of field name which has validation errors. |
|
Returned when the transaction with the provided requestId has been registered in the system, but has not yet been completed. The user can retry in a few seconds to get the transaction result. |
|
Returned e.g. when a different transaction with the provided requestId has already been registered in the system. |
|
Returned when API-TOKEN was broken. |
Example HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 54
{
"orderId": "234abf25-c35f-a263-a402-cbaf874f137a"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
OrderId |
HTTP/1.1 200 OK
Content-Type: application/json;charset=ISO-8859-1
{
"status": "ERROR_VALIDATION",
"error": {
"message": "Some information is missing or incorrect.",
"errors": [{
"field": "requestId",
"message": [
"may not be null"
]
},
{
"field": "cvc2",
"message": [
"may not be null",
"length must be 3"
]
},
{
"field": "amount",
"message": [
"may not be null"
]
},
{
"field": "type",
"message": [
"may not be null"
]
},
{
"field": "sender",
"message": [
"may not be null"
]
},
{
"field": "sender.houseNumber",
"message": [
"may not be null",
"may not be empty",
"length must be between 1 and 10"
]
},
{
"field": "sender.street",
"message": [
"may not be null",
"may not be empty",
"length must be between 1 and 50"
]
},
{
"field": "sender.firstName",
"message": [
"may not be null",
"may not be empty",
"length must be between 2 and 35"
]
},
{
"field": "sender.lastName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "sender.postalCode",
"message": [
"may not be empty",
"may not be null",
"length must be between 1 and 10"
]
},
{
"field": "sender.city",
"message": [
"may not be empty",
"may not be null",
"length must be between 1 and 25"
]
},
{
"field": "sender.flatNumber",
"message": [
"must be null",
"length must be between 0 and 5"
]
},
{
"field": "sender.cardNumber",
"message": [
"may not be null",
"may not be empty",
"card number length must be 16"
]
},
{
"field": "sender.email",
"message": [
"may not be empty",
"may not be null",
"not a well-formed email address",
"lenght must be beetween 1 and 128"
]
},
{
"field": "sender.expirationDate",
"message": [
"invalid card expiration date",
"may not be null",
"may not be empty"
]
},
{
"field": "receiver",
"message": [
"may not be null"
]
},
{
"field": "receiver.firstName",
"message": [
"may not be null",
"may not be empty",
"length must be between 2 and 35"
]
},
{
"field": "receiver.lastName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "receiver.currency",
"message": [
"may not be null"
]
},
{
"field": "receiver.cardNumber",
"message": [
"may not be null",
"may not be empty",
"card number length must be 16"
]
},
{
"field": "sender",
"message": [
"province is mandatory only if country code is US or CA"
]
},
{
"field": "sender.province",
"message": [
"is not correct province code for country code US",
"may not be null"
]
},
{
"field": "sender.province",
"message": [
"may not be null",
"is not correct province code for country code CA"
]
},
{
"field": "sender.province",
"message": [
"must match ^[A-Z]{2}$",
"is not correct province code for country code US"
]
},
{
"field": "sender.currency",
"message": [
"Currency is not supported"
]
},
{
"field": "receiver.currency",
"message": [
"Currency is not supported"
]
}
]
}
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"status": "ERROR_API_TOKEN_NOT_FOUND",
"error": {
"message": "API-TOKEN header not found in request with DATACORE/PHONE model in sender or receiver."
}
}
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 56
{
"orderId" : "e50f4425-35a3-47f6-a2d3-0f71a0fed048"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Transaction order-id |
HTTP/1.1 400 Bad Request
Content-Type: application/json
Content-Length: 104
{
"error" : {
"message" : "Another transaction with the same id has already been processed."
}
}
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
"timestamp": "2021-12-22T12:39:53.168+0000",
"status": 401,
"error": "Unauthorized",
"message": "Username or password is not correct",
"path": "/api/v2/client/send-money-3ds"
}
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
"timestamp": "2021-12-22T12:39:53.168+0000",
"status": 401,
"error": "Unauthorized",
"message": "ERROR_USER_NOTFOUND",
"path": "/api/v2/client/send-money-3ds"
}
Path | Description |
---|---|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 403 Forbidden
Content-Type: application/json
{
"timestamp": 1610464313387,
"status": 403,
"error": "Forbidden",
"message": "No message available",
"path": "/client/send-money-3ds"
}
3.2.3. Check status
The method allows obtaining a status of 3ds transaction specified by order-id. Parameter order-id was returned in the previous step (Send money multicurrency 3DS).
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
Parameter | Description |
---|---|
|
Unique transaction identifier. |
GET /client/send-money-3ds/00549d98-08cb-45d2-8673-4dcafa81f498 HTTP/1.1
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned if the transaction completes successfully. |
|
Returned when transaction was registered for processing. Check status in a while. |
|
Returned when user provides wrong order-id or transaction was failed or was Declined. |
Example HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 986
{
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"3DS" : false,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "511796******9169",
"bankName" : "Alior Bank SA"
}
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
Date of transaction. |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 946
{
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"3DS" : false,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "CASH",
"hiddenCardNumber" : "****************"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "511796******9169",
"bankName" : "Alior Bank SA"
}
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
Date of transaction. |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 203 Non-Authoritative Information
After you get 203 you need to check status in a while because we processing this transaction and if you don’t get a response (200 - succeeded or 500 - declined) within 60 seconds then please contact us. |
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain;charset=ISO-8859-1
PAYMENT_TRANSACTION_DECLINED:CODE_05
After receiving these statuses, the transaction was rejected |
Error statuses
Name |
Description |
|
REJECTED - Monitoring rule which is designed to prevent the acceptance of names or surnames that do not contain vowels or consonants |
|
CODE_XX - is MasterCard response code (ISO 8583) |
|
This card is not supported |
|
Card is blocked for 1 hour in Fenige |
|
User is blocked in Fenige |
|
Bin is blocked for 1 hour in Fenige |
|
Funding bank is blocked in Fenige |
|
Payment bank is blocked in Fenige |
|
Funding transaction was declined and payment not send |
|
Payment transaction was declined and funding was reversed |
|
A connection error occurred to Acquirer service |
|
User was found on the stop list |
|
Acceptance network is unavailable |
|
No currently effective rates found in the database |
|
Currency is not supported |
|
Currency is not supported by Merchant |
|
Transaction limit for single transaction exceeded |
|
Daily transaction limit for amount per card exceeded |
|
Daily transaction limit for count per card exceeded |
|
Weekly transaction limit for amount per card exceeded |
|
Monthly transaction limit for amount per card exceeded |
|
Monthly transaction limit for count per card exceeded |
|
Daily cumulative limit per card was exceeded |
|
Monthly cumulative limit per card was exceeded |
|
Daily cumulative limit per merchant transactions using mastercard cards was exceeded |
|
Monthly cumulative limit per merchant transactions using mastercard cards was exceeded |
|
Daily cumulative limit per merchant transactions using visa cards was exceeded |
|
Monthly cumulative limit per merchant transactions using visa cards was exceeded |
|
Daily cumulative limit per merchant transactions using mastercard and visa cards was exceeded |
|
Monthly cumulative limit per merchant transactions using mastercard and visa cards was exceeded |
|
Sender’s card is blocked |
|
Receiver’s card is blocked |
|
User acting as sender is blocked |
|
User acting as receiver is blocked |
|
BIN of sender’s card is blocked |
|
BIN of receiver’s card is blocked |
|
Amount is higher than acceptable limit |
|
Couldn’t established connection to Monitoring service |
|
Some unrecognized error occurred |
|
The transaction user’s personal data verified as incorrect on the verification service. Transaction rejected. |
|
Funding transaction declined - mip response timeout |
|
Payment transaction declined - mip response timeout |
|
Funding process failed and it is need to manual verification of transaction |
|
Payment process failed and it is need to manual verification of transaction |
|
Funding transaction declined - mip_proxy response timeout |
|
Payment transaction declined - mip_proxy response timeout |
|
Error finalize 3ds not authenticated. MPI return one of statuses: N -The customer failed authentication, and the transaction is denied. |
|
Error no 3ds authorization, when User authenticates successfully but after 15 minutes or User doesn’t authenticate. |
|
Error occurs, when merchant configuration allows only for attempted or full authenticated 3DS transactions with mpi status 'A' or 'Y' but mpi service has returned other status e.g. 'N' or 'U' at any stage of the transaction. |
|
An error occurred while processing |
|
An error occurred while processing |
|
An error occurred while processing |
|
Amount exceeds current merchant deposit limit |
|
Merchant has configured a different version of 3DS than specified in the request |
|
Some unrecognized, internal error occurred in MPI2 service |
|
Required configuration data of Merchant are not complete to finish 3DS 2.X process |
|
TransactionXId is invalid for card number specified in the request, 3DS 2.X flow invoked for other card number than specified in the request |
|
TransactionXId is invalid for merchant specified in the request, 3DS 2.X flow invoked for other merchant than specified in the request |
|
Card not found by transactionXId |
|
Card authentication does not match to payment type |
|
Error 3DS 2.X processing failed |
|
Transactions without 3ds above 30 EUR (the blockade applies only to EU countries) |
|
Error transaction not exists |
|
Card was not found |
|
Problem with DC |
|
ERROR_SOMETHING_WRONG returned when the check status method is executed means that the details for the indicated transaction could not be retrieved correctly due to an unexpected error. This does not mean that the transaction was rejected by our system. In case of receiving ERROR_SOMETHING_WRONG status, please do not hesitate to notify our support team in order to determine the correctness of the transaction execution and quickly correct the method error. |
|
This error may occur if card’s country is other than user’s country for USA or CAN transaction for PLAIN model |
|
This error may occur if card’s country is other than user’s country for USA or CAN transaction |
|
This error may occur when system could not get card country code. Most often, the error is caused by a missing card in the parameters received from the card provider. |
|
Province code is not valid for USA or CAN transactions. Please update user profile |
|
Some validation error occurred |
|
This error may occur when merchant tries to make transaction in other model than assigned primarily. For example, if merchant’s model is set as CARD-CARD and then merchant will try to make transaction in CASH-CARD model, will receive error as bellow. |
|
Card expired |
|
The amount sent is too small. Enter a larger amount. |
|
The amount sent is too high. Enter a lower amount. |
|
Restricted funding card country was used. + This error may occur when a merchant uses a sender card issued in a country that is on the list of countries High Risk or country not allowed to perform transactions in Fenige API. Please contact support. |
|
Restricted payment card country was used. + This error may occur when a merchant uses a sender card issued in a country that is on the list of countries High Risk or country not allowed to perform transactions in Fenige API. Please contact support. |
|
Merchant not support the given card provider, please contact support to check merchant configuration |
|
Merchant crypto is not supported outside EEA+UK |
|
System does not allow the execution of transaction with the receiver card country. |
|
System does not allow the execution of transaction with the sender card country. |
|
Geographic scope is not permitted for this transaction |
|
Processing time of transaction was too long, transaction is declined. |
|
Transaction rejected, second transaction with merchant advice code 03 or 21 within 30 days. |
|
Transaction rejected, sender or receiver name contains fraudulent phrase. |
|
Transaction rejected, suspicious sender or receiver name. |
3.2.4. Check detailed status
The method allows obtaining a detailed status of 3ds transaction specified by order-id. Parameter order-id was returned in the previous step (Send money multicurrency 3DS).
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
Parameter | Description |
---|---|
|
Unique transaction identifier. |
GET /client/send-money-3ds/details/00549d98-08cb-45d2-8673-4dcafa81f498 HTTP/1.1
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned if the transaction completes successfully. |
|
Returned when transaction was registered for processing. Check status in a while. |
|
Returned when a transaction related to the given orderId doesn’t exist. |
|
Returned when user provides wrong order-id or transaction was failed or was Declined. |
|
Returned when an internal error occur. |
Example HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1022
{
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"3DS" : false,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "511796******9169",
"bankName" : "Alior Bank SA"
},
"transactionStatus" : "APPROVED"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
Date of transaction. |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 203 Non-Authoritative Information
After you get 203 you need to check status in a while because we processing this transaction and if you don’t get a response (200 - succeeded or 500 - declined) within 60 seconds then please contact us. |
HTTP/1.1 404 Not Found
Content-Type: application/json
Content-Length: 51
{
"errorStatus" : "ERROR_TRANSACTION_NOT_FOUND"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Additional data of the error occurred during a processing of the request |
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
Content-Length: 1150
{
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"3DS" : false,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "511796******9169",
"bankName" : "Alior Bank SA"
},
"transactionStatus" : "DECLINED",
"cardBlockType" : "TEMP",
"cardBlockedUntil" : "2024-09-06T10:58:11.244",
"errorStatus" : "ERROR_SENDER_CARD_IS_BLOCKED"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
Date of transaction. |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
|
|
The code of the error occurred during a processing of the request |
|
|
Card lock type |
|
|
Card’s lock end date |
|
|
Information about the reasons for declined transactions and actions that merchants can take. Occurs only for mastercard and for rejected transactions if Mastercard returns this information |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Content-Length: 69
{
"errorStatus" : "ERROR_SOMETHING_WRONG - Something went wrong."
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Additional data of the error occurred during a processing of the request |
3.2.5. Transaction history
Method return page with list of user transactions. Transactions are filtered by clientId provided in GET parameter.
User can send additional optional parameters (page, size) to obtain given page with defined size.
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
GET /client/0/transactions?fromDate=2018-03-06&toDate=2018-03-08&page=0&size=100 HTTP/1.1
Content-Type: application/json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned list of transactions history. |
|
Returning the list failed. |
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1118
{
"content" : [ {
"correlationId" : "9f25be20-4827-4a50-b5bc-1d144ae316e0",
"createdDate" : "2018-03-15T10:24:52.149Z",
"amount" : 15000,
"amountInUsDollar" : 4024,
"textAmount" : "150.00 PLN",
"currency" : "PLN",
"cardId" : 3574,
"receiverFirstName" : "Patrick",
"receiverLastName" : "Evans",
"receiverHiddenCardNumber" : "511123******1234",
"receiverProvider" : "MASTERCARD",
"receiverBankName" : "Bank Polska Kasa Opieki Spółka Akcyjna",
"receiverEmail" : "receiver@fenige.pl",
"receiverPhone" : "600300200",
"senderFirstName" : "Rob",
"senderLastName" : "Wring",
"senderHiddenCardNumber" : "522212******4321",
"senderProvider" : "MASTERCARD",
"senderBankName" : "Alior Bank SA",
"status" : "approved",
"transactionDirection" : "OUTGOING",
"3DS" : false
} ],
"pageable" : "INSTANCE",
"last" : true,
"totalElements" : 1,
"totalPages" : 1,
"first" : true,
"size" : 1,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 1,
"empty" : false
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Unique UUID describing single transaction in system |
|
|
Date of transaction processing |
|
|
Transaction amount in pennies |
|
|
Transaction amount in USD currency in pennies. |
|
|
Transaction amount with currency |
|
|
Transaction currency |
|
|
Datacore card id used in transaction (sender card) |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Transaction receiver first name |
|
|
Transaction receiver last name |
|
|
Transaction receiver hidden card number |
|
|
VISA or MASTERCARD or MAESTRO |
|
|
Transaction receiver card bank name. |
|
|
Transaction sender first name. |
|
|
Transaction sender last name. |
|
|
Transaction sender hidden card numbe. |
|
|
VISA or MASTERCARD or MAESTRO |
|
|
Transaction sender card bank name. |
|
|
Transaction receiver phone number |
|
|
Transaction receiver email |
|
|
Status of the transaction (approved, reversed) |
|
|
Direction of the transaction (INCOMING, OUTGOING) |
|
|
Information about the reasons for declined transactions and actions that merchants can take. Occurs only for mastercard and for rejected transactions if Mastercard returns this information |
|
|
Describes whether the page is last (true ot false) |
|
|
Total number of all pages |
|
|
Total number of all transactions |
|
|
Number of transactions on page |
|
|
Describes whether the page is first (true ot false) |
|
|
Details of sort |
|
|
Max number of transactions on page |
|
|
Page number |
|
|
Page number |
HTTP/1.1 404 Not Found
3.2.6. Transaction details
Method return transaction details for single transaction given in method parameter orderId
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
GET /client/transactions/fae3ee90-6f88-4aa6-aff5-7d9f6a5645d3 HTTP/1.1
Content-Type: application/json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned details of transaction. |
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 329
{
"fundingAmount" : "2.00 PLN",
"chargedAmount" : "2.04 PLN",
"commission" : "0.04 PLN",
"paymentAmount" : "0.54 USD",
"exchange" : "1.00 PLN = 0.27 USD",
"transactionTime" : "2018-07-26T17:01:56.364Z",
"cardIssuer" : "MASTERCARD",
"amountInUsDollar" : 1,
"status" : "approved",
"sendMoneyType" : "RECEIVER"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Funding amount in transaction currency |
|
|
Charged amount in transaction currency |
|
|
Transaction commission with currency |
|
|
Payment amount in receiver currency |
|
|
Revaluation amount from sender to receiver currency |
|
|
Date of the transaction |
|
|
Card issuer MASTERCARD/VISA |
|
|
Transaction amount in USD currency in pennies |
|
|
Status of transaction approved/reject/decline |
|
|
Specifies the direction of the transaction currency. SENDER - the currency of the sender, RECEIVER - the currency of the receiver. |
3.3. Payouts from deposit
Quick money transfers to debit or credit cards in 150 major currencies. Lower the costs, save time and increase the end-user satisfaction. Money transfer from Fenige funds deposit to account number is possible from Q1 2024
1 - User by selecting type = RECEIVER defines amount of payment in given currency. This amount is transferred to receiver card in selected currency. In case there's need revaluation from one currency to another, system uses higherRate for this situation. For more details about specific rates please refer to Currency Rate method.
*API-TOKEN CASH-PHONE
The API-TOKEN is refreshed each time it is used in the header. The API-TOKEN is refreshed for 30 minutes. |
Please notice that you can choose language of email confirmation of this transaction. It is able by attach proper header to request. |
The success of the multicurrency send-money transaction depends primarily on the correctness of the merchant's currency configuration which is done by the admin. To make transactions in a currency other than the currency of the card, contact the admin.
In order to provide users with the ability to safely retry transaction (for example to request for an undelivered response), the v2 of API supports idempotent send money multi-currency operation.
Now on the 'Payouts from deposit' method it is possible to process transactions with Google Pay, Apple Pay, Visa, Mastercard tokens. All you need to do is enter a token in the receiver.cardNumber field. Only for Payouts API!
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
When performing authorization, remember that there are currencies with different number of decimal places. For example: VND has no pennies and KWD has three decimal places. Please take this into account in the Amout field. For more information on other currencies, see ISO 4217. |
Worth to note are the new CARD_ACCOUNT and CASH_ACCOUNT transaction models. Using this transaction model, we can quickly make a transfer from a card to an account number or from a Fenige cash deposit to an account number. Transactions in this model are very simple and differ slightly from normal card-to-card transactions. Only the receiver object is changed. An important piece of information to ensure high transaction compliance is the ability to execute the /client/send-money/validate method, which will make sure that your request body is correct and can be processed correctly in a real transaction with the /api/v2/client/send-money method. Your request body will be validate in Visa/Mastercard side so we can be sure that information you gathered is correct. Look at the CASH-ACCOUNT tab |
3.3.1. Request
Request fields
Example HTTP Request
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 745
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"type" : "RECEIVER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "0300ec89-2c99-4029-9243-49f2033f7307",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "CASH",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"personalId" : "AGC688910",
"country" : "PL"
},
"receiver" : {
"type" : "PLAIN",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Response fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
|
receiver |
Object |
Required |
@NotNull |
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 784
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"type" : "RECEIVER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "cfc720d2-3ddb-4b0f-b480-c9cbc0de5d4b",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "CASH",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"personalId" : "AGC688910",
"country" : "PL"
},
"receiver" : {
"type" : "TOKEN",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"currency" : "PLN",
"tokenPan" : "5117964247989169",
"countryOfResidence" : "PL"
}
}
Response fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
|
receiver |
Object |
Required |
@NotNull |
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 815
Host: java-staging.fenige.pl:8181
{
"calculateCommissionUuid" : "210e4802-ebc4-4a17-96b1-a8efb6bc0eef",
"amount" : 1000,
"type" : "RECEIVER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "ad804e45-c122-4c7d-a398-4d94cbf07289",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "CASH",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"personalId" : "AGC688910",
"country" : "PL"
},
"receiver" : {
"type" : "PLAIN",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Response fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
|
receiver |
Object |
Required |
@NotNull |
|
calculateCommissionUuid |
String |
Optional |
@Optional |
Unique calculate commission result identifier that allows to use calculated commission in transaction. More information in Calculate commission payout chapter. If calculateCommissionUuid is not provided, commissions will be calculated based on actual currency rates. |
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 741
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"type" : "RECEIVER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "a7c90f7c-fb84-4509-9d90-6a5f371ca056",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "CASH",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"personalId" : "AGC688910",
"country" : "PL"
},
"receiver" : {
"type" : "PHONE",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"phoneNumber" : "48123777619",
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
Response fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
|
receiver |
Object |
Required |
@NotNull |
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1072
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"type" : "RECEIVER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "bb594b09-2541-4674-9038-926f0e549ff3",
"transactionId" : "TRX220132AM",
"description" : "Test Account transaction",
"sender" : {
"type" : "CASH",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"personalId" : "AGC688910",
"country" : "PL"
},
"receiver" : {
"type" : "ACCOUNT",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"currency" : "PLN",
"bank" : {
"bankCode" : "800554",
"bankCodeType" : "SORT_CODE",
"bankName" : "Barclays",
"accountName" : "Money Market",
"accountNumber" : "BE71096123456769",
"accountNumberType" : "IBAN",
"countryCode" : "BE",
"currencyCode" : "EUR"
},
"accountType" : "I",
"countryOfResidence" : "PL"
}
}
Response fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
|
receiver |
Object |
Required |
@NotNull |
POST /client/send-money/validate HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 957
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"type" : "RECEIVER",
"requestId" : "32a99272-6e82-47ea-b034-c571dcc5ac45",
"transactionId" : "TRX220132AM",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"sender" : {
"type" : "CASH",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"personalId" : "AGC688910",
"country" : "PL"
},
"receiver" : {
"type" : "ACCOUNT",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2023-12-13",
"currency" : "PLN",
"bank" : {
"bankCode" : "800554",
"bankCodeType" : "SORT_CODE",
"bankName" : "Barclays",
"accountName" : "Money Market",
"accountNumber" : "BE71096123456769",
"accountNumberType" : "IBAN",
"countryCode" : "BE",
"currencyCode" : "EUR"
},
"accountType" : "I",
"countryOfResidence" : "PL"
}
}
Response fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
|
receiver |
Object |
Required |
@NotNull |
3.3.2. Response
Response status
Status | Description |
---|---|
|
Returned list of field name which has validation errors. |
|
- Returned when the transaction with the provided requestId has been registered in the system, but has not yet been completed. The user can retry in a few seconds to get the transaction result. Response body: Empty |
|
Returned e.g. when a different transaction with the provided requestId has already been registered in the system. |
|
Returned when API-TOKEN was broken. |
Example HTTP Response
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 56
{
"orderId" : "f78667d8-50ba-4e97-a9a8-c11ff9afa121"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Unique transaction identifier |
HTTP/1.1 400 Bad Request
Content-Type: application/json
Content-Length: 104
{
"error" : {
"message" : "Another transaction with the same id has already been processed."
}
}
HTTP/1.1 200 OK
Content-Type: application/json;charset=ISO-8859-1
{
"status": "ERROR_VALIDATION",
"error": {
"message": "Some information is missing or incorrect.",
"errors": [{
"field": "requestId",
"message": [
"may not be null"
]
},
{
"field": "cvc2",
"message": [
"may not be null",
"length must be 3"
]
},
{
"field": "type",
"message": [
"may not be null"
]
},
{
"field": "amount",
"message": [
"may not be null"
]
},
{
"field": "sender",
"message": [
"may not be null"
]
},
{
"field": "sender.cardNumber",
"message": [
"may not be null",
"may not be empty",
"card number length must be 16"
]
},
{
"field": "sender.expirationDate",
"message": [
"invalid card expiration date",
"may not be null",
"may not be empty"
]
},
{
"field": "sender.city",
"message": [
"may not be empty",
"may not be null",
"length must be between 1 and 25"
]
},
{
"field": "sender.street",
"message": [
"may not be null",
"may not be empty",
"length must be between 1 and 50"
]
},
{
"field": "sender.postalCode",
"message": [
"may not be empty",
"may not be null",
"length must be between 1 and 10"
]
},
{
"field": "sender.flatNumber",
"message": [
"must be null",
"length must be between 0 and 5"
]
},
{
"field": "sender.lastName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "sender.houseNumber",
"message": [
"may not be empty",
"may not be null",
"length must be between 1 and 10",
"must match the expression: ^[1-9][0-9]{0,4}(?:[A-z]?[0-9]{0,4})?((?:[-/ ][1-9]?[A-z]?[0-9]{0,4})*[A-z]?)?$"
]
},
{
"field": "sender.firstName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "sender.email",
"message": [
"may not be empty",
"may not be null",
"not a well-formed email address",
"lenght must be beetween 1 and 128"
]
},
{
"field": "receiver",
"message": [
"may not be null"
]
},
{
"field": "receiver.firstName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "receiver.lastName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "receiver.currency",
"message": [
"may not be null"
]
},
{
"field": "receiver.cardNumber",
"message": [
"may not be null",
"may not be empty",
"card number length must be 16"
]
},
{
"field": "sender",
"message": [
"province is mandatory only if country code is US or CA"
]
},
{
"field": "sender.province",
"message": [
"is not correct province code for country code US",
"may not be null"
]
},
{
"field": "sender.province",
"message": [
"may not be null",
"is not correct province code for country code CA"
]
},
{
"field": "sender.province",
"message": [
"must match ^[A-Z]{2}$",
"is not correct province code for country code US"
]
},
{
"field": "sender.currency",
"message": [
"Currency is not supported"
]
},
{
"field": "receiver.currency",
"message": [
"Currency is not supported"
]
}
]
}
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"status": "ERROR_API_TOKEN_NOT_FOUND",
"error": {
"message": "API-TOKEN header not found in request with DATACORE/PHONE model in sender or receiver."
}
}
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
"timestamp": "2021-12-22T12:39:53.168+0000",
"status": 401,
"error": "Unauthorized",
"message": "Username or password is not correct",
"path": "/api/v2/client/send-money"
}
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
"timestamp": "2021-12-22T12:39:53.168+0000",
"status": 401,
"error": "Unauthorized",
"message": "ERROR_USER_NOTFOUND",
"path": "/api/v2/client/send-money"
}
Path | Description |
---|---|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 403 Forbidden
Content-Type: application/json
{
"timestamp": 1610464313387,
"status": 403,
"error": "Forbidden",
"message": "No message available",
"path": "/client/send-money-3ds"
}
3.3.3. Calculate commission payout
This method is used to receive information about the commission that will be charged for the transaction. Merchant has to specify in the field: type two values (SENDER OR RECEIVER). After selecting the value: "SENDER", the transaction will be sent in the amount indicated in the field: amount. Whereas after choosing the value: "RECEIVER", the transaction will be received in the amount indicated in the field: amount. For Payouts the value must be RECEIVER. The method allows merchant to calculate commissions for the currencies that have been entered. Result of this method can be used in transaction by passing calculateCommissionUuid from the response.
Request
POST /client/calculate-commission/payout HTTP/1.1
Content-Type: application/json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 189
Host: java-staging.fenige.pl:8181
{
"amount" : 100,
"type" : "RECEIVER",
"sender" : {
"type" : "CASH"
},
"receiver" : {
"type" : "PLAIN",
"cardNumber" : "5575167825713507",
"currency" : "PLN"
}
}
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, @Min(100) |
The total transfer amount (in pennies) |
type |
String |
Required |
@NotNull |
Value for specific transaction type. Must be RECEIVER |
sender |
Object |
Required |
@NotNull |
Required configuration per request. Must be CASH type. |
receiver |
Object |
Required |
@NotNull |
Required configuration per request (PLAIN RECEIVER, PHONE RECEIVER) |
Example HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 186
{
"calculateCommissionUuid" : "4c8ea7d8-9e77-4d17-8631-d28a9fef7e7b",
"depositChargeAmount" : 200,
"depositChargeCurrency" : "PLN",
"calculateCommissionExpiration" : 1725526685
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Unique identifier that can be used in authorization to use calculate commission result. |
|
|
Amount that will be charged from deposit in pennies |
|
|
Deposit currency |
|
|
Expiration date of calculate commission result in unix time |
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
Content-Length: 184
{
"status" : "E0152",
"message" : "Transaction rejected, issuer card not supported",
"httpStatus" : "UNPROCESSABLE_ENTITY",
"traceId" : "5cb80421-8313-4d74-845f-ec7fda710181"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Trace identifier |
|
|
Response code from Fenige system |
|
|
Message for response code from Fenige system |
|
|
Response http status |
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Content-Length: 150
{
"status" : "E9000",
"message" : "Domain error",
"httpStatus" : "INTERNAL_SERVER_ERROR",
"traceId" : "6dea5bd1-c0b7-4806-8856-76c29e4dcb8c"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Trace identifier |
|
|
Response code from Fenige system |
|
|
Message for response code from Fenige system |
|
|
Response http status |
3.3.4. Check status
The method allows obtaining a status of multi-currency transaction specified by order-id. Parameter order-id was returned in the previous step (Send money multicurrency).
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
Parameter | Description |
---|---|
|
Unique transaction identifier. |
GET /client/send-money/00549d98-08cb-45d2-8673-4dcafa81f498 HTTP/1.1
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned if the transaction completes successfully. |
|
Returned when transaction was registered for processing. Check status in a while. |
|
Returned when user provides wrong order-id or transaction was failed or was Declined. |
Example HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1260
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : false,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "CASH",
"hiddenCardNumber" : "****************",
"bankName" : ""
},
"merchantSettlementCurrency" : "USD",
"fenigeCommissionInMerchantSettlementCurrency" : 0.05,
"transactionAmountInMerchantSettlementCurrency" : 2.68
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Merchant settlement currency |
|
|
Commission Fenige in merchant settlement currency |
|
|
Transaction amount in merchant settlement currency |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 203 Non-Authoritative Information
After you get 203 you need to check status in a while because we processing this transaction and if you don’t get a response (200 - succeeded or 500 - declined) within 60 seconds then please contact us. |
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain;charset=ISO-8859-1
PAYMENT_TRANSACTION_DECLINED:CODE_05
After receiving these statuses, the transaction was rejected |
Error statuses
Name |
Description |
|
REJECTED - Monitoring rule which is designed to prevent the acceptance of names or surnames that do not contain vowels or consonants |
|
CODE_XX - is MasterCard response code (ISO 8583) |
|
This card is not supported |
|
Card is blocked for 1 hour in Fenige |
|
User is blocked in Fenige |
|
Bin is blocked for 1 hour in Fenige |
|
Funding bank is blocked in Fenige |
|
Payment bank is blocked in Fenige |
|
Funding transaction was declined and payment not send |
|
Payment transaction was declined and funding was reversed |
|
A connection error occurred to Acquirer service |
|
User was found on the stop list |
|
Acceptance network is unavailable |
|
No currently effective rates found in the database |
|
Currency is not supported |
|
Currency is not supported by Merchant |
|
Transaction limit for single transaction exceeded |
|
Daily transaction limit for amount per card exceeded |
|
Daily transaction limit for count per card exceeded |
|
Weekly transaction limit for amount per card exceeded |
|
Monthly transaction limit for amount per card exceeded |
|
Monthly transaction limit for count per card exceeded |
|
Daily cumulative limit per card was exceeded |
|
Monthly cumulative limit per card was exceeded |
|
Daily cumulative limit per merchant transactions using mastercard cards was exceeded |
|
Monthly cumulative limit per merchant transactions using mastercard cards was exceeded |
|
Daily cumulative limit per merchant transactions using visa cards was exceeded |
|
Monthly cumulative limit per merchant transactions using visa cards was exceeded |
|
Daily cumulative limit per merchant transactions using mastercard and visa cards was exceeded |
|
Monthly cumulative limit per merchant transactions using mastercard and visa cards was exceeded |
|
Sender’s card is blocked |
|
Receiver’s card is blocked |
|
User acting as sender is blocked |
|
User acting as receiver is blocked |
|
BIN of sender’s card is blocked |
|
BIN of receiver’s card is blocked |
|
Amount is higher than acceptable limit |
|
Couldn’t established connection to Monitoring service |
|
Some unrecognized error occurred |
|
The transaction user’s personal data verified as incorrect on the verification service. Transaction rejected. |
|
Funding transaction declined - mip response timeout |
|
Payment transaction declined - mip response timeout |
|
Funding process failed and it is need to manual verification of transaction |
|
Payment process failed and it is need to manual verification of transaction |
|
Funding transaction declined - mip_proxy response timeout |
|
Payment transaction declined - mip_proxy response timeout |
|
Amount exceeds current merchant deposit limit |
|
Error transaction not exists |
|
Card was not found |
|
Problem with DC |
|
ERROR_SOMETHING_WRONG returned when the check status method is executed means that the details for the indicated transaction could not be retrieved correctly due to an unexpected error. This does not mean that the transaction was rejected by our system. In case of receiving ERROR_SOMETHING_WRONG status, please do not hesitate to notify our support team in order to determine the correctness of the transaction execution and quickly correct the method error. |
|
This error may occur if card’s country is other than user’s country for USA or CAN transaction for PLAIN model |
|
This error may occur if card’s country is other than user’s country for USA or CAN transaction |
|
This error may occur when system could not get card country code. Most often, the error is caused by a missing card in the parameters received from the card provider. |
|
Province code is not valid for USA or CAN transactions. Please update user profile |
|
Some validation error occurred |
|
This error may occur when merchant tries to make transaction in other model than assigned primarily. For example, if merchant’s model is set as CARD-CARD and then merchant will try to make transaction in CASH-CARD model, will receive error as bellow. |
|
Card expired |
|
The amount sent is too small. Enter a larger amount. |
|
The amount sent is too high. Enter a lower amount. |
|
Restricted funding card country was used. + This error may occur when a merchant uses a sender card issued in a country that is on the list of countries High Risk or country not allowed to perform transactions in Fenige API. Please contact support. |
|
Restricted payment card country was used. + This error may occur when a merchant uses a sender card issued in a country that is on the list of countries High Risk or country not allowed to perform transactions in Fenige API. Please contact support. |
|
Merchant not support the given card provider, please contact support to check merchant configuration |
|
Merchant crypto is not supported outside EEA+UK |
|
System does not allow the execution of transaction with the receiver card country. |
|
System does not allow the execution of transaction with the sender card country. |
|
Geographic scope is not permitted for this transaction |
|
Processing time of transaction was too long, transaction is declined. |
|
Transaction rejected, second transaction with merchant advice code 03 or 21 within 30 days. |
|
Transaction rejected, sender or receiver name contains fraudulent phrase. |
|
Transaction rejected, suspicious sender or receiver name. |
|
Transaction rejected, card country is not supported for merchants crypto. |
|
Transaction card-account rejected, country code in sender object is required for this transactional model |
|
Transaction card-account or cash account rejected, personalId field in sender object is required for this transactional model |
|
Transaction rejected, country of merchant cannot be the same as receiver’s bank code |
3.3.5. Check detailed status
The method allows obtaining a detailed status of multi-currency transaction specified by order-id. Parameter order-id was returned in the previous step (Send money multicurrency).
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
Parameter | Description |
---|---|
|
Unique transaction identifier. |
GET /client/send-money/details/00549d98-08cb-45d2-8673-4dcafa81f498 HTTP/1.1
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned if the transaction completes successfully. |
|
Returned when transaction was registered for processing. Check status in a while. |
|
Returned when a transaction related to the given orderId doesn’t exist. |
|
Returned when user provides wrong order-id or transaction was failed or was Declined. |
|
Returned when an internal error occur. |
Example HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1230
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : false,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "CASH"
},
"transactionStatus" : "APPROVED",
"merchantSettlementCurrency" : "USD",
"fenigeCommissionInMerchantSettlementCurrency" : 0.05,
"transactionAmountInMerchantSettlementCurrency" : 2.68
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Merchant settlement currency |
|
|
Commission Fenige in merchant settlement currency |
|
|
Transaction amount in merchant settlement currency |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 203 Non-Authoritative Information
After you get 203 you need to check status in a while because we processing this transaction and if you don’t get a response (200 - succeeded or 500 - declined) within 60 seconds then please contact us. |
HTTP/1.1 404 Not Found
Content-Type: application/json
Content-Length: 51
{
"errorStatus" : "ERROR_TRANSACTION_NOT_FOUND"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Additional data of the error occurred during a processing of the request |
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
Content-Length: 1287
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : true,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "511796******9169",
"bankName" : "Alior Bank SA"
},
"transactionStatus" : "DECLINED",
"cardBlockType" : "TEMP",
"cardBlockedUntil" : "2024-09-06T10:58:11.540",
"errorStatus" : "ERROR_SENDER_CARD_IS_BLOCKED"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
|
|
Additional data of the error occurred during a processing of the request |
|
|
Card lock type |
|
|
Card’s lock end date |
|
|
Information about the reasons for declined transactions and actions that merchants can take. Occurs only for mastercard and for rejected transactions if Mastercard returns this information |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
Content-Length: 1358
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : false,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "CASH"
},
"transactionStatus" : "DECLINED",
"merchantSettlementCurrency" : "USD",
"fenigeCommissionInMerchantSettlementCurrency" : 0.05,
"transactionAmountInMerchantSettlementCurrency" : 2.68,
"cardBlockType" : "TEMP",
"cardBlockedUntil" : "2024-09-06T10:58:10.900",
"errorStatus" : "ERROR_SENDER_CARD_IS_BLOCKED"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Merchant settlement currency |
|
|
Commission Fenige in merchant settlement currency |
|
|
Transaction amount in merchant settlement currency |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
|
|
The code of the error occurred during a processing of the request |
|
|
Card lock type |
|
|
Card’s lock end date |
|
|
Information about the reasons for declined transactions and actions that merchants can take. Occurs only for mastercard and for declined transactions if Mastercard returns this information |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Content-Length: 69
{
"errorStatus" : "ERROR_SOMETHING_WRONG - Something went wrong."
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Additional data of the error occurred during a processing of the request |
3.4. BLIK to Card
Innovative technology that allows to send money between BLIK and cards instantly anywhere in the world. No SWIFT or bank account number needed!
This method is used to MoneySend transaction (funding and payment). To enable users to make transfers in any currency, Fenige introduces the send-money method for multicurrency.
1 - User by selecting type = SENDER defines amount of funding in PLN. This amount is collected from sender card in PLN currency. 2 - User by selecting type = RECEIVER defines amount of payment in given currency. This amount is transferred to receiver card in selected currency. In case there's need revaluation from one currency to another, system uses lowerRate for situation 1 and higherRate for situation 2. For more details about specific rates please refer to Currency Rate method.
TIP: Please notice that you can choose language of email confirmation of this transaction. It is able by attach proper header to request. |
The success of the multicurrency send-money transaction depends primarily on the correctness of the merchant's currency configuration which is done by the admin. To make transactions in a currency other than the currency of the card, contact the admin.
In order to provide users with the ability to safely retry transaction (for example to request for an undelivered response), the v2 of API supports idempotent send money multi-currency operation.
To use the BLIK to card transfer service, you will need to have a mobile banking app from one of the participating banks. Follow the instructions on the app to complete the transfer. Once you have confirmed the transaction, the money will be transferred to the card instantly.
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
When performing authorization, remember that there are currencies with different number of decimal places. For example: VND has no pennies and KWD has three decimal places. Please take this into account in the Amout field. For more information on other currencies, see ISO 4217. |
3.4.1. Request
Example HTTP Request
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1276
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "61ca2b6b-60f4-4496-8bcf-854d8946fa31",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "BLIK",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"country" : "PL",
"personalId" : "AGC688910",
"currency" : "PLN",
"firstDescriptionLine" : "Shop description",
"secondDescriptionLine" : "Second line of description",
"thirdDescriptionLine" : "Third line of description",
"fourthDescriptionLine" : "https://ecom-staging.fenige.pl/",
"redirectUrlAuthorized" : "https://ecom-staging.fenige.pl/transaction/authorized",
"redirectUrlDenied" : "https://ecom-staging.fenige.pl/transaction/denied"
},
"receiver" : {
"type" : "PLAIN",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"currency" : "PLN",
"countryOfResidence" : "PL"
}
}
POST /api/v2/client/send-money HTTP/1.1
Content-Type: application/vnd.sendmoney.v2+json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1315
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "f0f1d36d-ea96-4eed-a5e2-6912e5700cb5",
"transactionId" : "TRX220132AM",
"sender" : {
"type" : "BLIK",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"country" : "PL",
"personalId" : "AGC688910",
"currency" : "PLN",
"firstDescriptionLine" : "Shop description",
"secondDescriptionLine" : "Second line of description",
"thirdDescriptionLine" : "Third line of description",
"fourthDescriptionLine" : "https://ecom-staging.fenige.pl/",
"redirectUrlAuthorized" : "https://ecom-staging.fenige.pl/transaction/authorized",
"redirectUrlDenied" : "https://ecom-staging.fenige.pl/transaction/denied"
},
"receiver" : {
"type" : "TOKEN",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"currency" : "PLN",
"tokenPan" : "5117964247989169",
"countryOfResidence" : "PL"
}
}
Request fields
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
transactionId |
String |
Optional |
@Length(max = 64) |
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
|
receiver |
Object |
Required |
@NotNull |
3.4.2. Response
Response status
Status | Description |
---|---|
|
Returned list of field name which has validation errors. |
|
- Returned when the transaction with the provided requestId has been registered in the system, but has not yet been completed. The user can retry in a few seconds to get the transaction result. Response body: Empty |
|
Returned e.g. when a different transaction with the provided requestId has already been registered in the system. |
|
Returned when API-TOKEN was broken. |
Example HTTP Response
HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 1261
{
"orderId" : "674cf79e-f297-49ca-8294-272b53a9b2b8",
"base64Form" : "PGh0bWw+PFNDUklQVCBMQU5HVUFHRT0iSmF2YXNjcmlwdCI+ZnVuY3Rpb24gT25Mb2FkRXZlbnQoKSB7ZG9jdW1lbnQuZG93bmxvYWRGb3JtLnN1Ym1pdCgpO308L1NDUklQVD48Ym9keSBPbkxvYWQ9Ik9uTG9hZEV2ZW50KCk7Ij48Zm9ybSBuYW1lPSJkb3dubG9hZEZvcm0iIGFjY2VwdC1jaGFyc2V0PSJJU08tODg1OS0yIiBhY3Rpb249Imh0dHBzOi8vMTkzLjI3LjYuMjI1L2JsaWt3ZWIvdHJhbnNhY3Rpb24vdHJhbnNhY3Rpb25faW5pdC9zdWJtaXQiIG1ldGhvZD0iUE9TVCI+PElOUFVUIHR5cGU9ImhpZGRlbiIgbmFtZT0iVHlwZSIgdmFsdWU9IklwYXkyIj48SU5QVVQgdHlwZT0iaGlkZGVuIiBuYW1lPSJNZXJjaGFudElEIiB2YWx1ZT0iMTcxOTUiPjxJTlBVVCB0eXBlPSJoaWRkZW4iIG5hbWU9IkN1cnJlbmN5IiB2YWx1ZT0iUExOIj48SU5QVVQgdHlwZT0iaGlkZGVuIiBuYW1lPSJBbW91bnQiIHZhbHVlPSIxMDAwIj48SU5QVVQgdHlwZT0iaGlkZGVuIiBuYW1lPSJDdXN0b21QYXJhbSIgdmFsdWU9Ijg0MGY1ZjYzOGY0OTQwNGZiMGU1OGQwMDU1NTg1NzM4Ij48SU5QVVQgdHlwZT0iaGlkZGVuIiBuYW1lPSJEZXNjcmlwdGlvbiIgdmFsdWU9ImV4YW1wbGV8ZGVzY3JpcHRpb258w7PEhcWbxIfFm8SFfCI+PElOUFVUIHR5cGU9ImhpZGRlbiIgbmFtZT0iVGltZXN0YW1wIiB2YWx1ZT0iMjAyMi0wNi0yOVQxNTo0MDo1OC4zMjIrMDI6MDAiPjxJTlBVVCB0eXBlPSJoaWRkZW4iIG5hbWU9Ik1DQyIgdmFsdWU9IjA3NDIiPjxJTlBVVCB0eXBlPSJoaWRkZW4iIG5hbWU9IkNvbnRyb2xEYXRhIiB2YWx1ZT0iZDkyZjI2MTI1NmQwMWNiNjU4ZWI3MzIwZDczNDE2MjYyOGNhOTViNzRmYWRmY2UxOGFmMDliMDdkOWIwOGNjMCI+PC9mb3JtPjwvYm9keT48L2h0bWw+"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Unique transaction identifier |
|
|
HTML page encoded base64 that includes all necessary data that has to be send to BLIK. Page can be simply decoded and used for making transactions. |
HTTP/1.1 400 Bad Request
Content-Type: application/json
Content-Length: 104
{
"error" : {
"message" : "Another transaction with the same id has already been processed."
}
}
HTTP/1.1 200 OK
Content-Type: application/json;charset=ISO-8859-1
{
"status": "ERROR_VALIDATION",
"error": {
"message": "Some information is missing or incorrect.",
"errors": [{
"field": "requestId",
"message": [
"may not be null"
]
},
{
"field": "cvc2",
"message": [
"may not be null",
"length must be 3"
]
},
{
"field": "type",
"message": [
"may not be null"
]
},
{
"field": "amount",
"message": [
"may not be null"
]
},
{
"field": "sender",
"message": [
"may not be null"
]
},
{
"field": "sender.cardNumber",
"message": [
"may not be null",
"may not be empty",
"card number length must be 16"
]
},
{
"field": "sender.expirationDate",
"message": [
"invalid card expiration date",
"may not be null",
"may not be empty"
]
},
{
"field": "sender.city",
"message": [
"may not be empty",
"may not be null",
"length must be between 1 and 25"
]
},
{
"field": "sender.street",
"message": [
"may not be null",
"may not be empty",
"length must be between 1 and 50"
]
},
{
"field": "sender.postalCode",
"message": [
"may not be empty",
"may not be null",
"length must be between 1 and 10"
]
},
{
"field": "sender.flatNumber",
"message": [
"must be null",
"length must be between 0 and 5"
]
},
{
"field": "sender.lastName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "sender.houseNumber",
"message": [
"may not be empty",
"may not be null",
"length must be between 1 and 10",
"must match the expression: ^[1-9][0-9]{0,4}(?:[A-z]?[0-9]{0,4})?((?:[-/ ][1-9]?[A-z]?[0-9]{0,4})*[A-z]?)?$"
]
},
{
"field": "sender.firstName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "sender.email",
"message": [
"may not be empty",
"may not be null",
"not a well-formed email address",
"lenght must be beetween 1 and 128"
]
},
{
"field": "receiver",
"message": [
"may not be null"
]
},
{
"field": "receiver.firstName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "receiver.lastName",
"message": [
"may not be empty",
"may not be null",
"length must be between 2 and 35"
]
},
{
"field": "receiver.currency",
"message": [
"may not be null"
]
},
{
"field": "receiver.cardNumber",
"message": [
"may not be null",
"may not be empty",
"card number length must be 16"
]
},
{
"field": "sender",
"message": [
"province is mandatory only if country code is US or CA"
]
},
{
"field": "sender.province",
"message": [
"is not correct province code for country code US",
"may not be null"
]
},
{
"field": "sender.province",
"message": [
"may not be null",
"is not correct province code for country code CA"
]
},
{
"field": "sender.province",
"message": [
"must match ^[A-Z]{2}$",
"is not correct province code for country code US"
]
},
{
"field": "sender.currency",
"message": [
"Currency is not supported"
]
},
{
"field": "receiver.currency",
"message": [
"Currency is not supported"
]
}
]
}
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"status": "ERROR_API_TOKEN_NOT_FOUND",
"error": {
"message": "API-TOKEN header not found in request with DATACORE/PHONE model in sender or receiver."
}
}
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
"timestamp": "2021-12-22T12:39:53.168+0000",
"status": 401,
"error": "Unauthorized",
"message": "Username or password is not correct",
"path": "/api/v2/client/send-money"
}
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
"timestamp": "2021-12-22T12:39:53.168+0000",
"status": 401,
"error": "Unauthorized",
"message": "ERROR_USER_NOTFOUND",
"path": "/api/v2/client/send-money"
}
Path | Description |
---|---|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 403 Forbidden
Content-Type: application/json
{
"timestamp": 1610464313387,
"status": 403,
"error": "Forbidden",
"message": "No message available",
"path": "/client/send-money-3ds"
}
3.4.3. BLIK
General information
BLIK is a popular mobile payment system, enabling users to carry out secure transactions using their smartphones. Integrated within banking apps, BLIK allows for online and in-store payments, ATM withdrawals, and more, through a generated six-digit code, making financial transactions swift and straightforward.
How does it work
Customer choose the BLIK payment method, in order to complete the transaction he has to provide a BLIK code from bank application. The BLIK code is a one-off, 6-digit code, it is valid for 2 minutes. After that time, new one has to be generated. When code is provide it has to be also confirmed in bank app and that ends the transaction.
Example BLIK payment form
For development purposes, please note the following special rule for BLIK codes: Use codes that begin with "777 xxx", to process payment successfully. For codes that begin with any other number, the transaction will be rejected.
3.4.4. Check status
The method allows obtaining a status of multi-currency transaction specified by order-id. Parameter order-id was returned in the previous step (Send money multicurrency).
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
Parameter | Description |
---|---|
|
Unique transaction identifier. |
GET /client/send-money/00549d98-08cb-45d2-8673-4dcafa81f498 HTTP/1.1
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned if the transaction completes successfully. |
|
Returned when transaction was registered for processing. Check status in a while. |
|
Returned when user provides wrong order-id or transaction was failed or was Declined. |
Example HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1123
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : true,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "511796******9169",
"bankName" : "Alior Bank SA"
}
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1260
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : false,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "CASH",
"hiddenCardNumber" : "****************",
"bankName" : ""
},
"merchantSettlementCurrency" : "USD",
"fenigeCommissionInMerchantSettlementCurrency" : 0.05,
"transactionAmountInMerchantSettlementCurrency" : 2.68
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Merchant settlement currency |
|
|
Commission Fenige in merchant settlement currency |
|
|
Transaction amount in merchant settlement currency |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 203 Non-Authoritative Information
After you get 203 you need to check status in a while because we processing this transaction and if you don’t get a response (200 - succeeded or 500 - declined) within 60 seconds then please contact us. |
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain;charset=ISO-8859-1
PAYMENT_TRANSACTION_DECLINED:CODE_05
After receiving these statuses, the transaction was rejected |
Error statuses
Name |
Description |
|
REJECTED - Monitoring rule which is designed to prevent the acceptance of names or surnames that do not contain vowels or consonants |
|
CODE_XX - is MasterCard response code (ISO 8583) |
|
This card is not supported |
|
Card is blocked for 1 hour in Fenige |
|
User is blocked in Fenige |
|
Bin is blocked for 1 hour in Fenige |
|
Funding bank is blocked in Fenige |
|
Payment bank is blocked in Fenige |
|
Funding transaction was declined and payment not send |
|
Payment transaction was declined and funding was reversed |
|
A connection error occurred to Acquirer service |
|
User was found on the stop list |
|
Acceptance network is unavailable |
|
No currently effective rates found in the database |
|
Currency is not supported |
|
Currency is not supported by Merchant |
|
Transaction limit for single transaction exceeded |
|
Daily transaction limit for amount per card exceeded |
|
Daily transaction limit for count per card exceeded |
|
Weekly transaction limit for amount per card exceeded |
|
Monthly transaction limit for amount per card exceeded |
|
Monthly transaction limit for count per card exceeded |
|
Daily cumulative limit per card was exceeded |
|
Monthly cumulative limit per card was exceeded |
|
Daily cumulative limit per merchant transactions using mastercard cards was exceeded |
|
Monthly cumulative limit per merchant transactions using mastercard cards was exceeded |
|
Daily cumulative limit per merchant transactions using visa cards was exceeded |
|
Monthly cumulative limit per merchant transactions using visa cards was exceeded |
|
Daily cumulative limit per merchant transactions using mastercard and visa cards was exceeded |
|
Monthly cumulative limit per merchant transactions using mastercard and visa cards was exceeded |
|
Sender’s card is blocked |
|
Receiver’s card is blocked |
|
User acting as sender is blocked |
|
User acting as receiver is blocked |
|
BIN of sender’s card is blocked |
|
BIN of receiver’s card is blocked |
|
Amount is higher than acceptable limit |
|
Couldn’t established connection to Monitoring service |
|
Some unrecognized error occurred |
|
The transaction user’s personal data verified as incorrect on the verification service. Transaction rejected. |
|
Funding transaction declined - mip response timeout |
|
Payment transaction declined - mip response timeout |
|
Funding process failed and it is need to manual verification of transaction |
|
Payment process failed and it is need to manual verification of transaction |
|
Funding transaction declined - mip_proxy response timeout |
|
Payment transaction declined - mip_proxy response timeout |
|
Amount exceeds current merchant deposit limit |
|
Error transaction not exists |
|
Card was not found |
|
Problem with DC |
|
ERROR_SOMETHING_WRONG returned when the check status method is executed means that the details for the indicated transaction could not be retrieved correctly due to an unexpected error. This does not mean that the transaction was rejected by our system. In case of receiving ERROR_SOMETHING_WRONG status, please do not hesitate to notify our support team in order to determine the correctness of the transaction execution and quickly correct the method error. |
|
This error may occur if card’s country is other than user’s country for USA or CAN transaction for PLAIN model |
|
This error may occur if card’s country is other than user’s country for USA or CAN transaction |
|
This error may occur when system could not get card country code. Most often, the error is caused by a missing card in the parameters received from the card provider. |
|
Province code is not valid for USA or CAN transactions. Please update user profile |
|
Some validation error occurred |
|
This error may occur when merchant tries to make transaction in other model than assigned primarily. For example, if merchant’s model is set as CARD-CARD and then merchant will try to make transaction in CASH-CARD model, will receive error as bellow. |
|
Card expired |
|
The amount sent is too small. Enter a larger amount. |
|
The amount sent is too high. Enter a lower amount. |
|
Restricted funding card country was used. + This error may occur when a merchant uses a sender card issued in a country that is on the list of countries High Risk or country not allowed to perform transactions in Fenige API. Please contact support. |
|
Restricted payment card country was used. + This error may occur when a merchant uses a sender card issued in a country that is on the list of countries High Risk or country not allowed to perform transactions in Fenige API. Please contact support. |
|
Merchant not support the given card provider, please contact support to check merchant configuration |
|
Merchant crypto is not supported outside EEA+UK |
|
System does not allow the execution of transaction with the receiver card country. |
|
System does not allow the execution of transaction with the sender card country. |
|
Geographic scope is not permitted for this transaction |
|
Processing time of transaction was too long, transaction is declined. |
|
Transaction rejected, second transaction with merchant advice code 03 or 21 within 30 days. |
|
Transaction rejected, sender or receiver name contains fraudulent phrase. |
|
Transaction rejected, suspicious sender or receiver name. |
|
Transaction rejected, card country is not supported for merchants crypto. |
|
Transaction card-account rejected, country code in sender object is required for this transactional model |
|
Transaction card-account or cash account rejected, personalId field in sender object is required for this transactional model |
|
Transaction rejected, country of merchant cannot be the same as receiver’s bank code |
3.4.5. Check detailed status
The method allows obtaining a detailed status of multi-currency transaction specified by order-id. Parameter order-id was returned in the previous step (Send money multicurrency).
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
Request
Parameter | Description |
---|---|
|
Unique transaction identifier. |
GET /client/send-money/details/00549d98-08cb-45d2-8673-4dcafa81f498 HTTP/1.1
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Host: java-staging.fenige.pl:8181
Response
Response status
Status | Description |
---|---|
|
Returned if the transaction completes successfully. |
|
Returned when transaction was registered for processing. Check status in a while. |
|
Returned when a transaction related to the given orderId doesn’t exist. |
|
Returned when user provides wrong order-id or transaction was failed or was Declined. |
|
Returned when an internal error occur. |
Example HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1159
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : true,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "511796******9169",
"bankName" : "Alior Bank SA"
},
"transactionStatus" : "APPROVED"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1230
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : false,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "CASH"
},
"transactionStatus" : "APPROVED",
"merchantSettlementCurrency" : "USD",
"fenigeCommissionInMerchantSettlementCurrency" : 0.05,
"transactionAmountInMerchantSettlementCurrency" : 2.68
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Merchant settlement currency |
|
|
Commission Fenige in merchant settlement currency |
|
|
Transaction amount in merchant settlement currency |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 203 Non-Authoritative Information
After you get 203 you need to check status in a while because we processing this transaction and if you don’t get a response (200 - succeeded or 500 - declined) within 60 seconds then please contact us. |
HTTP/1.1 404 Not Found
Content-Type: application/json
Content-Length: 51
{
"errorStatus" : "ERROR_TRANSACTION_NOT_FOUND"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Additional data of the error occurred during a processing of the request |
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
Content-Length: 1287
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : true,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "511796******9169",
"bankName" : "Alior Bank SA"
},
"transactionStatus" : "DECLINED",
"cardBlockType" : "TEMP",
"cardBlockedUntil" : "2024-09-06T10:58:11.540",
"errorStatus" : "ERROR_SENDER_CARD_IS_BLOCKED"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
|
|
Additional data of the error occurred during a processing of the request |
|
|
Card lock type |
|
|
Card’s lock end date |
|
|
Information about the reasons for declined transactions and actions that merchants can take. Occurs only for mastercard and for rejected transactions if Mastercard returns this information |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
Content-Length: 1358
{
"transactionId" : "TRX220132AM",
"amount" : 1000,
"amountInUsDollar" : 268,
"bigDecimalAmount" : 10.0,
"commission" : 200,
"bigDecimalCommission" : 2.0,
"orderId" : "00549d98-08cb-45d2-8673-4dcafa81f498",
"createdDate" : "03-04-2018, 14:01",
"fundingRrn" : "014011103023",
"paymentRrn" : "014011103024",
"arn" : "05411640143500000019325",
"3DS" : false,
"revaluationResult" : {
"revaluationFundingAmount" : 1000,
"bigDecimalRevaluationFundingAmount" : 10.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 1000,
"bigDecimalRevaluationPaymentAmount" : 10.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "John",
"lastName" : "Novak",
"provider" : "MASTERCARD",
"hiddenCardNumber" : "557455******1623",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Caroline",
"lastName" : "Novak",
"provider" : "CASH"
},
"transactionStatus" : "DECLINED",
"merchantSettlementCurrency" : "USD",
"fenigeCommissionInMerchantSettlementCurrency" : 0.05,
"transactionAmountInMerchantSettlementCurrency" : 2.68,
"cardBlockType" : "TEMP",
"cardBlockedUntil" : "2024-09-06T10:58:10.900",
"errorStatus" : "ERROR_SENDER_CARD_IS_BLOCKED"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100] |
|
|
Field informing about the amount of cash transferred in one hundredth of the USD currency. [1USD = 100] |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100] |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Unique transaction identifier. |
|
|
The transactionId field is used for the Merchant to send its own internal transaction identifier. This field is returned in the response from the Check status method and sent by the Webhooks method. @Length(max = 64). Optional |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Acquirer Reference Number |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Detailed information about revaluation between sender currency and receiver currency. |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
|
|
Merchant settlement currency |
|
|
Commission Fenige in merchant settlement currency |
|
|
Transaction amount in merchant settlement currency |
|
|
Status of the transaction (PENDING, APPROVED, DECLINED, REJECTED, REVERSED) |
|
|
The code of the error occurred during a processing of the request |
|
|
Card lock type |
|
|
Card’s lock end date |
|
|
Information about the reasons for declined transactions and actions that merchants can take. Occurs only for mastercard and for declined transactions if Mastercard returns this information |
RevaluationResult
Path | Type | Description |
---|---|---|
revaluationFundingAmount |
Long |
Amount (in pennies) of funding transaction in fundingCurrency |
bigDecimalRevaluationFundingAmount |
BigDecimal |
Amount of funding transaction in fundingCurrency |
fundingCurrency |
String |
Currency code the same as sender’s card currency |
revaluationPaymentAmount |
Long |
Amount (in pennies) of payment transaction in paymentCurrency |
bigDecimalRevaluationPaymentAmount |
BigDecimal |
Amount of payment transaction in paymentCurrency |
paymentCurrency |
String |
Currency code the same as receiver’s card currency |
determineCurrencyRate |
Object (DetermineCurrencyRate) |
Details about conversion |
DetermineCurrencyRate
Path | Type | Description |
---|---|---|
from |
Long |
Currency which was conversion from |
to |
Long |
Resulted currency |
currencyRate |
BigDecimal |
Currency rate |
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Content-Length: 69
{
"errorStatus" : "ERROR_SOMETHING_WRONG - Something went wrong."
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Additional data of the error occurred during a processing of the request |
3.5. Delayed payment
Mastercard and Visa requires for intra-European Economic Area (EEA), plus United Kingdom, for which EMV 3DS must be used subsequent to a valid authorization soft decline DE39=65 (Mastercard)/1A(Visa). To perform a transaction for which the card has previously received CODE_65-Mastercard, CODE_1A-VISA, the transaction must be processed with full EMV 3DS (3DS 2.x) and the authentication status must be 'Y'. Correct flow:
|
3.5.1. Delayed Send Money
The Delayed Send Money functionality provides the ability to perform transactions, where recipient is not known at the time of funding execution. Transaction in the Send Money system consists of Funding and Payment. In order to perform the method that request is described below, we can execute Funding (with Payment for some cases**).
Money specified in the request ('amount' field) will be charged from the Sender's card, but these money will be transferred to the Receiver's card when Receiver is known (After Delayed Payment method execution). In order to make the full flow of the transaction, the Delayed Payment method must be executed. In Delayed Payment methods you should define Receiver of Funding - then transaction will be processed.
*API-TOKEN is required for model when sender is DATACORE type. **See table below with Delayed Send Money models. You can find there information which model executes only Funding or Funding with Payment at the same time.
The API-TOKEN is refreshed each time it is used in the header. The API-TOKEN is refreshed for 30 minutes. |
The maximum time for the execution of Delayed Payment after earlier calling Delayed Send Money is 12 hours. After 12 hours after Funding without Payment, it will be reversed. |
There is 3 attempts to execute Delayed Payment after earlier call Delayed Send Money. |
From January 2021, there is an internal functionality to restrict access for the Merchant to specific method. The Fenige employee can disable access to a given endpoint, then the HTTP status 403 FORBIDDEN will be returned. The Merchant will be informed about each access restriction action. |
When performing authorization, remember that there are currencies with different number of decimal places. For example: VND has no pennies and KWD has three decimal places. Please take this into account in the Amout field. For more information on other currencies, see ISO 4217. |
Quick tour of Delayed Send Money models
Model | Sender | Receiver | Description | Transaction Type |
---|---|---|---|---|
DATACORE_SENDER - DELAYED_RECEIVER |
DATACORE |
DELAYED |
For transactions in this model, we provide the full Sender’s data in the request without card number but with the 'cardId' (card is stored in Fenige Datacenter). The user must get API-TOKEN in the /client/login method. The Receiver’s details are unknown yet, so we are waiting for a Delayed Payment to be made. |
Funding or Funding & Payment |
PLAIN_SENDER - DELAYED_RECEIVER |
PLAIN |
DELAYED |
For transactions in this model, user must provide all the full Sender data in the request. The Receiver’s details are unknown yet, so we are waiting for a Delayed Payment to be made. |
Funding or Funding & Payment |
Delayed Send Money Examples
Requests
POST /client/delayed/send-money HTTP/1.1
Content-Type: application/json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 1008
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"cavvAlgorithm" : "02",
"authenticationStatus" : "Y",
"eci" : "02",
"transactionXId" : "0c1be168-1d0d-422e-acde-fbe737c677a0"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "eda29329-9cba-443b-b4fb-7ef1e25d3db2",
"sender" : {
"type" : "DATACORE",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN"
},
"receiver" : {
"type" : "DELAYED",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"phoneNumber" : "48600300200",
"currency" : "USD"
}
}
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Personal data of Sender. |
receiver |
Object |
Required |
@NotNull |
Personal data of Receiver. |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
outside3ds.cavvAlgorithm |
String |
Optional |
@Optional |
Indicates the algorithm used to generate the AuthenticationCAVV value 0 - HMAC 1 - CVV 2 - CVV with ATN 3 - MasterCard SPA algorithm. |
POST /client/delayed/send-money HTTP/1.1
Content-Type: application/json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
API-TOKEN: d94NYa+xqRrazUPzSgYeJ6qR/MzIOb3IzePb7t9sWds=
Content-Length: 1014
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"cavvAlgorithm" : "02",
"authenticationStatus" : "Y",
"eci" : "02",
"transactionXId" : "6c8a0a92-a67c-4564-a3c5-4e8c050236df"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "0667246f-db7c-49a8-8f90-3bc5c426668a",
"sender" : {
"type" : "DATACORE",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardId" : 1234,
"currency" : "PLN"
},
"receiver" : {
"type" : "DELAYED",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"currency" : "USD"
}
}
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Personal data of Sender. |
receiver |
Object |
Required |
@NotNull |
Personal data of Receiver. |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
outside3ds.cavvAlgorithm |
String |
Optional |
@Optional |
Indicates the algorithm used to generate the AuthenticationCAVV value 0 - HMAC 1 - CVV 2 - CVV with ATN 3 - MasterCard SPA algorithm. |
POST /client/delayed/send-money HTTP/1.1
Content-Type: application/json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1087
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"cavvAlgorithm" : "02",
"authenticationStatus" : "Y",
"eci" : "02",
"transactionXId" : "cfbb6d0a-b7ea-4902-aa10-5b834a33b49a"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "e0ec9738-a2db-4691-a325-7a5d19bad250",
"sender" : {
"type" : "PLAIN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"expirationDate" : "03/26",
"personalId" : "AGC688910",
"currency" : "PLN"
},
"receiver" : {
"type" : "DELAYED",
"firstName" : "Rob",
"lastName" : "Wring",
"birthDate" : "2024-08-28",
"phoneNumber" : "48600300200",
"currency" : "USD"
}
}
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Personal data of Sender. |
receiver |
Object |
Required |
@NotNull |
Personal data of Receiver. |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
outside3ds.cavvAlgorithm |
String |
Optional |
@Optional |
Indicates the algorithm used to generate the AuthenticationCAVV value 0 - HMAC 1 - CVV 2 - CVV with ATN 3 - MasterCard SPA algorithm. |
POST /client/delayed/send-money HTTP/1.1
Content-Type: application/json
Authorization: Basic bWVyY2hhbnQ6cGFzc3dvcmQ=
Content-Length: 1093
Host: java-staging.fenige.pl:8181
{
"amount" : 1000,
"cvc2" : "123",
"merchantUrl" : "https://fenige.pl/payments",
"addressIp" : "192.168.0.1",
"type" : "SENDER",
"outside3ds" : {
"cavv" : "jEu04WZns7pbARAApU4qgNdJTag=",
"cavvAlgorithm" : "02",
"authenticationStatus" : "Y",
"eci" : "02",
"transactionXId" : "b41a43c0-3ef7-4c59-b936-c539779aee5f"
},
"subMerchantName" : "Sub_Merchant",
"subMerchantCountry" : "PL",
"requestId" : "2ebc900d-25fe-4e41-9ce0-25cf17ba42da",
"sender" : {
"type" : "PLAIN",
"firstName" : "Mark",
"lastName" : "Smith",
"street" : "Olszewskiego",
"houseNumber" : "17A",
"city" : "Lublin",
"postalCode" : "20-400",
"flatNumber" : "2",
"email" : "senderEmail@fenige.pl",
"birthDate" : "2024-08-28",
"cardNumber" : "5117964247989169",
"expirationDate" : "03/26",
"personalId" : "AGC688910",
"currency" : "PLN"
},
"receiver" : {
"type" : "DELAYED",
"firstName" : "Rob",
"lastName" : "Wring",
"email" : "receiverEmail@fenige.pl",
"birthDate" : "2024-08-28",
"currency" : "USD"
}
}
Path | Type | Validation | Rule | Description |
---|---|---|---|---|
amount |
Number |
Required |
@NotNull, positive |
The total transfer amount (in pennies) |
cvc2 |
String |
Required |
@Length(min = 3, max = 3) |
Sender card cvc2/cvv2 |
type |
String |
Required |
@NotNull |
Transaction in 'SENDER' or 'RECEIVER' currency, for specific transaction type. CARD_CARD: above, CASH_CARD: RECEIVER, CARD_CASH: SENDER. |
merchantUrl |
String |
Required except CASH-PLAIN transactions. |
@NotNull except CASH-PLAIN |
Merchant identifier such as the business website URL or reverse domain name as presented to the consumer during checkout |
addressIp |
String |
Required except CASH-PLAIN transactions @Must conform to the IPv4 or IPv6 standard. |
@NotNull except CASH-PLAIN |
The IP address of the order of transaction. |
requestId |
String |
Required |
@NotNull |
128 bit number generated by the user, used to identify single transaction. Ensures that the transaction with the given parameter is processed only once. |
subMerchantName |
String |
Optional |
Identifier assigned by the Marketplace to each sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
subMerchantCountry |
String |
Optional |
The field to distinguish the country location of the sub-merchant. Conditional - mandatory only when merchant is configured as marketplace. |
|
sender |
Object |
Required |
@NotNull |
Personal data of Sender. |
receiver |
Object |
Required |
@NotNull |
Personal data of Receiver. |
outside3ds.cavv |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. |
outside3ds.eci |
String |
Required |
@NotNull |
Electronic Commerce Indicator: 5 (Visa) or 2 (SecureCode) - The cardholder was successfully authenticated. 6 (Visa) or 1 (SecureCode) - Authentication was attempted, but the cardholder was not enrolled. Chargeback protection applies. |
outside3ds.authenticationStatus |
String |
Required |
@NotNull |
Authentication status. If AuthenticationStatus is "Y" or "A" then outside 3ds flow will be execute. |
outside3ds.transactionXId |
String |
Required |
@NotNull |
Cardholder Authentication Verification Value. The transactionXId is the field that defines the 3DS version. The presence of this field in the HTTP request specifies that the transaction will be processed with 3DS 2.x. TransactionXId can be obtained by executing the /authentication method. |
outside3ds.cavvAlgorithm |
String |
Optional |
@Optional |
Indicates the algorithm used to generate the AuthenticationCAVV value 0 - HMAC 1 - CVV 2 - CVV with ATN 3 - MasterCard SPA algorithm. |
Response
Response status
Status | Description |
---|---|
|
Delayed Send Money approved for processing and transaction details returned. |
|
Returned list of field name which has validation errors. |
|
- Returned when the transaction with the provided requestId has been registered in the system, but has not yet been completed. The user can retry in a few seconds to get the transaction result. Response body: Empty |
|
Returned when request is incorrect, required fields are missing or the values are not valid. |
|
Returned when API-TOKEN was broken. |
|
Returned when user provides wrong order-id or transaction was failed or was Declined. |
Example HTTP Response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1080
{
"amount" : 2000,
"bigDecimalAmount" : 20.0,
"commission" : 0,
"bigDecimalCommission" : 0,
"orderId" : "2ca14ca1-317d-417f-b9a9-53c2ca334637",
"createdDate" : "09-11-2020, 21:12",
"fundingRrn" : "031420000725",
"paymentRrn" : "031420000725",
"transactionStatus" : "APPROVED",
"responseCode" : "CODE_00",
"revaluationResult" : {
"revaluationFundingAmount" : 2000,
"bigDecimalRevaluationFundingAmount" : 20.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 2000,
"bigDecimalRevaluationPaymentAmount" : 20.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"firstName" : "Rob",
"lastName" : "Wring",
"hiddenCardNumber" : "511796******9169",
"provider" : "MASTERCARD",
"bankName" : "Alior Bank SA"
},
"sender" : {
"firstName" : "Mark",
"lastName" : "Smith",
"hiddenCardNumber" : "511796******9169",
"provider" : "MASTERCARD",
"bankName" : "Alior Bank SA"
},
"3DS" : true
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Unique transaction identifier. |
|
|
Transaction status. |
|
|
Response code. |
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100]. |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100]. |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Payment Retrieval Reference Number. |
|
|
Amount (in pennies) of funding transaction in fundingCurrency. |
|
|
Amount of funding transaction in fundingCurrency. |
|
|
Currency code the same as sender’s card currency. |
|
|
Amount (in pennies) of payment transaction in paymentCurrency. |
|
|
Amount of payment transaction in paymentCurrency. |
|
|
Currency code the same as receiver’s card currency. |
|
|
Currency which was conversion from. |
|
|
Resulted currency. |
|
|
Currency rate. |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 943
{
"amount" : 2000,
"bigDecimalAmount" : 20.0,
"commission" : 0,
"bigDecimalCommission" : 0,
"orderId" : "291a6279-c7f6-43ac-8aca-9809abd01e96",
"createdDate" : "09-11-2020, 21:12",
"fundingRrn" : "031420000725",
"transactionStatus" : "APPROVED_WAITING_FOR_RECEIVER",
"responseCode" : "CODE_00",
"revaluationResult" : {
"revaluationFundingAmount" : 2000,
"bigDecimalRevaluationFundingAmount" : 20.0,
"fundingCurrency" : "PLN",
"revaluationPaymentAmount" : 2000,
"bigDecimalRevaluationPaymentAmount" : 20.0,
"paymentCurrency" : "PLN",
"determineCurrencyRate" : {
"from" : "PLN",
"to" : "PLN",
"currencyRate" : "1"
}
},
"receiver" : {
"email" : "receiver@fenige.pl"
},
"sender" : {
"firstName" : "Mark",
"lastName" : "Smith",
"hiddenCardNumber" : "511796******9169",
"provider" : "MASTERCARD",
"bankName" : "Alior Bank SA"
},
"3DS" : true
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Unique transaction identifier. |
|
|
Transaction status. |
|
|
Response code. |
|
|
Field informing about the amount of cash transferred in one hundredth of the currency. [1PLN = 100]. |
|
|
Field informing about the amount of cash transferred with decimal precision. |
|
|
This is the amount of commission that has been added to the transaction in hundredths. [1 PLN = 100]. |
|
|
This is the amount of commission that was added to the transaction at 0.01 currency. |
|
|
Date of transaction. |
|
|
Funding Retrieval Reference Number. |
|
|
Amount (in pennies) of funding transaction in fundingCurrency. |
|
|
Amount of funding transaction in fundingCurrency. |
|
|
Currency code the same as sender’s card currency. |
|
|
Amount (in pennies) of payment transaction in paymentCurrency. |
|
|
Amount of payment transaction in paymentCurrency. |
|
|
Currency code the same as receiver’s card currency. |
|
|
Currency which was conversion from. |
|
|
Resulted currency. |
|
|
Currency rate. |
|
|
Value: true/false determines if transaction was processed with 3ds |
|
|
Personal data of the person to whom the transfer is addressed. |
|
|
Personal data of the person who performs the transfer of cash. |
HTTP/1.1 400 Bad Request
Content-Type: application/json
Content-Length: 104
{
"error" : {
"status" : "ERROR_INVALID_JSON",
"message" : "Some properties are invalid"
}
}
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain;charset=ISO-8859-1
{
“status”: “ERROR_FUNDING_FAILED”,
“error”: {
“message”: “FUNDING_TRANSACTION_DECLINED:CODE_05”
}
}
After receiving these statuses, the transaction was rejected |
Error statuses
Name | Description |
---|---|
|
CODE_XX - is MasterCard response code (ISO 8583) |
|
This card is not supported |
|
Card is blocked for 1 hour in Fenige |
|
User is blocked in Fenige |
|
API-TOKEN header not found in request with DATACORE/PHONE model in sender or receiver |
|
Bin is blocked for 1 hour in Fenige |
|
Funding bank is blocked in Fenige |
|
Payment bank is blocked in Fenige |
|
Funding transaction was declined and payment not send |
|
Payment transaction was declined and funding was reversed |
|
A connection error occurred to Acquirer service |
|
User was found on the stop list |
|
Acceptance network is unavailable |
|
No currently effective rates found in the database |
|
Currency is not supported |
|
Currency is not supported by Merchant |
|
Sender’s card is blocked |
|
Receiver’s card is blocked |
|