Skip to content

Instantly share code, notes, and snippets.

@hprobotic
Last active July 21, 2023 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hprobotic/7c7b7aa1c47ccdb7a7e91fd028c6649e to your computer and use it in GitHub Desktop.
Save hprobotic/7c7b7aa1c47ccdb7a7e91fd028c6649e to your computer and use it in GitHub Desktop.

UAT Connection test

MCP

1. Payload

{
    "header": {
        "msgId": "202307212MXIK1D9HSJM",
        "orgId": "HKREAP02",
        "timeStamp": "2023-07-21T12:15:49.585",
        "ctry": "HK",
        "noOfTxs": "1",
        "totalTxnAmount": "123.00"
    },
    "txnInfoDetails": {
        "txnInfo": [
            {
                "customerReference": "16006 7uPm",
                "txnType": "MCP",
                "txnDate": "2023-07-21",
                "txnCcy": "HKD",
                "debitAccountCcy": "HKD",
                "txnAmount": "123.00",
                "oriPayerBic": "DBSSHKHHXXX",
                "senderParty": {
                    "name": "Reap (Remit) Limited",
                    "accountNo": "001716676",
                    "oriPayerIdNo": "HKMSO4536345233",
                    "oriPayerName": "Test Company",
                    "oriPayerAddresses": [
                        {
                            "address": "erteryrey"
                        },
                        {
                            "address": "eryeryeryre"
                        },
                        {
                            "address": "Quarry Bay, Hong Kong Island"
                        }
                    ],
                    "oriPayerBic": "DBSSHKHHXXX",
                    "bankCtryCode": "HK"
                },
                "receivingParty": {
                    "name": "REAP TEST PAYOUT ACC1",
                    "accountNo": "30012345678",
                    "swiftBic": "DBSSHKHHXXX",
                    "bankCtryCode": "HK",
                    "beneficiaryAddresses": [
                        {
                            "address": "Boulevard de Constance"
                        },
                        {
                            "address": "Fontainebleau"
                        },
                        {
                            "address": "FR"
                        }
                    ]
                },
                "adviseDelivery": {
                    "mode": "EMAL",
                    "emails": [
                        {
                            "email": "jason+batchtest@reap.hk"
                        }
                    ]
                },
                "rmtInf": {
                    "paymentDetails": [
                        {
                            "paymentDetail": "7uPm704m2PHZjMbFKRG0"
                        }
                    ],
                    "clientReferences": [
                        {
                            "clientReference": "16006 7uPm"
                        }
                    ],
                    "invoiceDetails": [
                        {
                            "invoice": "16006 7uPm"
                        }
                    ]
                },
                "chargeBearer": "DEBT"
            }
        ]
    }
}

2. Response

ACK 1

[{'responseType': 'ACK1', 'msgRefId': 'MHK2307210000030', 'txnStatus': 'ACTC', 'txnStatusDescription': 'Request Received'}]

ACK 2

{'header': {'msgId': '202307212MXIK1D9HSJM', 'orgId': 'HKREAP02', 'timeStamp': '2023-07-21T12:16:58.016', 'ctry': 'HK', 'noOfTxs': '1', 'totalTxnAmount': '123.00'}, 'txnResponses': [{'responseType': 'ACK2', 'customerReference': '16006 7uPm', 'msgRefId': 'MHK2307210000030', 'txnRefId': 'RMCH2307210000028', 'txnType': 'MCP', 'txnStatus': 'ACCP', 'txnStatusDescription': 'Pending Bank processing'}]}

ACK 3

{'header': {'msgId': '202307212MXIK1D9HSJM', 'orgId': 'HKREAP02', 'timeStamp': '2023-07-21T15:39:58.467', 'ctry': 'HK', 'noOfTxs': '1', 'totalTxnAmount': '123.00'}, 'txnResponses': [{'responseType': 'ACK3', 'customerReference': '16006 7uPm', 'msgRefId': 'MHK2307210000030', 'txnRefId': 'RMCH2307210000028', 'bankReference': 'RMCH2310000028', 'txnType': 'MCP', 'txnStatus': 'ACWC', 'txnStatusDescription': 'Completed with Change', 'txnCcy': 'HKD', 'txnAmount': '123.0', 'debitAccountCcy': 'HKD', 'tranSettlementDt': '2023-07-21T00:00:00', 'tranSettlementAmt': '123.00', 'fxContractRef1': '', 'fxAmountUtilized1': '0.0', 'fxContractRef2': '', 'fxAmountUtilized2': '0.0', 'chargeBearer': 'SHA', 'debitAccountForBankCharges': '30012345678', 'chargesCcy': 'HKD', 'chargesAmount': '0', 'senderParty': {'name': 'Reap (Remit) Limited'}, 'receivingParty': {'name': 'REAP TEST PAYOUT ACC1', 'accountNo': '30012345678', 'bankCtryCode': 'HK', 'swiftBic': 'DBSSHKHHXXX', 'beneficiaryAddresses': [{'address': 'Boulevard de Constance'}, {'address': 'Fontainebleau'}, {'address': 'FR'}]}}]}

MTT

1. Payload

{
    "header": {
        "msgId": "20230721UIPQ7JQWAW47",
        "orgId": "HKREAP02",
        "timeStamp": "2023-07-21T11:01:37.134",
        "ctry": "HK",
        "noOfTxs": "1",
        "totalTxnAmount": "123.00"
    },
    "txnInfoDetails": {
        "txnInfo": [
            {
                "customerReference": "16006 M3VI",
                "txnType": "MTT",
                "txnDate": "2023-07-21",
                "txnCcy": "USD",
                "debitAccountCcy": "USD",
                "txnAmount": "123.00",
                "oriPayerBic": "DBSSHKHHXXX",
                "senderParty": {
                    "name": "Reap (Remit) Limited",
                    "accountNo": "001716667",
                    "oriPayerIdNo": "HKMSO4536345233",
                    "oriPayerName": "Test Company",
                    "oriPayerAddresses": [
                        {
                            "address": "erteryrey"
                        },
                        {
                            "address": "eryeryeryre"
                        },
                        {
                            "address": "Quarry Bay, Hong Kong Island"
                        }
                    ],
                    "oriPayerBic": "DBSSHKHHXXX",
                    "bankCtryCode": "HK"
                },
                "receivingParty": {
                    "name": "REAP TEST PAYOUT ACC1",
                    "accountNo": "30012345678",
                    "swiftBic": "DBSSHKHHXXX",
                    "bankCtryCode": "HK",
                    "beneficiaryAddresses": [
                        {
                            "address": "Boulevard de Constance"
                        },
                        {
                            "address": "Fontainebleau"
                        },
                        {
                            "address": "FR"
                        }
                    ]
                },
                "adviseDelivery": {
                    "mode": "EMAL",
                    "emails": [
                        {
                            "email": "jason+batchtest@reap.hk"
                        }
                    ]
                },
                "rmtInf": {
                    "paymentDetails": [
                        {
                            "paymentDetail": "M3VIZL3Qw9dCXAMS6TjK"
                        }
                    ],
                    "clientReferences": [
                        {
                            "clientReference": "16006 M3VI"
                        }
                    ],
                    "invoiceDetails": [
                        {
                            "invoice": "16006 M3VI"
                        }
                    ]
                },
                "chargeBearer": "DEBT"
            }
        ]
    }
}

2. Response

ACK 1

[{'responseType': 'ACK1', 'msgRefId': 'MHK2307210000016', 'txnStatus': 'ACTC', 'txnStatusDescription': 'Request Received'}]

ACK 2

{'header': {'msgId': '20230721UIPQ7JQWAW47', 'orgId': 'HKREAP02', 'timeStamp': '2023-07-21T11:02:11.096', 'ctry': 'HK', 'noOfTxs': '1', 'totalTxnAmount': '123.00'}, 'txnResponses': [{'responseType': 'ACK2', 'customerReference': '16006 M3VI', 'msgRefId': 'MHK2307210000016', 'txnRefId': 'RMTH2307210000014', 'txnType': 'MTT', 'txnStatus': 'ACCP', 'txnStatusDescription': 'Pending Bank processing'}]}

ACK 3

{'header': {'msgId': '20230721UIPQ7JQWAW47', 'orgId': 'HKREAP02', 'timeStamp': '2023-07-21T15:40:09.828', 'ctry': 'HK', 'noOfTxs': '1', 'totalTxnAmount': '123.00'}, 'txnResponses': [{'responseType': 'ACK3', 'customerReference': '16006 M3VI', 'msgRefId': 'MHK2307210000016', 'txnRefId': 'RMTH2307210000014', 'bankReference': 'RMTH2310000014', 'txnType': 'MTT', 'txnStatus': 'ACWC', 'txnStatusDescription': 'Completed with Change', 'txnCcy': 'USD', 'txnAmount': '123.0', 'debitAccountCcy': 'USD', 'tranSettlementDt': '2023-07-21T00:00:00', 'tranSettlementAmt': '123.00', 'fxContractRef1': '', 'fxAmountUtilized1': '0.0', 'fxContractRef2': '', 'fxAmountUtilized2': '0.0', 'chargeBearer': 'SHA', 'debitAccountForBankCharges': '30012345678', 'chargesCcy': 'USD', 'chargesAmount': '0', 'senderParty': {'name': 'Reap (Remit) Limited'}, 'receivingParty': {'name': 'REAP TEST PAYOUT ACC1', 'accountNo': '30012345678', 'bankCtryCode': 'HK', 'swiftBic': 'DBSSHKHHXXX', 'beneficiaryAddresses': [{'address': 'Boulevard de Constance'}, {'address': 'Fontainebleau'}, {'address': 'FR'}]}}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment