{"openapi":"3.0.1","info":{"title":"API Banking - Accounts","description":"**API Banking - Accounts**\nProvides account information, balances and information about transactions. It allows to retrieve all available data for customer's authorised account services, such as basic account details, account balances for single or multiple accounts and transaction summary.","termsOfService":"https://www.sc.com/s2b/legalnotice/","contact":{"name":"API Banking Support Team","url":"https://www.sc.com","email":"api.query@sc.com"},"license":{"name":"Company License","url":"http://www.sc.com/licenses/LICENSE-2.0.html"},"version":"1.0.0"},"servers":[{"url":"https://api.standardchartered.com/openapi"}],"tags":[{"name":"Account Services","description":"Account Services APIs enable you to fetch the account details, balances and transaction details.","x-subcategory":"Accounts"}],"paths":{"/accounts/v3/{accountId}/balances":{"get":{"tags":["Account Services"],"summary":"Single Account Balances by Account ID","description":"The Single Account Balances by Account ID API enables you to retrieve various balance information such as opening available balance, opening actual balance, opening booked balance, closing available balance, closing actual balance, and closing booked balance for the specified account number and/or currency, BIC, and date.","operationId":"getBalancesByAccount","parameters":[{"name":"Routing-Identifier","in":"header","description":"This is used to identify markets with specific requirements, such as booking locations that are subject to local data regulations, when performing operations with the Bank globally through API integrations.<br/> <br/>  Available values: <ul>  <li> ZZ – Use this value if you wish to receive     the balances for debit accounts in markets other than IN. </li>  <li> IN – Use this if you wish to receive the balances      for IN debit accounts. </li> </ul> <br/> The Bank will not be liable for any delay, interruption, or failure in performance of the API if the wrong value is given. In these situations, the client is responsible for using the correct value to continue using the API successfully. </ul>","required":true,"schema":{"type":"string"},"example":"ZZ"},{"name":"accountId","in":"path","description":"The client account number for which the account balance is requested.","required":true,"style":"simple","explode":false,"schema":{"maxLength":34,"minLength":10,"pattern":"^[a-zA-Z0-9_]*$","type":"string"},"example":17161082},{"name":"currency","in":"query","description":"The ISO currency code of the account.","required":false,"style":"form","explode":true,"schema":{"maxLength":3,"minLength":3,"pattern":"^[a-zA-Z0-9_]*$","type":"string"},"example":"SGD"},{"name":"swiftBic","in":"query","description":"The BIC of the account number.","required":false,"style":"form","explode":true,"schema":{"maxLength":11,"minLength":8,"pattern":"^[a-zA-Z0-9_]*$","type":"string"},"example":"SCBLSG22XXX"},{"name":"businessDate","in":"query","description":"The date of the account balance to be retrieved. Balances can be queried up to 90 days in the past. If date is not provided, then the current buisness date will be used. When there is no balance information for the given date, the balance of the latest date that has data will be fetched.<br> For instance, the given date is 2024-05-30 but the latest available data is on 2024-05-18. Therefore, the balance information fetched will be for 2024-05-18.","required":false,"style":"form","explode":true,"schema":{"type":"string","format":"date"},"example":"2024-04-15"}],"responses":{"200":{"description":"Success with data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleAccountBalance"},"example":"{\n  \"accountBalances\": [\n    {\n      \"accountId\": \"0101355572\",\n      \"swiftBic\": \"SCBLSG22XXX\",\n      \"currency\": \"SGD\",\n      \"balances\": [\n        {\n          \"balanceAmount\": {\n            \"amount\": 34222.63,\n            \"currency\": \"SGD\"\n          },\n          \"creditDebitIndicator\": \"Credit\",\n          \"type\": \"OpeningAvailable\",\n          \"businessDate\": \"2024-04-15\"\n        },\n        {\n          \"balanceAmount\": {\n            \"amount\": 37222.63,\n            \"currency\": \"SGD\"\n          },\n          \"creditDebitIndicator\": \"Credit\",\n          \"type\": \"OpeningActual\",\n          \"businessDate\": \"2024-04-15\"\n        },\n        {\n          \"balanceAmount\": {\n            \"amount\": 33222.63,\n            \"currency\": \"SGD\"\n          },\n          \"creditDebitIndicator\": \"Credit\",\n          \"type\": \"OpeningBooked\",\n          \"businessDate\": \"2024-04-15\"\n        },\n        {\n          \"balanceAmount\": {\n            \"amount\": 31222.63,\n            \"currency\": \"SGD\"\n          },\n          \"creditDebitIndicator\": \"Credit\",\n          \"type\": \"ClosingAvailable\",\n          \"businessDate\": \"2024-04-15\"\n        },\n        {\n          \"balanceAmount\": {\n            \"amount\": 38222.63,\n            \"currency\": \"SGD\"\n          },\n          \"creditDebitIndicator\": \"Credit\",\n          \"type\": \"ClosingActual\",\n          \"businessDate\": \"2024-04-15\"\n        },\n        {\n          \"balanceAmount\": {\n            \"amount\": 33222.63,\n            \"currency\": \"SGD\"\n          },\n          \"creditDebitIndicator\": \"Credit\",\n          \"type\": \"ClosingBooked\",\n          \"businessDate\": \"2024-04-15\"\n        }\n      ]\n    }\n  ]\n}"}}},"400":{"description":"Invalid request. Missing or invalid data.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message. <br /> Note: This is a sample error message. Please refer to the returned response for the actual message and adjust your payload accordingly and try again.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Invalid Account Number","errorCode":"AER-2002"}}}},"404":{"description":"Resource Not found.","content":{"application/json":{}}},"403":{"description":"Data access profile (DAP) check failure. Please use the valid accountId tagged to the respective groupId.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Account is not authorised","errorCode":"AER-2000"}}}},"500":{"description":"Internal server error. This indicates error on the webserver hosting the API.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Internal server error","errorCode":"AER-1005"}}}},"503":{"description":"Microservice dependency is down or undergoing maintenance. Try again later.","content":{"application/json":{}}}}}},"/accounts/v3/balances":{"get":{"tags":["Account Services"],"summary":"Bulk Account Balances by Group ID","description":"The Bulk Account Balances by Group ID API enables you to retrieve various balance information such as opening available balance, opening actual balance, opening booked balance, closing available balance, closing actual balance, and closing booked balance for multiple account numbers under the specified group ID and/or date with pagination.","operationId":"getBalancesByGroup","parameters":[{"name":"Routing-Identifier","in":"header","description":"This is used to identify markets with specific requirements, such as booking locations that are subject to local data regulations, when performing operations with the Bank globally through API integrations.<br/> <br/>  Available values: <ul>  <li> ZZ – Use this value if you wish to receive     the balances for debit accounts in markets other than IN. </li>  <li> IN – Use this if you wish to receive the balances      for IN debit accounts. </li> </ul> <br/> The Bank will not be liable for any delay, interruption, or failure in performance of the API if the wrong value is given. In these situations, the client is responsible for using the correct value to continue using the API successfully. </ul>","required":true,"schema":{"type":"string"},"example":"ZZ"},{"name":"businessDate","in":"query","description":"The date of the account balance to be retrieved. Balances can be queried up to 90 days in the past. If date is not provided, then the current buisness date will be used. When there is no balance information for the given date, the balance of the latest date that has data will be fetched.<br> For instance, the given date is 2024-05-30 but the latest available data is on 2024-05-18. Therefore, the balance information fetched will be for 2024-05-18.","required":false,"style":"form","explode":true,"schema":{"type":"string","format":"date"},"example":"2024-04-30"},{"name":"page","in":"query","description":"The page number to be returned. If this value is not provided, the default value used will be 1.","required":false,"style":"form","explode":true,"schema":{"minimum":1,"type":"integer","format":"int32","default":1},"example":2},{"name":"size","in":"query","description":"The number of records to return per page. If this value is not provided, the default value used will be 100.","required":false,"style":"form","explode":true,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":100},"example":10}],"responses":{"200":{"description":"Success with data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAccountBalance"},"example":{"accountBalances":[{"accountId":"0101355572","swiftBic":"SCBLSG22XXX","currency":"SGD","balances":[{"balanceAmount":{"amount":1330.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"OpeningAvailable","businessDate":"2024-04-30"},{"balanceAmount":{"amount":1430.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"OpeningActual","businessDate":"2024-04-30"},{"balanceAmount":{"amount":1230.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"OpeningBooked","businessDate":"2024-04-30"},{"balanceAmount":{"amount":1330.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"ClosingAvailable","businessDate":"2024-04-30"},{"balanceAmount":{"amount":1430.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"ClosingActual","businessDate":"2024-04-30"},{"balanceAmount":{"amount":1230.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"ClosingBooked","businessDate":"2024-04-30"}]},{"accountId":"0101355572","swiftBic":"SCBLSG22XXX","currency":"SGD","balances":[{"balanceAmount":{"amount":1330.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"OpeningAvailable","businessDate":"2024-04-30"},{"balanceAmount":{"amount":1230.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"OpeningActual","businessDate":"2024-04-30"},{"balanceAmount":{"amount":1230.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"OpeningBooked","businessDate":"2024-04-30"},{"balanceAmount":{"amount":1330.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"ClosingAvailable","businessDate":"2024-04-30"},{"balanceAmount":{"amount":1430.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"ClosingActual","businessDate":"2024-04-30"},{"balanceAmount":{"amount":1230.06,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"ClosingBooked","businessDate":"2024-04-30"}]}],"metadata":{"page":7,"size":2,"total":230},"links":{"self":"/openapi/accounts/v3/balances?page=7&size=2","next":"/openapi/accounts/v3/balances?page=8&size=2"}}}}},"400":{"description":"Invalid request. Missing or invalid data.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message. <br /> Note: This is a sample error message. Please refer to the returned response for the actual message and adjust your payload accordingly and try again.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Invalid Account Number","errorCode":"AER-2002"}}}},"404":{"description":"Resource Not found.","content":{"application/json":{}}},"403":{"description":"Data access profile (DAP) check failure. Please use the valid accountId tagged to the respective groupId.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Account is not authorised","errorCode":"AER-2000"}}}},"500":{"description":"Internal server error. This indicates error on the webserver hosting the API.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Internal server error","errorCode":"AER-1005"}}}},"503":{"description":"Microservice dependency is down or undergoing maintenance. Try again later.","content":{"application/json":{}}}}}},"/accounts/v3/{accountId}/transactions":{"get":{"tags":["Account Services"],"summary":"Single Account Transactions by Account ID","description":"The Single Account Transactions by Account ID API enables you to retrieve the account transaction details for the specified account number and/or currency, BIC, and transaction date with pagination.","operationId":"getTransactionsByAccount","parameters":[{"name":"Routing-Identifier","in":"header","description":"This is used to identify markets with specific requirements, such as booking locations that are subject to local data regulations, when performing operations with the Bank globally through API integrations.<br/> <br/>  Available values: <ul>  <li> ZZ – Use this value if you wish to receive     the transactions for debit accounts in markets other than IN. </li>  <li> IN – Use this if you wish to receive the     transactions for IN debit accounts. </li> </ul> <br/> The Bank will not be liable for any delay, interruption, or failure in performance of the API if the wrong value is given. In these situations, the client is responsible for using the correct value to continue using the API successfully. </ul>","required":true,"schema":{"type":"string"},"example":"ZZ"},{"name":"accountId","in":"path","description":"The client account number for which the account transactions is requested.","required":true,"style":"simple","explode":false,"schema":{"maxLength":34,"minLength":10,"pattern":"^[a-zA-Z0-9_]*$","type":"string"},"example":17161082},{"name":"swiftBic","in":"query","description":"The BIC of the account number.","required":false,"style":"form","explode":true,"schema":{"maxLength":11,"minLength":8,"pattern":"^[a-zA-Z0-9_]*$","type":"string"},"example":"SCBLSG22XXX"},{"name":"currency","in":"query","description":"The ISO currency code of the account.","required":false,"style":"form","explode":true,"schema":{"maxLength":3,"minLength":3,"pattern":"^[a-zA-Z0-9_]*$","type":"string"},"example":"SGD"},{"name":"page","in":"query","description":"The page number to be returned. If this value is not provided, the default value used will be 1.","required":false,"style":"form","explode":true,"schema":{"minimum":1,"type":"integer","format":"int32","default":1},"example":2},{"name":"size","in":"query","description":"The number of records to return per page. If this value is not provided, the default value used will be 100.","required":false,"style":"form","explode":true,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":100},"example":10},{"name":"transactionDate","in":"query","description":"The date of the transactions to be retrieved.","required":false,"style":"form","explode":true,"schema":{"type":"string","format":"date"},"example":"2024-03-31"}],"responses":{"200":{"description":"Success with data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountTransactions"},"example":{"transactions":[{"accountId":"0101355572","accountName":"Your Account Name","swiftBic":"SCBLSG22XXX","ccyCode":"SGD","transactionReference":"CR53948584685189316801","creditDebitIndicator":"Credit","transactionAmount":{"amount":1876.19,"currency":"SGD"},"valueDateTime":"2024-03-31T08:30:36Z","transactionInformation":["TT|PAMARTC03","SCBSINGAPORENEWSGDTERC01|STANDARD CHART","HK5IT233100002|LESSOFCHG0","UVTTESTING PRIORITY1","0101355572|SCBLSG22XXX","SGD|1876.19|1.00|LEOFCHG0"],"transactionDescriptionShort":"HK5IT24033100002SCBSINGAPORENEWSGDTERC01R","transactionDescription":"HK5IT24033100002SCBSINGAPORENEWSGDTERC01R  TC5","payAmount":1876.19,"payReference":"SG5IT233100002YE","payCcy":"SGD","approvalSeqNo":"447111937811230002982","bookingDate":"2024-03-31","payee":{"name":"YYY Acc Name","nameInLocalLanguage":"于乐","accountNumber":17161082,"bank":"SCBLSG22XXX"},"payer":{"name":"KAB Sports","nameInLocalLanguage":"于乐","accountNumber":4108355572,"bank":"CITLSGKXXXX"},"bankTransactionCode":{"code":"295","subCode":"TC5"},"balance":{"balanceAmount":{"amount":7000.55,"currency":"SGD"},"creditDebitIndicator":"Credit","type":"ClosingAvailable"},"chargeAmount":{"amount":22.9,"currency":"SGD"},"currencyExchange":{"contractIdentification":"FXDLN0005","exchangeRate":1}}],"metadata":{"page":3,"size":1,"total":126},"links":{"self":"/openapi/accounts/v3/44700980949/transactions?transactionDate=2024-03-31&page=3&size=1","next":"/openapi/accounts/v3/44700980949/transactions?page=4&size=1&transactionDate=2024-03-31"}}}}},"400":{"description":"Invalid request. Missing or invalid data.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message. <br /> Note: This is a sample error message. Please refer to the returned response for the actual message and adjust your payload accordingly and try again.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Invalid Account Number","errorCode":"AER-2002"}}}},"404":{"description":"Resource Not found.","content":{"application/json":{}}},"403":{"description":"Data access profile (DAP) check failure. Please use the valid accountId tagged to the respective groupId.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Account is not authorised","errorCode":"AER-2000"}}}},"500":{"description":"Internal server error. This indicates error on the webserver hosting the API.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Internal server error","errorCode":"AER-1005"}}}},"503":{"description":"Microservice dependency is down or undergoing maintenance. Try again later.","content":{"application/json":{}}}}}},"/accounts/v3/{accountId}":{"get":{"tags":["Account Services"],"summary":"Single Account Details by Account ID","description":"The Single Account Details by Account ID API enables you to retrieve the account details for the specified account number and/or account status, account type, currency, and BIC.","operationId":"getAccountDetailsById","parameters":[{"name":"Routing-Identifier","in":"header","description":"This is used to identify markets with specific requirements, such as booking locations that are subject to local data regulations, when performing operations with the Bank globally through API integrations.<br/> <br/>  Available values: <ul>  <li> ZZ – Use this value if you wish to receive     the details for debit accounts in markets other than IN. </li>  <li> IN – Use this if you wish to receive the details    for IN debit accounts. </li> </ul> <br/> The Bank will not be liable for any delay, interruption, or failure in performance of the API if the wrong value is given. In these situations, the client is responsible for using the correct value to continue using the API successfully. </ul>","required":true,"schema":{"type":"string"},"example":"ZZ"},{"name":"accountId","in":"path","description":"The client account number for which the account details is requested.","required":true,"style":"simple","explode":false,"schema":{"maxLength":34,"minLength":10,"pattern":"^[a-zA-Z0-9_]*$","type":"string"},"example":17161082},{"name":"swiftBic","in":"query","description":"The BIC of the account number.","required":false,"style":"form","explode":true,"schema":{"maxLength":11,"minLength":8,"pattern":"^[a-zA-Z0-9_]*$","type":"string"},"example":"SCBLSG20XXX"},{"name":"currency","in":"query","description":"The ISO currency code of the account.","required":false,"style":"form","explode":true,"schema":{"maxLength":3,"minLength":3,"pattern":"^[a-zA-Z0-9_]*$","type":"string"},"example":"SGD"},{"name":"accountType","in":"query","description":"The specific account type to be retrieved. <br> CA, C - Current Account <br> SA, S - Saving Account <br> OA - Over draft Account","required":false,"style":"form","explode":true,"schema":{"$ref":"#/components/schemas/AccountType"},"example":"CA"},{"name":"accountStatus","in":"query","description":"The specific status of the account to be retrieved. <br> O – Open <br> A – Active <br> U – Unclaimed <br> C – Closed <br> D – Dormant","required":false,"style":"form","explode":true,"schema":{"$ref":"#/components/schemas/AccountStatus"},"example":"C"}],"responses":{"200":{"description":"Success with data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDetails"},"example":"{\n    \"accounts\": [\n        {\n            \"title\": \"Your Account Name\",\n            \"owner\": {\n                \"id\": \"750945\",\n                \"shortName\": \"Singapore foods\"\n            },\n            \"type\": \"CA\",\n            \"productCode\": \"DDA\",\n            \"productSubCode\": \"CM\",\n            \"swiftCode\": \"SCBLSG20XXX\",\n            \"bank\": \"STANDARD CHARTERED BANK (SINGAPORE) LIMITED\",\n            \"branch\": \"4470\",\n            \"accountNumber\": \"0101355572\",\n            \"currency\": \"SGD\",\n            \"iban\": \"SG65SCBLSG678901212345\",\n            \"openingDate\": \"2023-03-12\",\n            \"closingDate\": \"2024-04-29\",\n            \"accountStatus\": \"C\",\n            \"address\": {\n              \"line1\": \"RAFFLES ROAD ROAD\",\n              \"line2\": \"OPS, RAFFLES ROAD, L2-ZONE 1,ZI\",\n              \"line3\": \"SINGAPORE\"\n            }\n        }\n    ]\n}"}}},"400":{"description":"Invalid request. Missing or invalid data.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message. <br /> Note: This is a sample error message. Please refer to the returned response for the actual message and adjust your payload accordingly and try again.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Invalid Account Number","errorCode":"AER-2002"}}}},"404":{"description":"Resource Not found","content":{"application/json":{}}},"403":{"description":"Data access profile (DAP) check failure. Please use the valid accountId tagged to the respective groupId.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Account is not authorised","errorCode":"AER-2000"}}}},"500":{"description":"Internal server error. This indicates error on the webserver hosting the API.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Internal server error","errorCode":"AER-1005"}}}},"503":{"description":"Microservice dependency is down or undergoing maintenance. Try again later.","content":{"application/json":{}}}}}},"/accounts/v3":{"get":{"tags":["Account Services"],"summary":"Bulk Account Details By Group ID","description":"The Bulk Account Details by Group ID API enables you to retrieve the account details for all the account numbers under the specified Group ID with pagination.","operationId":"getAccountDetailsByGroupId","parameters":[{"name":"Routing-Identifier","in":"header","description":"This is used to identify markets with specific requirements, such as booking locations that are subject to local data regulations, when performing operations with the Bank globally through API integrations.<br/> <br/>  Available values: <ul>  <li> ZZ – Use this value if you wish to receive     the details for debit accounts in markets other than IN. </li>  <li> IN – Use this if you wish to receive the details    for IN debit accounts. </li> </ul> <br/> The Bank will not be liable for any delay, interruption, or failure in performance of the API if the wrong value is given. In these situations, the client is responsible for using the correct value to continue using the API successfully. </ul>","required":true,"schema":{"type":"string"},"example":"ZZ"},{"name":"accountType","in":"query","description":"The specific account type to be retrieved. <br> CA, C – Current Account <br> SA, S - Saving Account <br> OA - Over draft Account","required":false,"style":"form","explode":true,"example":"CA","schema":{"pattern":"^[CN|C|OA|FL|L|I|SA|N|S|FD|DP|CA|CD|D|LA]*$","$ref":"#/components/schemas/AccountType"}},{"name":"accountStatus","in":"query","description":"The specific status of the account to be retrieved. <br> O – Open <br> A – Active <br> U – Unclaimed <br> C – Closed <br> D – Dormant","required":false,"style":"form","explode":true,"example":"C","schema":{"pattern":"^[O|A|C|U|D]*$","$ref":"#/components/schemas/AccountStatus"}},{"name":"page","in":"query","description":"The page number to be returned. If this value is not provided, the default value used will be 1.","required":false,"style":"form","explode":true,"schema":{"minimum":1,"type":"integer","format":"int32","default":1},"example":2},{"name":"size","in":"query","description":"The number of records to return per page. If this value is not provided, the default value used will be 100.","required":false,"style":"form","explode":true,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":100},"example":10}],"responses":{"200":{"description":"Success with data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAccountDetails"},"example":"{\n  \"accounts\": [\n    {\n      \"title\": \"STANDARD CHARTERED BANK\",\n      \"owner\": {\n        \"id\": \"8840\",\n        \"shortName\": \"Singapore foods\"\n      },\n      \"type\": \"CA\",\n      \"productCode\": \"202\",\n      \"productSubCode\": \"XX\",\n      \"swiftCode\": \"SCBLSG22XXX\",\n      \"bank\": \"Standard Chartered Bank (Singapore) Limited\",\n      \"branch\": \"001\",\n      \"accountNumber\": \"0104644575\",\n      \"currency\": \"SGD\",\n      \"iban\": \"SG65SCBLSG678901212345\",\n      \"openingDate\": \"2023-07-24\",\n      \"closingDate\": \"2024-04-30\",\n      \"accountStatus\": \"C\",\n      \"address\": {\n        \"line1\": \"C/O STANDARD CHARTERED BANK\",\n        \"line2\": \"OPS, RAFFLES ROAD, L2-ZONE 1,ZI\",\n        \"line3\": \"SINGAPORE\"\n      }\n    },\n    {\n      \"title\": \"STANDARD CHARTERED BANK\",\n      \"owner\": {\n        \"id\": \"8840\",\n        \"shortName\": \"Singapore foods\"\n      },\n      \"type\": \"CA\",\n      \"productCode\": \"202\",\n      \"productSubCode\": \"XX\",\n      \"swiftCode\": \"SCBLSG22XXX\",\n      \"bank\": \"Standard Chartered Bank (Singapore) Limited\",\n      \"branch\": \"001\",\n      \"accountNumber\": \"0104644575\",\n      \"currency\": \"CNY\",\n      \"iban\": \"SG65SCBLSG678901212345\",\n      \"openingDate\": \"2023-07-24\",\n      \"closingDate\": \"2024-04-30\",\n      \"accountStatus\": \"C\",\n      \"address\": {\n        \"line1\": \"C/O STANDARD CHARTERED BANK\",\n        \"line2\": \"OPS, RAFFLES ROAD, L2-ZONE 1,ZI\",\n        \"line3\": \"SINGAPORE\"\n      }\n    }\n  ],\n  \"metadata\": {\n    \"page\": 5,\n    \"size\": 2,\n    \"total\": 195\n  },\n  \"links\": {\n    \"self\": \"/openapi/accounts/v3?page=5&size=2\",\n    \"next\": \"/openapi/accounts/v3?page=6&size=2\"\n  }\n}"}}},"400":{"description":"Invalid request. Missing or invalid data.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message. <br /> Note: This is a sample error message. Please refer to the returned response for the actual message and adjust your payload accordingly and try again.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Invalid Account Number","errorCode":"AER-2002"}}}},"404":{"description":"Resource Not found.","content":{"application/json":{}}},"403":{"description":"Data access profile (DAP) check failure. Please use the valid accountId tagged to the respective groupId.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Account is not authorised","errorCode":"AER-2000"}}}},"500":{"description":"Internal server error. This indicates an error in the API server.","content":{"application/json":{"schema":{"properties":{"errorMessage":{"type":"string","description":"The error message.","example":"Invalid Account Number"},"errorCode":{"type":"string","description":"The error code.","example":"AER-2002"}}},"example":{"errorMessage":"Internal server error","errorCode":"AER-1005"}}}},"503":{"description":"Microservice dependency is down or undergoing maintenance. Please try again later.","content":{"application/json":{}}}}}}},"components":{"schemas":{"SingleAccountBalance":{"type":"object","properties":{"accountBalances":{"type":"array","description":"The details of the account types balances in the account.","items":{"$ref":"#/components/schemas/AccountBalance"}}}},"Account":{"type":"object","properties":{"title":{"type":"string","description":"The account title/name.","example":"Your Account Name"},"owner":{"$ref":"#/components/schemas/Owner"},"type":{"type":"string","description":"The account type.","example":"CA"},"productCode":{"type":"string","description":"The unique identifier assigned to a specific product or account.","example":"201"},"productSubCode":{"type":"string","description":"The secondary code that provides additional information to further categorise or describe the product or account.","example":"CA01"},"swiftCode":{"maxLength":11,"type":"string","description":"Standard Chartered Bank's BIC, where the account is opened","example":"SCBLGB2LXXX"},"bank":{"type":"string","description":"The financial institution name of the account.","example":"Standard Chartered Bank"},"branch":{"type":"string","description":"The financial institution branch code of the account.","example":"UKC113"},"accountNumber":{"type":"string","description":"The account number.","example":"183512176"},"currency":{"maxLength":3,"minLength":3,"type":"string","description":"The ISO currency code of the account.","example":"GBP"},"iban":{"type":"string","description":"The International Bank Account Number, unique for each bank account.","example":"SG65SCBLSG678901212345"},"openingDate":{"type":"string","description":"The account opening date.","format":"date","example":"2022-03-01"},"closingDate":{"type":"string","description":"The account closing date.","format":"date","example":"2024-03-01"},"accountStatus":{"type":"string","description":"The status of the account.","maxLength":1,"example":"C"},"addressDetails":{"$ref":"#/components/schemas/Address"}}},"Owner":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the account.","example":"78694102"},"shortName":{"type":"string","description":"The company's name","example":"Singapore foods"}},"description":"The company details."},"BalanceAmount":{"type":"object","properties":{"amount":{"type":"number","description":"The balance amount. The whole amount has a maximum of 16 digits with up to two decimal points.","maxLength":16,"example":7.55},"currency":{"type":"string","description":"The ISO currency code of the balance amount.","maxLength":3,"minLength":3,"example":"SGD"}},"description":"The details of the balance amount and currency."},"Address":{"type":"object","properties":{"line1":{"maxLength":35,"minLength":0,"type":"string","description":"Line 1 of the address.","example":"BNN ROAD"},"line2":{"maxLength":35,"minLength":0,"type":"string","description":"Line 2 of the address.","example":"SINGAPORE"},"line3":{"maxLength":35,"minLength":0,"type":"string","description":"Line 3 of the address","example":"FACTOR COUNTRY"}},"description":"The address details."},"Metadata":{"type":"object","properties":{"page":{"maxLength":3,"type":"integer","description":"The page number to be returned.If this value is not provided, the default value used will be 1.","format":"int32","example":2},"size":{"maxLength":3,"type":"integer","description":"The number of records to return per page. If this value is not provided, the default value used will be 100.","format":"int32","example":10},"total":{"type":"integer","description":"The total number of records available.","format":"int32","example":180}},"description":"The pagination details of the returned results."},"CreditDebitIndicator":{"maxLength":10,"type":"string","description":"Indicates whether the specified balance is positive (credit) or negative (debit). Zero balance is considered as positive.","example":"Credit","enum":["Credit","Debit"],"x-enum-varnames":["CREDIT","DEBIT"]},"AccountTransaction":{"type":"object","properties":{"accountId":{"maxLength":34,"type":"string","description":"The account number.","example":"0101355572"},"accountName":{"maxLength":35,"type":"string","description":"The account name.","example":"Your Account Name"},"swiftBic":{"maxLength":11,"type":"string","description":"The BIC of the account number.","example":"SCBLSG22XXX"},"ccyCode":{"maxLength":3,"type":"string","description":"The ISO currency code of the account.","example":"SGD"},"transactionReference":{"maxLength":17,"type":"string","description":"The customer reference provided by the client during the transaction.","example":"CR53948584685189316801"},"creditDebitIndicator":{"$ref":"#/components/schemas/CreditDebitIndicator"},"transactionAmount":{"$ref":"#/components/schemas/TransactionAmount"},"valueDateTime":{"type":"string","description":"The date when the transaction happened.","format":"date-time","example":"2024-03-31T08:30:36Z"},"transactionInformation":{"maxLength":200,"type":"array","description":"The narrations (line 1 to 6) pertaining to the transaction.","example":["TT|PAMARTC03","SCBSINGAPORENEWSGDTERC01|STANDARD CHARTE","HK5IT233100002|LESSOFCHG0","UVTTESTING PRIORITY1","0101355572|SCBLSG22XXX","SGD|1.19|1.00|LESSOFCHG0"],"items":{"type":"string"}},"transactionDescriptionShort":{"maxLength":44,"type":"string","description":"The short transaction description.","example":"HK5IT24033100002SCBSINGAPORENEWSGDTERC01R"},"transactionDescription":{"maxLength":44,"type":"string","description":"The long transaction description.","example":"HK5IT24033100002SCBSINGAPORENEWSGDTERC01R  TC5"},"payAmount":{"maxLength":16,"type":"number","description":"The payment amount. The whole amount has a maximum of 16 digits with up to two decimal points.","format":"double","example":1876.19},"payReference":{"maxLength":17,"type":"string","description":"The payment reference.","example":"SG5IT24033100002"},"payCcy":{"maxLength":3,"type":"string","description":"The ISO currency code of the payment.","example":"SGD"},"approvalSeqNo":{"maxLength":40,"type":"string","description":"The unique number generated for each transaction.","example":"447009809490000002159"},"bookingDate":{"type":"string","description":"The transaction date.","format":"date","example":"2024-03-31"},"payee":{"$ref":"#/components/schemas/PayeeDetails"},"payer":{"$ref":"#/components/schemas/PayerDetails"},"bankTransactionCode":{"$ref":"#/components/schemas/BankTransactionCode"},"balance":{"$ref":"#/components/schemas/Balance"},"chargeAmount":{"$ref":"#/components/schemas/ChargeAmount"},"currencyExchange":{"$ref":"#/components/schemas/CurrencyExchange"}}},"CurrencyExchange":{"type":"object","properties":{"contractIdentification":{"type":"string","description":"The unique identification to identify the foreign exchange contract.","example":"FXDLN0005"},"exchangeRate":{"maxLength":15,"type":"string","description":"The exchange rate applied for the FX transaction.","example":"1"}},"description":"The currency exchange information."},"ChargeAmount":{"type":"object","properties":{"amount":{"type":"number","description":"The charge amount. The whole amount has a maximum of 16 digits with up to two decimal points.","format":"double","example":22.9},"currency":{"type":"string","description":"The ISO currency code of the charge amount.","minLength":3,"maxLength":3,"example":"SGD"}},"description":"The details of the charge amount and currency."},"AccountType":{"type":"string","enum":["CA","C","SA","S","OA"]},"BulkAccountDetails":{"type":"object","properties":{"accounts":{"type":"array","description":"The details of the accounts.","items":{"$ref":"#/components/schemas/Account"}},"metadata":{"$ref":"#/components/schemas/Metadata"},"links":{"$ref":"#/components/schemas/Links"}}},"TransactionAmount":{"type":"object","properties":{"amount":{"type":"number","description":"The debit amount or credit amount based on transactions.creditDebitIndicator.","maxLength":16,"format":"double","example":1.19},"currency":{"type":"string","description":"The ISO currency code of the balance amount.","maxLength":3,"minLength":3,"example":"HKD"}},"description":"The details of the transaction amount and currency."},"AccountStatus":{"type":"string","enum":["O","A","U","C","D"],"x-enum-descriptions":["Open","Active","Unclaimed","Closed","Dormant"]},"PayeeDetails":{"type":"object","properties":{"name":{"type":"string","description":"The beneficiary name.","example":"YYY Acc Name"},"nameInLocalLanguage":{"type":"string","example":"于乐","description":"The beneficiary name in local language."},"accountNumber":{"type":"string","description":"The Payee beneficiary account number.","example":"0101355572"},"bank":{"type":"string","description":"The beneficiary bank code.","example":"CITLSGKXXXX"}},"description":"The details of the beneficiary."},"PayerDetails":{"type":"object","description":"The details of the payer.","properties":{"name":{"type":"string","example":"KAB Sports","description":"The payer name."},"nameInLocalLanguage":{"type":"string","example":"于乐","description":"The payer name in local language."},"accountNumber":{"type":"string","example":17161082,"description":"The payer account number."},"bank":{"type":"string","example":"SCBLSG22XXX","description":"The payer bank code."}}},"BankTransactionCode":{"type":"object","properties":{"code":{"type":"string","description":"The BAI code.","example":"295"},"subCode":{"type":"string","description":"The transaction code. Based on the product type.","example":"TC5"}},"description":"The bank transaction codes."},"AccountBalance":{"type":"object","properties":{"accountId":{"type":"string","description":"The account number.","maxLength":34,"example":"0101355572"},"swiftBic":{"type":"string","description":"The BIC of the account number.","maxLength":11,"example":"SCBLSG22XXX"},"currency":{"type":"string","description":"The ISO currency code of the account.","maxLength":3,"minLength":3,"example":"SGD"},"balances":{"type":"array","description":"The details of the account types and balances in the account.","items":{"allOf":[{"$ref":"#/components/schemas/Balance"},{"type":"object","properties":{"businessDate":{"type":"string","description":"The date of the balance to be retrieved.","format":"date","example":"2024-04-15"}}}]}}}},"BulkAccountBalance":{"type":"object","properties":{"accountBalances":{"type":"array","description":"The details of the account types and balances in the account.","items":{"$ref":"#/components/schemas/AccountBalance"}},"metadata":{"$ref":"#/components/schemas/Metadata"},"links":{"$ref":"#/components/schemas/Links"}}},"AccountTransactions":{"type":"object","properties":{"transactions":{"type":"array","description":"The details of the transactions.","items":{"$ref":"#/components/schemas/AccountTransaction"}},"metadata":{"$ref":"#/components/schemas/Metadata"},"links":{"$ref":"#/components/schemas/Links"}}},"Links":{"type":"object","properties":{"self":{"type":"string","description":"The URL of the page returned.","example":"/baseUrl/endpoint/?queryParam1=value1&queryParam2=value2"},"next":{"type":"string","description":"The URL of the page after the returned page.","example":"/baseUrl/endpoint/?queryParam1=value1&queryParam2=value2"}},"description":"The URLs of the pagination results."},"BalanceType":{"type":"string","description":"The balance type based on opening, current, and closing balance. <table>\n  <tr>\n    <th>Value</th>\n    <th>Description</th>\n  </tr>\n  <tr>\n    <td>OpeningAvailable</td>\n    <td>Opening available balance includes overdraft (OD) limit</td>\n  </tr>\n  <tr>\n    <td>OpeningActual</td>\n    <td>Opening balance excludes OD limit</td>\n  </tr>\n  <tr>\n    <td>OpeningBooked</td>\n    <td>Opening ledger balance</td>\n  </tr>\n  <tr>\n    <td>ClosingAvailable</td>\n    <td>Closing available balance includes OD limit</td>\n  </tr>\n  <tr>\n    <td>ClosingActual</td>\n    <td>Closing balance excludes OD limit</td>\n  </tr> \n  <tr>\n    <td>ClosingBooked</td>\n    <td>Closing ledger balance</td>\n  </tr>\n</table>","maxLength":30,"example":"ClosingAvailable","enum":["OpeningAvailable","OpeningActual","OpeningBooked","ClosingAvailable","ClosingActual","ClosingBooked"],"x-enum-varnames":["OPENING_AVAILABLE","OPENING_ACTUAL","OPENING_BOOKED","CLOSING_AVAILABLE","CLOSING_ACTUAL","CLOSING_BOOKED"]},"Balance":{"type":"object","description":"The details of the account types and balances in the account.","properties":{"balanceAmount":{"$ref":"#/components/schemas/BalanceAmount"},"creditDebitIndicator":{"$ref":"#/components/schemas/CreditDebitIndicator"},"type":{"$ref":"#/components/schemas/BalanceType"}}},"AccountDetails":{"type":"object","properties":{"accounts":{"type":"array","description":"The details of the accounts.","items":{"$ref":"#/components/schemas/Account"}}}}}}}