Tutorial: Create International SWIFT Wire Transfers

📘

To execute a SWIFT transfer, send a POST request to the MBanq Cloud API with the following details:

curl --location 'https://api.stage.mbanq.cloud/v1/payments' \
--header 'tenantId: default' \
--header 'instance: default' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ2aW5vZDExIiwidXNlcl9qd3RfbG9naW4iOnRydWUsImlzQWNjZXNzVG9rZW4iOnRydWUsImV4cCI6MTc1MDI0NDAxNiwidXNlcklkIjo4ODAsImlhdCI6MTc1MDI0MDQxNiwib2F1dGhfY2xpZW50X2lkIjoiYmFja29mZmljZSJ9.ANwRfaN-Vm7veTUNKCPOvfvgCphgOCYC1I5uvB-lu2g0pbsqMVEQYwPl_uOuhXgvKZ5BQC1p1SvQcgih_8FGpA' \
--data '{
            "paymentType": "CREDIT",
            "paymentRail": "SWIFT",
            "amount": 10,

            "originator": {
              "accountId": "0000602"
            },
            "recipient": {

              "accountNumber": "4527", 
              "name": "Jessica Friedrichs",              

                  "accountType": "CHECKING",
              "address": {
                "line1": "415 N Oakhurst", 

                "stateCode": "AZ",
                "countryCode": "US",	   
                "postalCode": "85288",
                      "city": "Banglore"
              },
              "bankInformation": {               
                "swiftCode": "BUKBGB22" ,
                      "agent": {
            "name": "Citibank Luxembourg",
            "identifier": "CITILULX",
            "country": "LU",
            "address": [
              "31 Z.A. Bourmicht",
              "L-8070 Bertrange"
            ],
            "stateOrProvince": "Luxembourg District",
            "city": "Bertrange",
            "postalCode": "8070"
            }

              }
            },
            "reference": "Paramguru Payment",         
            "forFurtherCredit" : "MV VYSYA BANK ACC NUM1234656" 
        }'
ParameterValue TypeDefinition
paymentTypeStringIndicates the type of transaction, e.g., "CREDIT" for sending funds.
paymentRailStringSpecifies the payment network/rail, here "SWIFT".
amountNumericAmount of money to be transferred.
originator.accountIdStringAccount ID of the sender/originator of the payment.
recipient.accountNumberStringRecipient’s bank account number.
recipient.nameStringFull legal name of the recipient.
recipient.accountTypeStringType of recipient's account, e.g., "CHECKING"
recipient.address.line1StringAddress line 1 of the recipient’s address.
recipient.address.stateCodeStringState code where the recipient resides (e.g., "AZ").
recipient.address.countryCodeStringCountry code of Recipient
recipient.address.postalCodeStringPostal or ZIP code of the recipient’s address.
recipient.address.cityStringCity of the recipient’s address.
recipient.bankInformation.swiftCodeStringSWIFT code for the recipient’s bank.
recipient.bankInformation.agent.nameStringName of the intermediary (agent) bank handling SWIFT transfer.
recipient.bankInformation.agent.identifierStringIdentifier (usually SWIFT code) of the agent bank.
recipient.bankInformation.agent.countryStringCountry code of the agent bank
recipient.bankInformation.agent.addressListDetailed Address of the agent bank
recipient.bankInformation.agent.stateOrProvinceStringState or province of the agent bank.
recipient.bankInformation.agent.cityStringCity where the agent bank is located.
recipient.bankInformation.agent.postalCodeStringPostal code of the agent bank.
referenceStringFree-text purpose or description of the transaction.
forFurtherCreditStringAdditional instruction to credit a third-party account (nested account).

If the request is successful, you will receive a response containing ClientId, PaymentId etc. mentioned below.

{
    "id": "158898",
    "clientId": 770,
    "resourceId": 158898,
    "resourceIdentifier": "1750308710648cX"
}
ParameterValue TypeDefinition
idstringThe unique identifier of the data.
clientIdLongClient Id
resourceIdLongPayment Id
resourceIdentifierStringResource Identitfier

Please note that additional details and error handling might be required based on the specific implementation and business requirements.