question

Shalabh Jain Egregore avatar image
Shalabh Jain Egregore asked ·

IN-PROGRESS eventStatus for Outstanding claim of an Import Letter of Credit

While requesting for Outstanding claim with APPROVAL, I am getting IN-PROGRESS eventStatus, how can I get COMPLETED as eventStatus?


Request:

curl --location --request POST 'https://api.fusionfabric.cloud/corporate/trade-finance/import-letter-of-credit/v1/import-letter-of-credit/outstanding-claims' \
--header 'Authorization: <masked token>' \
--header 'Content-Type: application/json' \
--header 'Cookie: <masked cookie>' \
--data-raw '{
    "inputBranch": "NYNY",
    "behalfOfBranch": "NYNY",
    "actionItems": [
        {
            "messageData": "Finance details have been arranged for this transaction. Contact the Finance department with reference 123456789 for further information",
            "messageDescription": "Input action required",
            "messageInfo": "'\''Document cross-check done by J.D.'\'' ",
            "messageNumber": "00001",
            "actioned": true
        }
    ],
    "responseType": "APPROVAL",
    "claimReference": "CLM001",
    "sender": {
        "customerId": "ABC"
    },
    "narrative": [
        {
            "line": "This is a narrative."
        },
        {
            "line": "line 2"
        },
        {
            "line": "line 3"
        }
    ],
    "refusalNarrative": [
        {
            "line": "This is a refusal narrative."
        },
        {
            "line": "line 2"
        },
        {
            "line": "line 3"
        }
    ],
    "owningTransactionBankReference": "ILC/MBW/11/3244",
    "masterId": "403"
}'

Response

{
    "id": "MBWW-33741-70310",
    "masterStatus": "ACTIVE",
    "eventStatus": "IN-PROGRESS",
    "owningTransactionBankEventReference": "POC001",
    "inputBranch": "NYNY",
    "behalfOfBranch": "NYNY",
    "attachments": [
        {
            "docId": "906af04f3c6ef123:-246bc7cd:16daaceb637:5099",
            "dmsId": "INTERNAL",
            "docType": "BOL",
            "description": "Bill of Lading for ILC001",
            "isBankDocInternal": true,
            "batchId": "3134"
        }
    ],
    "actionItems": [
        {
            "messageData": "Finance details have been arranged for this transaction. Contact the Finance department with reference 123456789 for further information",
            "messageDescription": "Input action required",
            "messageInfo": "'Document cross-check done by J.D.'",
            "messageNumber": "00001",
            "actioned": true
        }
    ],
    "responseActionId": "RP",
    "claimReference": "CLM001",
    "sender": {
        "customerId": "ABC",
        "nameAndAddress": {
            "name": "ABC INDUSTRIES LTD",
            "addressLine1": "SLOUGH ESTATES",
            "addressLine2": "BATH ROAD",
            "addressLine3": "SLOUGH"
        },
        "email": "customer@misys.com"
    },
    "narrative": [
        {
            "line": "This is a narrative."
        },
        {
            "line": "line 2"
        },
        {
            "line": "line 3"
        }
    ],
    "refusalNarrative": [
        {
            "line": "This is a refusal narrative."
        },
        {
            "line": "line 2"
        },
        {
            "line": "line 3"
        }
    ],
    "owningTransactionBankReference": "ILC/MBW/11/3244",
    "masterId": "33741"
}


API - Corporate Banking
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Fu Annie avatar image
Fu Annie answered ·

Hello Shalabh,


The event status could be In-progress, completed or aborted. It really depends on which stage of the process the transaction is in. The bank officers have to do some scrutiny and approvals first before the transaction is completed.


I think the confusion might’ve stemmed from the initial event (Issue event under Import letter of credit) being Completed almost instantly upon API request. In a real scenario, this will not be the case because the bank personnel will check the details first and it’ll undergo several approvals. It isn’t completed instantaneously. The initial events in the PROD environment are configured to be autocompleted because these have to be completed first in order for the succeeding events (such as Amend, Claim Received, and others) to be created.


You see, when you send an ILC Amend transaction and the Issue event has not been completed yet – TI Plus will return an error – making the postman test not work as intended. That’s why we are autocompleting Issuance events just so that we can initiate an Amend event.

Because of this special scenario, since this is just for the intention of testing, we’ve also made exceptions for the following transactions with the input branch = LOND.


So, please change in the json input, and this should make the transactions autocomplete for Issue, Amend, Claim Received and Outstanding Claim.


"inputBranch": "LOND",


We has a sequential list of events for ILC:

1) Issue (Initial event)

2) Amend

3) Claim received

4) Outstanding Claim


Issue an ILC,

1614933685166.png


Amend an ILC,

1614934247264.jpeg

Claims Received of an ILC,

1614934265801.jpeg

Outstanding claim of an ILC:

os.png


Best Regards,

Annie Fu


1614933685166.png (65.8 KiB)
1614933806670.png (115.6 KiB)
1614933822890.png (115.6 KiB)
1614933849362.png (115.6 KiB)
os.png (56.7 KiB)
1614934247264.jpeg (60.6 KiB)
1614934265801.jpeg (58.0 KiB)
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.