NAV
Shell JavaScript

Introduction

RootAnt Open API Introduction Related Documents

By understanding the following information, you can easily access the application sme using the API provided by RootAnt

SME Finance

Create Application

Create Application

curl --location --request POST 'https://uat-api.goant.sg/loan/api/sme/loan/create' \
--header 'Content-Type: application/json' \
--data-raw '{
    "contact_person": "GoAnt",
    "position": "GoAnt",
    "email": "GoAnt@Sg.com",
    "phone": "80000000",
    "product_id": 1,
    "external_info": {
        "uen": "53149769X",
        "reg_street_name": "ANSON ROAD",
        "entity_name": "1 1 1 ABSOLUTE SINGAPORE SOCIAL ESCORT SERVICES",
        "entity_type": "BN",
        "reg_postal_code": "079903",
        "uen_status": "R",
        "origin": "uen"
    }
}'
var data = JSON.stringify({
    "contact_person": "GoAnt",
    "position": "GoAnt",
    "email": "GoAnt@Sg.com",
    "phone": "80000000",
    "product_id": 1,
    "external_info": {
        "uen": "53149769X",
        "reg_street_name": "ANSON ROAD",
        "entity_name": "1 1 1 ABSOLUTE SINGAPORE SOCIAL ESCORT SERVICES",
        "entity_type": "BN",
        "reg_postal_code": "079903",
        "uen_status": "R",
        "origin": "uen"
    }
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
    if (this.readyState === 4) {
        console.log(this.responseText);
    }
});

xhr.open("POST", "https://uat-api.goant.sg/loan/api/sme/loan/create");
xhr.setRequestHeader("Content-Type", "application/json");

xhr.send(data);

HTTP request response results are as follows:

{

    "code": 0,
    "data": {
        "uid": "NuGtzArXnMAdZ98-2tlwf",
        "name": "GoAnt",
        "account": "S200616-0000-198",
        "email": "GoAnt@Sg.com",
        "phone": "80000000",
        "status": 1,
        "type": "user",
        "cid": "1OR6nLLJQYX83IlwnYiUv",
        "company_name": "1 1 1 ABSOLUTE SINGAPORE SOCIAL ESCORT SERVICES",
        "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwMDU1OSwiZXhwaXJlcyI6MTU5MjMwNDE1OX0sImlhdCI6MTU5MjMwMDU1OX0.lPiJW9JpclTqC4uO0_4pyNnlivOSPJqYXGgoqXoK-3g"
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true

}

HTTP Request

POST https://uat-api.goant.sg/loan/api/sme/loan/create

Parameter Type Description
contact_person string Name of contact person
position string Position in organisation
email string Email address
phone string Phone number
product_id integer wcl:1 , tbl:2
external_info object Company Information

external_info description:

Parameter Type Description
uen string Business Registration No (UEN)
reg_street_name string Registered address of the company
entity_name string Name of business entity
entity_type string Entity type
reg_postal_code string Registered postal code of the company
uen_status string uen status
origin string data origin (uen/myinfo)

HTTP Response

Loan Demand Step

Create Loan Demand

curl --location --request POST 'https://uat-api.goant.sg/loan/api/sme/loanDemand/create' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwMDU1OSwiZXhwaXJlcyI6MTU5MjMwNDE1OX0sImlhdCI6MTU5MjMwMDU1OX0.lPiJW9JpclTqC4uO0_4pyNnlivOSPJqYXGgoqXoK-3g' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pfi_id": "D6QBP7MwZFY_jdV1PQnhn",
    "product_id": 1,
    "loan_amount": 1,
    "loan_term_unit": "years",
    "loan_term": 1,
    "declaration_on_behalf": true,
    "guarantor_select": [],
    "guarantors": [{
        "guarantor_name":"Test",
        "phone_number":"80000000",
        "industry_experience_years":1,
        "management_experience_years":1,
        "occupation":"test",
        "residence":"Landed",
        "comfirm":true,
        "new_guarantor": true,
        "key_decision_maker": true
    }],
    "status": true
}'
var data = JSON.stringify({
    "pfi_id": "D6QBP7MwZFY_jdV1PQnhn",
    "product_id": 1,
    "loan_amount": 1,
    "loan_term_unit": "years",
    "loan_term": 1,
    "declaration_on_behalf": true,
    "guarantor_select": [],
    "guarantors": [{
        "guarantor_name": "Test",
        "phone_number": "80000000",
        "industry_experience_years": 1,
        "management_experience_years": 1,
        "occupation": "test",
        "residence": "Landed",
        "comfirm": true,
        "new_guarantor": true,
        "key_decision_maker": true
    }],
    "status": true
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
    if (this.readyState === 4) {
        console.log(this.responseText);
    }
});

xhr.open("POST", "https://uat-api.goant.sg/loan/api/sme/loanDemand/create");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwMDU1OSwiZXhwaXJlcyI6MTU5MjMwNDE1OX0sImlhdCI6MTU5MjMwMDU1OX0.lPiJW9JpclTqC4uO0_4pyNnlivOSPJqYXGgoqXoK-3g");
xhr.setRequestHeader("Content-Type", "application/json");

xhr.send(data);

HTTP request response results are as follows:

{

    "code": 0,
    "data": {},
    "message": "success",
    "messageDetail": "Success",
    "success": true

}

HTTP Request

POST https://uat-api.goant.sg/loan/api/sme/loanDemand/create

Parameter Type Description
pfi_id string Ffi Id
product_id integer wcl:1 , tbl:2
loan_amount integer Loan amount
loan_term_unit string years/months
loan_term integer Loan term
declaration_on_behalf boolean confirm the Declaration
guarantor_select array Myinfo guarantor
guarantors array Guarantors Information
status boolean Save:false Next:true

guarantors description:

Parameter Type Description
guarantor_name string Guarantor Name
phone_number string Phone numbe
industry_experience_years string Years of industry experience
management_experience_years string Years of management experience
occupation string Occupation
residence string Residence
comfirm boolean confirm that consent
new_guarantor boolean is data from myinfo
key_decision_maker boolean Key decision maker(Only one guarantor can be true

HTTP Response

Business Information Step

Create Business Information

curl --location --request POST 'https://uat-api.goant.sg/loan/api/sme/businessInformation/create' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwNDgwNywiZXhwaXJlcyI6MTU5MjMwODQwN30sImlhdCI6MTU5MjMwNDgwN30.IC1u6uSXI10jC3l-JK0deCIoX0jtjH26VaZ9yQZpXTM' \
--header 'Content-Type: application/json' \
--data-raw '{
    "uen": "201818387D",
    "in_singapore": true,
    "registered_address": "1 Orchard Turn,#04-05 ION Orchard,Singapore 238801",
    "office": "owned",
    "principle_activities": "das",
    "operationg_in_singapore": true,
    "active_years": 4,
    "employees_number": 1,
    "financial_inforamtion": [
        {
            "particular_year": "2017",
            "total_sales": 1,
            "net_profit": 3,
            "iras": 2
        },
        {
            "particular_year": "2018",
            "total_sales": 2,
            "net_profit": 1,
            "iras": 3
        },
        {
            "particular_year": "2019",
            "total_sales": 2,
            "net_profit": 2,
            "iras": 2
        }
    ],
    "beneficial_shareholders": [
        {
            "name": "shareholders1",
            "identify_no": "2",
            "sg_pr": true,
            "shareholding": 3
        }
    ],
    "existing_borrowings_information": [
        {
            "bank_name": "Others",
            "other_bank_name": "2",
            "loan_type": "Hire Purchase",
            "other_loan_type": "",
            "security": "None",
            "instaollment": "123",
            "loan_amount": 2
        }
    ],
    "confirm": true,
    "status": true
}'
var data = JSON.stringify({
    "uen": "201818387D",
    "in_singapore": true,
    "registered_address": "1 Orchard Turn,#04-05 ION Orchard,Singapore 238801",
    "office": "owned",
    "principle_activities": "das",
    "operationg_in_singapore": true,
    "active_years": 4,
    "employees_number": 1,
    "financial_inforamtion": [{
        "particular_year": "2017",
        "total_sales": 1,
        "net_profit": 3,
        "iras": 2
    }, {
        "particular_year": "2018",
        "total_sales": 2,
        "net_profit": 1,
        "iras": 3
    }, {
        "particular_year": "2019",
        "total_sales": 2,
        "net_profit": 2,
        "iras": 2
    }],
    "beneficial_shareholders": [{
        "name": "shareholders1",
        "identify_no": "2",
        "sg_pr": true,
        "shareholding": 3
    }],
    "existing_borrowings_information": [{
        "bank_name": "Others",
        "other_bank_name": "2",
        "loan_type": "Hire Purchase",
        "other_loan_type": "",
        "security": "None",
        "instaollment": "123",
        "loan_amount": 2
    }],
    "confirm": true,
    "status": true
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
    if (this.readyState === 4) {
        console.log(this.responseText);
    }
});

xhr.open("POST", "https://uat-api.goant.sg/loan/api/sme/businessInformation/create");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwNDgwNywiZXhwaXJlcyI6MTU5MjMwODQwN30sImlhdCI6MTU5MjMwNDgwN30.IC1u6uSXI10jC3l-JK0deCIoX0jtjH26VaZ9yQZpXTM");
xhr.setRequestHeader("Content-Type", "application/json");

xhr.send(data);

HTTP request response results are as follows:

{

    "code": 0,
    "data": {},
    "message": "success",
    "messageDetail": "Success",
    "success": true

}

HTTP Request

POST https://uat-api.goant.sg/loan/api/sme/businessInformation/create

Parameter Type Description
uen string Business Registration No (UEN)
in_singapore boolean Is the Company a registered entity in Singapore
registered_address string Registered address of the company
office string Is the office owned / rented / mortgaged?
principle_activities string Principle activities of the company
operationg_in_singapore boolean Active operating activities in Singapore
active_years interger Years in active operation (>3)
employees_number interger Total number of employees (<200)
financial_inforamtion array Financial Information
beneficial_shareholders array shareholder Information
existing_borrowings_information array Existing Borrowings Information
confirm boolean confirm the authenticity of all the above information
status boolean Save:false Next:true

financial_inforamtion description:

Parameter Type Description
particular_year string 2017,2018,2019
total_sales interger Total Sales Sales < S$100m
net_profit interger Net Profit Net Profit > 0
iras interger IRAS tax payable IRAS tax payable > 0

beneficial_shareholders description:

Parameter Type Description
name string Names of ultimate beneficial shareholders
identify_no string Identity No
sg_pr boolean SG/PR
shareholding number Shareholding

existing_borrowings_information description:

Parameter Type Description
bank_name string Name of bank
other_bank_name string Name of other bank
loan_type string Type of loan
other_loan_type string Type of loan
security string Security provided
instaollment string Monthly installment (in SGD)
loan_amount interger Amount of loan (in SGD)

HTTP Response

Submit Documents Step

Create Submit Documents

curl --location --request POST 'https://uat-api.goant.sg/loan/api/sme/submitDocuments/create' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwNDgwNywiZXhwaXJlcyI6MTU5MjMwODQwN30sImlhdCI6MTU5MjMwNDgwN30.IC1u6uSXI10jC3l-JK0deCIoX0jtjH26VaZ9yQZpXTM' \
--header 'Content-Type: application/json' \
--data-raw '{
    "lender": "document/S200616-0000-198/2020/0616/测试用.docx",
    "address": "document/S200616-0000-198/2020/0616/测试用.docx",
    "license": "document/S200616-0000-198/2020/0616/测试用.docx",
    "bank_statements": "document/S200616-0000-198/2020/0616/测试用.docx",
    "balance_sheet": "document/S200616-0000-198/2020/0616/测试用.docx",
    "income": "document/S200616-0000-198/2020/0616/测试用.docx",
    "sales": "document/S200616-0000-198/2020/0616/测试用.docx",
    "collateral_ownership": "document/S200616-0000-198/2020/0616/测试用.docx",
    "affiliations": "document/S200616-0000-198/2020/0616/测试用.docx",
    "projections": "document/S200616-0000-198/2020/0616/测试用.docx",
    "agreements": "document/S200616-0000-198/2020/0616/测试用.docx",
    "overview": "document/S200616-0000-198/2020/0616/测试用.docx",
    "bank_ids": [
        "DN_XDQXCzsNH6rBvFDsfD"
    ],
    "additional_documents": [
        {
            "cid": "DN_XDQXCzsNH6rBvFDsfD",
            "document_id": 1,
            "company_name": "CIMB",
            "document_name": "test",
            "document_path": "document/S200616-0000-198/2020/0616/测试用.docx"
        }
    ],
    "other_document_name": "test",
    "other_document_path": "document/S200616-0000-198/2020/0616/测试用.docx",
    "status": true
}'
var data = JSON.stringify({"lender":"document/S200616-0000-198/2020/0616/测试用.docx","address":"document/S200616-0000-198/2020/0616/测试用.docx","license":"document/S200616-0000-198/2020/0616/测试用.docx","bank_statements":"document/S200616-0000-198/2020/0616/测试用.docx","balance_sheet":"document/S200616-0000-198/2020/0616/测试用.docx","income":"document/S200616-0000-198/2020/0616/测试用.docx","sales":"document/S200616-0000-198/2020/0616/测试用.docx","collateral_ownership":"document/S200616-0000-198/2020/0616/测试用.docx","affiliations":"document/S200616-0000-198/2020/0616/测试用.docx","projections":"document/S200616-0000-198/2020/0616/测试用.docx","agreements":"document/S200616-0000-198/2020/0616/测试用.docx","overview":"document/S200616-0000-198/2020/0616/测试用.docx","bank_ids":["DN_XDQXCzsNH6rBvFDsfD"],"additional_documents":[{"cid":"DN_XDQXCzsNH6rBvFDsfD","document_id":1,"company_name":"CIMB","document_name":"test","document_path":"document/S200616-0000-198/2020/0616/测试用.docx"}],"other_document_name":"test","other_document_path":"document/S200616-0000-198/2020/0616/测试用.docx","status":true});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://uat-api.goant.sg/loan/api/sme/submitDocuments/create");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwNDgwNywiZXhwaXJlcyI6MTU5MjMwODQwN30sImlhdCI6MTU5MjMwNDgwN30.IC1u6uSXI10jC3l-JK0deCIoX0jtjH26VaZ9yQZpXTM");
xhr.setRequestHeader("Content-Type", "application/json");

xhr.send(data);

HTTP request response results are as follows:

{

    "code": 0,
    "data": {},
    "message": "success",
    "messageDetail": "Success",
    "success": true

}

HTTP Request

POST https://uat-api.goant.sg/loan/api/sme/submitDocuments/create

Parameter Type Description
lender string Proof of lender (on behalf of company)
address string Proof of company address / office lease
license string Proof of business registration / license
bank_statements string Financial documents - bank statements
balance_sheet string Financial document - P&L and balance sheet
income string Tax document - income tax returns
sales string Tax document - sales tax returns
collateral_ownership string Proof of collateral ownership
affiliations string Ownership structure and affiliations
projections string Income and finances projections
agreements string Franchise agreements (if applicable)
overview string Business overview and history
additional_documents array PFI Additional Documents
other_document_name string Other Supporting Documents Name
other_document_path string Other Supporting Documents Path
status boolean Save:false Next:true

additional_documents description:

Parameter Type Description
cid string PFI Id
document_id interger document_id
company_name string PFI Name
document_name string PFI additional documents name
document_path string PFI additional documents path

HTTP Response

Confirm & Submit

Confirm & Submit Application

curl --location --request POST 'https://uat-api.goant.sg/loan/api/sme/confirmAndSubmit/create' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwNDgwNywiZXhwaXJlcyI6MTU5MjMwODQwN30sImlhdCI6MTU5MjMwNDgwN30.IC1u6uSXI10jC3l-JK0deCIoX0jtjH26VaZ9yQZpXTM' \
--header 'Content-Type: application/json' \
--data-raw '{
    "status": true
}'
var data = JSON.stringify({"status":true});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://uat-api.goant.sg/loan/api/sme/confirmAndSubmit/create");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwNDgwNywiZXhwaXJlcyI6MTU5MjMwODQwN30sImlhdCI6MTU5MjMwNDgwN30.IC1u6uSXI10jC3l-JK0deCIoX0jtjH26VaZ9yQZpXTM");
xhr.setRequestHeader("Content-Type", "application/json");

xhr.send(data);

HTTP request response results are as follows:

{

    "code": 0,
    "data": {},
    "message": "success",
    "messageDetail": "Success",
    "success": true

}

HTTP Request

POST https://uat-api.goant.sg/loan/api/sme/confirmAndSubmit/create

Parameter Type Description
status boolean Save:false Next:true

HTTP Response

Loan Demand Detail

Loan Demand Detail

curl --location --request GET 'https://uat-api.goant.sg/loan/api/sme/loanDemand/detail' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo' \
--data-raw ''
var data = "";

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/loan/api/sme/loanDemand/detail");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");

xhr.send(data);

HTTP request response results are as follows:

{
    "code": 0,
    "data": {
        "id": 187,
        "loan_id": 141,
        "pfi_id": "D6QBP7MwZFY_jdV1PQnhn",
        "product_id": 1,
        "loan_amount": 1,
        "loan_term_unit": "years",
        "loan_term": 1,
        "declaration_on_behalf": true,
        "guarantors": [
            {
                "select": 1,
                "comfirm": true,
                "residence": "Landed",
                "occupation": "test",
                "phone_number": "80000000",
                "new_guarantor": true,
                "guarantor_name": "Test",
                "key_decision_maker": true,
                "industry_experience_years": 1,
                "management_experience_years": 1
            }
        ],
        "guarantor_select": [],
        "key_decision_maker": "Test",
        "status": true,
        "createdAt": "2020-06-16T11:23:18.000Z",
        "updatedAt": "2020-06-16T11:23:18.000Z"
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/loan/api/sme/loanDemand/detail

HTTP Response

Parameter Type Description
pfi_id string Ffi Id
product_id integer wcl:1 , tbl:2
loan_amount integer Loan amount
loan_term_unit string years/months
loan_term integer Loan term
declaration_on_behalf boolean confirm the Declaration
guarantor_select array Myinfo guarantor
guarantors array Guarantors Information
status boolean Save:false Next:true

guarantors description:

Parameter Type Description
guarantor_name string Guarantor Name
phone_number string Phone numbe
industry_experience_years string Years of industry experience
management_experience_years string Years of management experience
occupation string Occupation
residence string Residence
comfirm boolean confirm that consent
new_guarantor boolean is data from myinfo
key_decision_maker boolean Key decision maker(Only one guarantor can be true

Business Information Detail

Business Information Detail

curl --location --request GET 'https://uat-api.goant.sg/loan/api/sme/businessInformation/detail' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo'

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/loan/api/sme/businessInformation/detail");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");

xhr.send();

HTTP request response results are as follows:

{
    "code": 0,
    "data": {
        "id": 183,
        "loan_id": 141,
        "uen": "53149769X",
        "in_singapore": true,
        "registered_address": "ANSON ROAD 079903",
        "office": "owned",
        "principle_activities": "das",
        "operationg_in_singapore": true,
        "active_years": 4,
        "employees_number": 1,
        "financial_inforamtion": [
            {
                "iras": "2",
                "net_profit": "2",
                "total_sales": "2",
                "particular_year": "2019"
            },
            {
                "iras": "3",
                "net_profit": "1",
                "total_sales": "2",
                "particular_year": "2018"
            },
            {
                "iras": "2",
                "net_profit": "3",
                "total_sales": "1",
                "particular_year": "2017"
            }
        ],
        "beneficial_shareholders": [
            {
                "name": "shareholders1",
                "sg_pr": true,
                "identify_no": "2",
                "shareholding": 0.5
            }
        ],
        "existing_borrowings_information": [
            {
                "security": "None",
                "bank_name": "Others",
                "loan_type": "Hire Purchase",
                "loan_amount": 2,
                "instaollment": "123",
                "other_bank_name": "2",
                "other_loan_type": ""
            }
        ],
        "confirm": true,
        "status": true,
        "createdAt": "2020-06-16T11:23:45.000Z",
        "updatedAt": "2020-06-16T11:23:45.000Z"
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/loan/api/sme/businessInformation/detail

HTTP Response

Parameter Type Description
uen string Business Registration No (UEN)
in_singapore boolean Is the Company a registered entity in Singapore
registered_address string Registered address of the company
office string Is the office owned / rented / mortgaged?
principle_activities string Principle activities of the company
operationg_in_singapore boolean Active operating activities in Singapore
active_years interger Years in active operation (>3)
employees_number interger Total number of employees (<200)
financial_inforamtion array Financial Information
beneficial_shareholders array shareholder Information
existing_borrowings_information array Existing Borrowings Information
confirm boolean confirm the authenticity of all the above information
status boolean Save:false Next:true

financial_inforamtion description:

Parameter Type Description
particular_year string 2017,2018,2019
total_sales interger Total Sales Sales < S$100m
net_profit interger Net Profit Net Profit > 0
iras interger IRAS tax payable IRAS tax payable > 0

beneficial_shareholders description:

Parameter Type Description
name string Names of ultimate beneficial shareholders
identify_no string Identity No
sg_pr boolean SG/PR
shareholding number Shareholding

existing_borrowings_information description:

Parameter Type Description
bank_name string Name of bank
other_bank_name string Name of other bank
loan_type string Type of loan
other_loan_type string Type of loan
security string Security provided
instaollment string Monthly installment (in SGD)
loan_amount interger Amount of loan (in SGD)

Submit Documents Detail

Submit Documents Detail

curl --location --request GET 'https://uat-api.goant.sg/loan/api/sme/submitDocuments/detail' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo'
var data = "";

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/loan/api/sme/loan/detail");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");

xhr.send(data);

HTTP request response results are as follows:

{
    "code": 0,
    "data": {
        "loan_id": 141,
        "application_id": "S200616-0000-198",
        "uid": "NuGtzArXnMAdZ98-2tlwf",
        "contact_person": "GoAnt",
        "position": "GoAnt",
        "email": "GoAnt@Sg.com",
        "phone": "80000000",
        "product_id": 1,
        "business_entity_name": "1 1 1 ABSOLUTE SINGAPORE SOCIAL ESCORT SERVICES",
        "uen": "53149769X",
        "pfi_id": "D6QBP7MwZFY_jdV1PQnhn",
        "loan_amount": 1,
        "loan_term_unit": "years",
        "loan_term": 1,
        "declaration_on_behalf": 1,
        "key_decision_maker": "Test",
        "in_singapore": 1,
        "registered_address": "ANSON ROAD 079903",
        "office": "owned",
        "principle_activities": "das",
        "operationg_in_singapore": 1,
        "active_years": 4,
        "employees_number": 1,
        "confirm": 1,
        "lender": "document/S200616-0000-198/2020/0616/测试用.docx",
        "address": "document/S200616-0000-198/2020/0616/测试用.docx",
        "license": "document/S200616-0000-198/2020/0616/测试用.docx",
        "bank_statements": "document/S200616-0000-198/2020/0616/测试用.docx",
        "balance_sheet": "document/S200616-0000-198/2020/0616/测试用.docx",
        "income": "document/S200616-0000-198/2020/0616/测试用.docx",
        "sales": "document/S200616-0000-198/2020/0616/测试用.docx",
        "collateral_ownership": null,
        "affiliations": null,
        "projections": null,
        "agreements": null,
        "overview": null,
        "other_document_name": null,
        "other_document_path": null,
        "step": "Success",
        "createdAt": "2020-06-16T09:42:39.000Z",
        "updatedAt": "2020-06-16T11:41:15.000Z",
        "approval_id": 3,
        "annual_financial_information": [
            {
                "id": 207,
                "loan_id": 141,
                "particular_year": "2019",
                "total_sales": "2",
                "net_profit": "2",
                "iras": "2",
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            },
            {
                "id": 208,
                "loan_id": 141,
                "particular_year": "2018",
                "total_sales": "2",
                "net_profit": "1",
                "iras": "3",
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            },
            {
                "id": 209,
                "loan_id": 141,
                "particular_year": "2017",
                "total_sales": "1",
                "net_profit": "3",
                "iras": "2",
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            }
        ],
        "existing_borrowings_information": [
            {
                "id": 13,
                "loan_id": 141,
                "bank_name": "Others",
                "other_bank_name": "2",
                "loan_type": "Hire Purchase",
                "loan_amount": 2,
                "other_loan_type": "",
                "security": "None",
                "instaollment": "123",
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            }
        ],
        "loan_guarantors_information": [
            {
                "id": 77,
                "loan_id": 141,
                "guarantor_name": "Test",
                "phone_number": "80000000",
                "industry_experience_years": 1,
                "management_experience_years": 1,
                "occupation": "test",
                "residence": "Landed",
                "comfirm": 1,
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            }
        ],
        "ultimate_beneficial_shareholders": [
            {
                "id": 76,
                "loan_id": 141,
                "name": "shareholders1",
                "identify_no": "2",
                "sg_pr": 1,
                "shareholding": "0.5000",
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            }
        ],
        "additional_document": [],
        "additional_materials": []
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/loan/api/sme/loan/detail

HTTP Response

Parameter Type Description
lender string Proof of lender (on behalf of company)
address string Proof of company address / office lease
license string Proof of business registration / license
bank_statements string Financial documents - bank statements
balance_sheet string Financial document - P&L and balance sheet
income string Tax document - income tax returns
sales string Tax document - sales tax returns
collateral_ownership string Proof of collateral ownership
affiliations string Ownership structure and affiliations
projections string Income and finances projections
agreements string Franchise agreements (if applicable)
overview string Business overview and history
additional_documents array PFI Additional Documents
other_document_name string Other Supporting Documents Name
other_document_path string Other Supporting Documents Path
status boolean Save:false Next:true

additional_documents description:

Parameter Type Description
cid string PFI Id
document_id interger document_id
company_name string PFI Name
document_name string PFI additional documents name
document_path string PFI additional documents path

loan Detail

loan Detail

curl --location --request GET 'https://uat-api.goant.sg/loan/api/sme/loan/detail' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo' \
--data-raw ''

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/loan/api/sme/submitDocuments/detail");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");

xhr.send();

HTTP request response results are as follows:

{
    "code": 0,
    "data": {
        "loan_id": 141,
        "application_id": "S200616-0000-198",
        "uid": "NuGtzArXnMAdZ98-2tlwf",
        "contact_person": "GoAnt",
        "position": "GoAnt",
        "email": "GoAnt@Sg.com",
        "phone": "80000000",
        "product_id": 1,
        "business_entity_name": "1 1 1 ABSOLUTE SINGAPORE SOCIAL ESCORT SERVICES",
        "uen": "53149769X",
        "pfi_id": "D6QBP7MwZFY_jdV1PQnhn",
        "loan_amount": 1,
        "loan_term_unit": "years",
        "loan_term": 1,
        "declaration_on_behalf": 1,
        "key_decision_maker": "Test",
        "in_singapore": 1,
        "registered_address": "ANSON ROAD 079903",
        "office": "owned",
        "principle_activities": "das",
        "operationg_in_singapore": 1,
        "active_years": 4,
        "employees_number": 1,
        "confirm": 1,
        "lender": "document/S200616-0000-198/2020/0616/测试用.docx",
        "address": "document/S200616-0000-198/2020/0616/测试用.docx",
        "license": "document/S200616-0000-198/2020/0616/测试用.docx",
        "bank_statements": "document/S200616-0000-198/2020/0616/测试用.docx",
        "balance_sheet": "document/S200616-0000-198/2020/0616/测试用.docx",
        "income": "document/S200616-0000-198/2020/0616/测试用.docx",
        "sales": "document/S200616-0000-198/2020/0616/测试用.docx",
        "collateral_ownership": null,
        "affiliations": null,
        "projections": null,
        "agreements": null,
        "overview": null,
        "other_document_name": null,
        "other_document_path": null,
        "step": "Success",
        "createdAt": "2020-06-16T09:42:39.000Z",
        "updatedAt": "2020-06-16T11:41:15.000Z",
        "approval_id": 3,
        "annual_financial_information": [
            {
                "id": 207,
                "loan_id": 141,
                "particular_year": "2019",
                "total_sales": "2",
                "net_profit": "2",
                "iras": "2",
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            },
            {
                "id": 208,
                "loan_id": 141,
                "particular_year": "2018",
                "total_sales": "2",
                "net_profit": "1",
                "iras": "3",
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            },
            {
                "id": 209,
                "loan_id": 141,
                "particular_year": "2017",
                "total_sales": "1",
                "net_profit": "3",
                "iras": "2",
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            }
        ],
        "existing_borrowings_information": [
            {
                "id": 13,
                "loan_id": 141,
                "bank_name": "Others",
                "other_bank_name": "2",
                "loan_type": "Hire Purchase",
                "loan_amount": 2,
                "other_loan_type": "",
                "security": "None",
                "instaollment": "123",
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            }
        ],
        "loan_guarantors_information": [
            {
                "id": 77,
                "loan_id": 141,
                "guarantor_name": "Test",
                "phone_number": "80000000",
                "industry_experience_years": 1,
                "management_experience_years": 1,
                "occupation": "test",
                "residence": "Landed",
                "comfirm": 1,
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            }
        ],
        "ultimate_beneficial_shareholders": [
            {
                "id": 76,
                "loan_id": 141,
                "name": "shareholders1",
                "identify_no": "2",
                "sg_pr": 1,
                "shareholding": "0.5000",
                "createdAt": "2020-06-16T11:41:15.000Z",
                "updatedAt": "2020-06-16T11:41:15.000Z"
            }
        ],
        "additional_document": [],
        "additional_materials": []
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/loan/api/sme/submitDocuments/detail

HTTP Response

Parameter Type Description
loan_id integer Loan Id
application_id string Application Id
contact_person string Name of contact person
position string Position in organisation
email string Email address
phone string Phone number
product_id integer wcl:1 , tbl:2
business_entity_name string Company name
uen string uen
pfi_id string Ffi Id
loan_amount integer Loan amount
loan_term_unit string years/months
loan_term integer Loan term
declaration_on_behalf boolean confirm the Declaration
key_decision_maker string key decision maker name
in_singapore boolean Is the Company a registered entity in Singapore
registered_address string Registered address of the company
office string Is the office owned / rented / mortgaged?
principle_activities string Principle activities of the company
operationg_in_singapore boolean Active operating activities in Singapore
active_years interger Years in active operation (>3)
employees_number interger Total number of employees (<200)
confirm boolean confirm the authenticity of all the above information
lender string Proof of lender (on behalf of company)
address string Proof of company address / office lease
license string Proof of business registration / license
bank_statements string Financial documents - bank statements
balance_sheet string Financial document - P&L and balance sheet
income string Tax document - income tax returns
sales string Tax document - sales tax returns
collateral_ownership string Proof of collateral ownership
affiliations string Ownership structure and affiliations
projections string Income and finances projections
agreements string Franchise agreements (if applicable)
overview string Business overview and history
other_document_name string Other Supporting Documents Name
other_document_path string Other Supporting Documents Path
step string Application Step
approval_id interger
annual_financial_information array
existing_borrowings_information array
loan_guarantors_information array
ultimate_beneficial_shareholders array
additional_document array
additional_materials array

List of additional documents

List of additional documents

curl --location --request GET 'https://uat-api.goant.sg/loan/api/sme/additional/material/list' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo'

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/loan/api/sme/additional/material/list");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");

xhr.send();

HTTP request response results are as follows:

{
    "code": 0,
    "data": [],
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/loan/api/sme/additional/material/list

HTTP Response

Parameter Type Description
id integer
loan_id integer Loan Id
cid_id string Ffi Id
product_id integer wcl:1 , tbl:2
document_id integer
company_name string
document_name string
document_path string

Add additional documents

Add additional documents

curl --location --request POST 'https://uat-api.goant.sg/loan/api/sme/additional/material/add' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo' \
--header 'Content-Type: application/json' \
--data-raw '{
    "additional_documents": [{
        "id": 2,
        "document_path": "2313123"
    }]
}'
var data = JSON.stringify({"additional_documents":[{"id":2,"document_path":"2313123"}]});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://uat-api.goant.sg/loan/api/sme/additional/material/add");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");
xhr.setRequestHeader("Content-Type", "application/json");

xhr.send(data);

HTTP request response results are as follows:

{
    "code": 0,
    "data": {},
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

POST https://uat-api.goant.sg/loan/api/sme/additional/material/add

Parameter Type Description
additional_documents array

additional_documents description:

Parameter Type Description
id interger
document_path string

HTTP Response

loan simple detail

loan simple detail

curl --location --request GET 'https://uat-api.goant.sg/loan/api/sme/loan/simpleDetail' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo' \
--data-raw ''
var data = "";

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/loan/api/sme/loan/simpleDetail");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");

xhr.send(data);

HTTP request response results are as follows:

{
    "code": 0,
    "data": {
        "step": "Success",
        "application_id": "S200616-0000-198",
        "product_id": 1,
        "contact_person": "GoAnt",
        "position": "GoAnt",
        "email": "GoAnt@Sg.com",
        "phone": "80000000",
        "pfi_id": "D6QBP7MwZFY_jdV1PQnhn",
        "business_entity_name": "1 1 1 ABSOLUTE SINGAPORE SOCIAL ESCORT SERVICES",
        "uen": "53149769X",
        "reg_street_name": "ANSON ROAD",
        "reg_postal_code": "079903",
        "company_info_type": "uen",
        "company_active": true
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/loan/api/sme/loan/simpleDetail

HTTP Response

Parameter Type Description
step integer
application_id integer Loan Id
product_id string Ffi Id
contact_person string Name of contact person
position string Position in organisation
email string Email address
phone string Phone number
pfi_id string
business_entity_name string
uen string
reg_street_name string
reg_postal_code string
company_info_type string
company_active string

Quote details

Quote details

curl --location --request GET 'https://uat-api.goant.sg/loan/api/sme/quote/detail' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo'

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/loan/api/sme/quote/detail");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");

xhr.send();

HTTP request response results are as follows:

{
    "code": 0,
    "data": {
        "id": 82,
        "loan_id": 141,
        "application_id": "S200616-0000-198",
        "pfi_id": "D6QBP7MwZFY_jdV1PQnhn",
        "product_id": 1,
        "loan_term_unit": null,
        "loan_term": null,
        "loan_amount": null,
        "interest_rate": null,
        "processing_fee": null,
        "quote_valid_period": null,
        "quote_valid_period_unit": null,
        "quote_valid_period_date": null,
        "collateral_condition": null,
        "othercondition": null,
        "process_id": 1,
        "approval_id": 3,
        "accepted_at": null,
        "approvaled_at": null,
        "rm_id": null,
        "rm_name": null,
        "quotation_date": null,
        "createdAt": "2020-06-16T11:41:15.000Z",
        "updatedAt": "2020-06-16T11:41:15.000Z"
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/loan/api/sme/quote/detail

HTTP Response

Parameter Type Description
id integer
loan_id integer Loan Id
application_id string application Id
pfi_id string
product_id string Ffi Id
loan_term_unit string
loan_term string
loan_amount string
interest_rate string
processing_fee string
quote_valid_period string
quote_valid_period_unit string
quote_valid_period_date string
collateral_condition string
othercondition string
process_id interger
approval_id interger
accepted_at date
approvaled_at date
rm_id string
rm_name string
quotation_date date

Quote confirmation

Quote confirmation

curl --location --request POST 'https://uat-api.goant.sg/loan/api/sme/quote/select' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo' \
--data-raw ''
var data = "";

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://uat-api.goant.sg/loan/api/sme/quote/select");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");

xhr.send(data);

HTTP request response results are as follows:

{
    "code": 0,
    "data": {},
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

POST https://uat-api.goant.sg/loan/api/sme/quote/select

HTTP Response

Loan&Application List

Loan&Application List

curl --location --request GET 'https://uat-api.goant.sg/loan/api/sme/loan/list' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo'
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/loan/api/sme/loan/list");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");

xhr.send();

HTTP request response results are as follows:

{
    "code": 0,
    "data": [
        {
            "id": 82,
            "Application ID": "S200616-0000-198",
            "pfi_id": "D6QBP7MwZFY_jdV1PQnhn",
            "product_id": 1,
            "approval_id": 3,
            "rm_id": null,
            "rm_name": null,
            "amount": 1,
            "loan_term": 1,
            "loan_term_unit": "years",
            "interest_rate": null,
            "processing_fee": null,
            "quote_valid_period_date": null,
            "collateral_condition": null,
            "othercondition": null,
            "Application Date": "2020-06-16T11:41:15.000Z",
            "Quotation Date": null
        }
    ],
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/loan/api/sme/loan/list

HTTP Response

Parameter Type Description
id integer Id
Application ID string Application Id
pfi_id string Ffi Id
product_id integer wcl:1 , tbl:2
approval_id integer
rm_id string
rm_name string
amount integer
loan_term_unit string years/months
loan_term integer Loan term
interest_rate number
processing_fee integer
quote_valid_period_date date
collateral_condition string
othercondition string
Application Date date
Quotation Date date

Change bank

Change bank

curl --location --request POST 'https://uat-api.goant.sg/loan/api/sme/change/pfi' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pfi_id": "DN_XDQXCzsNH6rBvFDsfD",
    "additional_documents": [
        {
            "cid": "DN_XDQXCzsNH6rBvFDsfD",
            "document_id": 1,
            "company_name": "owned",
            "document_name": "owned",
            "document_path": "ABC"
        }
    ]
}'
var data = JSON.stringify({"pfi_id":"DN_XDQXCzsNH6rBvFDsfD","additional_documents":[{"cid":"DN_XDQXCzsNH6rBvFDsfD","document_id":1,"company_name":"owned","document_name":"owned","document_path":"ABC"}]});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://uat-api.goant.sg/loan/api/sme/change/pfi");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");
xhr.setRequestHeader("Content-Type", "application/json");

xhr.send(data);

HTTP request response results are as follows:

{
    "code": 0,
    "data": {},
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

POST https://uat-api.goant.sg/loan/api/sme/change/pfi

Parameter Type Description
pfi_id string Ffi Id
additional_documents array

HTTP Response

Approval Log

Approval Log

curl --location --request GET 'https://uat-api.goant.sg/loan/api/sme/loan/approval/log?application_id=S200616-0000-198&pfi_id=D6QBP7MwZFY_jdV1PQnhn' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo'
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/loan/api/sme/loan/approval/log?application_id=S200616-0000-198&pfi_id=D6QBP7MwZFY_jdV1PQnhn");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");

xhr.send();

HTTP request response results are as follows:

{
    "code": 0,
    "data": [
        {
            "name": "Application ID generated",
            "operator": "GoAnt",
            "time": "2020-06-16T09:42:39.000Z"
        },
        {
            "name": "Application submitted",
            "operator": "SME",
            "time": "2020-06-16T11:41:15.000Z"
        },
        {
            "name": "Application Cancelled",
            "operator": "SME",
            "time": "2020-06-16T12:33:00.000Z"
        }
    ],
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/loan/api/sme/loan/approval/log

Parameter Type Description
application_id string Application Id
pfi_id string Ffi Id

HTTP Response

Parameter Type Description
name string
operator string
time date

Cancel

Cancel

curl --location --request POST 'https://uat-api.goant.sg/loan/api/sme/application/cancel' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo' \
--header 'Content-Type: application/json' \
--data-raw '{
    "application_id": "S200518-2654-339",
    "pfi_id": "D6QBP7MwZFY_jdV1PQnhn"
}'
var data = JSON.stringify({"application_id":"S200518-2654-339","pfi_id":"D6QBP7MwZFY_jdV1PQnhn"});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://uat-api.goant.sg/loan/api/sme/application/cancel");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");
xhr.setRequestHeader("Content-Type", "application/json");

xhr.send(data);

HTTP request response results are as follows:

{
    "code": 0,
    "data": {},
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

POST https://uat-api.goant.sg/loan/api/sme/application/cancel

Parameter Type Description
application_id string Application Id
pfi_id string Ffi Id

HTTP Response

Latest records

Latest records

curl --location --request GET 'https://uat-api.goant.sg/loan/api/sme/loan/workflow/log/latest' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo'
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/loan/api/sme/loan/workflow/log/latest");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMwODE4NywiZXhwaXJlcyI6MTU5MjMxMTc4N30sImlhdCI6MTU5MjMwODE4N30.A2_opWcCwqES8cf4HfSpWgA3hCIkn6J50Zq0HBo5hRo");

xhr.send();

HTTP request response results are as follows:

{
    "code": 0,
    "data": {
        "id": 487,
        "no": "P202006167117",
        "project_id": 82,
        "approval_id": 3,
        "current_approval_id": -1,
        "action": "cancel",
        "uid": "NuGtzArXnMAdZ98-2tlwf",
        "user_name": "GoAnt",
        "company_id": "1OR6nLLJQYX83IlwnYiUv",
        "company_name": "SME",
        "reason": "",
        "createdAt": "2020-06-16T12:33:00.000Z",
        "updatedAt": "2020-06-16T12:33:00.000Z",
        "deletedAt": null,
        "approval": {
            "id": 3,
            "head": true,
            "next_id": 0,
            "task_id": 3,
            "role_id": [
                1,
                40
            ],
            "name": "CIMB quoted",
            "status": "Waiting for quote"
        }
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/loan/api/sme/loan/workflow/log/latest

HTTP Response

Parameter Type Description
id interger
no string
project_id interger
approval_id interger
current_approval_id interger
action string
uid string
user_name string
company_id string
company_name string
reason string
createdAt date
updatedAt date
approval object

Get uploaded signature

Get uploaded signature

curl --location --request GET 'https://uat-api.goant.sg/storage/api/upload' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMxMTM2MSwiZXhwaXJlcyI6MTU5MjMxNDk2MX0sImlhdCI6MTU5MjMxMTM2MX0.CcEIvUjmdX7_T_WceA7j1Uy5tI1X5WOT-pqPKUdb2zQ'

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/storage/api/upload");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMxMTM2MSwiZXhwaXJlcyI6MTU5MjMxNDk2MX0sImlhdCI6MTU5MjMxMTM2MX0.CcEIvUjmdX7_T_WceA7j1Uy5tI1X5WOT-pqPKUdb2zQ");

xhr.send();

HTTP request response results are as follows:

{
    "code": 0,
    "data": {
        "options": {
            "host": "https://s3-ap-southeast-1.amazonaws.com/goant-loan-uat",
            "acl": "private",
            "key": "document/S200616-0000-198/2020/0616/${filename}",
            "policy": "eyJleHBpcmF0aW9uIjoiMjAyMC0wNi0xNlQxMzo0MzozMC42OTdaIiwiY29uZGl0aW9ucyI6W3siYnVja2V0IjoiZ29hbnQtbG9hbi11YXQifSxbInN0YXJ0cy13aXRoIiwiJHVpZCIsInJjLXVwbG9hZC0iXSxbInN0YXJ0cy13aXRoIiwiJGtleSIsImRvY3VtZW50L1MyMDA2MTYtMDAwMC0xOTgvMjAyMC8wNjE2LyJdLHsiYWNsIjoicHJpdmF0ZSJ9LHsic3VjY2Vzc19hY3Rpb25fc3RhdHVzIjoiMjAwIn0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsMSwzMTQ1NzI4MF0seyJ4LWFtei1zZXJ2ZXItc2lkZS1lbmNyeXB0aW9uIjoiQUVTMjU2In0seyJ4LWFtei1jcmVkZW50aWFsIjoiQUtJQVZMVTRSSkpFM1JMUUtFTkQvMjAyMDA2MTYvYXAtc291dGhlYXN0LTEvczMvYXdzNF9yZXF1ZXN0In0seyJ4LWFtei1hbGdvcml0aG0iOiJBV1M0LUhNQUMtU0hBMjU2In0seyJ4LWFtei1kYXRlIjoiMjAyMDA2MTZUMDAwMDAwWiJ9XX0=",
            "success_action_status": 200,
            "x-amz-algorithm": "AWS4-HMAC-SHA256",
            "x-amz-server-side-encryption": "AES256",
            "x-amz-credential": "AKIAVLU4RJJE3RLQKEND/20200616/ap-southeast-1/s3/aws4_request",
            "x-amz-date": "20200616T000000Z",
            "x-amz-signature": "d834f2328a3eca505539796e85728f4890f0df93b09767f49ce6f2423362207a"
        }
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/storage/api/upload

HTTP Response

Parameter Type Description
host string
acl string
key string
policy string
success_action_status string
x-amz-algorithm string
x-amz-server-side-encryption string
x-amz-credential string
statx-amz-dateus string
x-amz-signature string

Get temporary access link

curl --location --request GET 'https://uat-api.goant.sg/storage/api/url?url=document/S200616-0000-198/2020/0616/%E6%B5%8B%E8%AF%95%E7%94%A8.docx' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMxMTM2MSwiZXhwaXJlcyI6MTU5MjMxNDk2MX0sImlhdCI6MTU5MjMxMTM2MX0.CcEIvUjmdX7_T_WceA7j1Uy5tI1X5WOT-pqPKUdb2zQ'
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://uat-api.goant.sg/storage/api/url?url=document/S200616-0000-198/2020/0616/%E6%B5%8B%E8%AF%95%E7%94%A8.docx");
xhr.setRequestHeader("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMxMTM2MSwiZXhwaXJlcyI6MTU5MjMxNDk2MX0sImlhdCI6MTU5MjMxMTM2MX0.CcEIvUjmdX7_T_WceA7j1Uy5tI1X5WOT-pqPKUdb2zQ");

xhr.send();

HTTP request response results are as follows:

{
    "code": 0,
    "data": {
        "url": "https://goant-loan-uat.s3.ap-southeast-1.amazonaws.com/document/S200616-0000-198/2020/0616/%E6%B5%8B%E8%AF%95%E7%94%A8.docx?AWSAccessKeyId=AKIAVLU4RJJE3RLQKEND&Expires=1592311653&Signature=i8nLtG%2BDQWxFLM5gSCjTb4ymWac%3D"
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

GET https://uat-api.goant.sg/storage/api/url

Parameter Type Description
url string

HTTP Response

Send OTP

Send OTP

curl --location --request POST 'https://uat-api.goant.sg/ucenter/api/otp' \
--header 'Content-Type: application/json' \
--data-raw '{
    "account":"S200616-0000-198",
    "template_id": 14
}'
var data = JSON.stringify({"account":"S200616-0000-198","template_id":14});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://uat-api.goant.sg/ucenter/api/otp");
xhr.setRequestHeader("Content-Type", "application/json");

xhr.send(data);

HTTP request response results are as follows:

{
    "code": 0,
    "data": {
        "phone": "0000"
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

POST https://uat-api.goant.sg/ucenter/api/otp

Parameter Type Description
account string
template_id interger

HTTP Response

Parameter Type Description
phone string

Login

Login

curl --location --request POST 'https://uat-api.goant.sg/ucenter/api/sme/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "account": "S200616-0000-198",
    "otp": "0000"
}'
var data = JSON.stringify({"account":"S200616-0000-198","otp":"0000"});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://uat-api.goant.sg/ucenter/api/sme/login");
xhr.setRequestHeader("Content-Type", "application/json");

xhr.send(data);

HTTP request response results are as follows:

{
    "code": 0,
    "data": {
        "uid": "NuGtzArXnMAdZ98-2tlwf",
        "name": "GoAnt",
        "account": "S200616-0000-198",
        "email": "GoAnt@Sg.com",
        "phone": "80000000",
        "status": 1,
        "type": "user",
        "cid": "1OR6nLLJQYX83IlwnYiUv",
        "company_name": "1 1 1 ABSOLUTE SINGAPORE SOCIAL ESCORT SERVICES",
        "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJOdUd0ekFyWG5NQWRaOTgtMnRsd2YiLCJ1c2VyX2lkIjoxNjMsIm5hbWUiOiJHb0FudCIsImFjY291bnQiOiJTMjAwNjE2LTAwMDAtMTk4IiwiZW1haWwiOiJHb0FudEBTZy5jb20iLCJwaG9uZSI6IjgwMDAwMDAwIiwiY29tcGFueV9pZCI6MTU0LCJyb2xlX2lkIjoxNTgsImNvbXBhbnkiOnsiY2lkIjoiMU9SNm5MTEpRWVg4M0lsd25ZaVV2IiwibmFtZSI6IjEgMSAxIEFCU09MVVRFIFNJTkdBUE9SRSBTT0NJQUwgRVNDT1JUIFNFUlZJQ0VTIiwidHlwZSI6InNtZSJ9LCJwZXJtaXNzaW9uSWRzIjpbXSwidG9rZW4iOnsiY3JlYXRlZF9hdCI6MTU5MjMxMjE1MiwiZXhwaXJlcyI6MTU5MjMxNTc1Mn0sImlhdCI6MTU5MjMxMjE1Mn0.ziZl2Fh59GGlODKYlKwqT_KH06CVq3lyVMBJ0mgr5BA"
    },
    "message": "success",
    "messageDetail": "Success",
    "success": true
}

HTTP Request

POST https://uat-api.goant.sg/ucenter/api/otp

Parameter Type Description
account string
otp string

HTTP Response

Parameter Type Description
uid string
name string
account string
email string
phone string
type string
cid string
company_name string
access_token string

Errors

The Banco Open API uses the following error codes:

Error Code Meaning
100 Parameter Error
101 Unknown Error
102-107 Microservice Error
1000 You don't have permission to perform the operation.
1006 Session is expired.