Skip to content

Query Customer List

Function Description

  • Query customer list

Query Customer List API

Request URL

  • /payee/custom/list

Request Method

  • GET

Request Parameter

The request parameters are as follows:

ParameterRequiredTypeDefault ValueDescription
pagenoNnumber1Page number, supports up to 1000 pages
pagesizeNnumber20Display the number of items per page, supporting a maximum of 100 items
starttimeNnumber-Customer creation start time, second level timestamp
endtimeNnumber-Customer creation end time, second level timestamp
mercustomidsNstring-Merchant customer ID, multiple IDs separated by commas in english, length limit 512 characters, examples: u001, u002
customidsNstring-System customer ID, multiple IDs separated by english commas, length limit 512 characters, example: 1187, 2f131
identityNstring-ID number (sensitive information, need system public key encryption, length limit 64 characters
cardnoNstring-Bank account (sensitive information, requires system public key encryption processing), must be a number, length limit 13 to 19 characters
bankcodeNstring-Bank code
ibanaccountNstring-IBAN, letters and numbers, length limit 34 characters
name_eNstring-Customer english name, supports fuzzy queries, length limit 64 characters
statusNnumber-Customer status
stcaccountNstring-STCPay (sensitive information, requires system public key encryption processing), supported formats:
5xxxxxxxx
9665xxxxxxxx
+9665xxxxxxxx
05xxxxxxxx

Response Parameter

The response parameters are as follows:

  • Response Body
ParameterTypeDescription
customidstringSystem customer ID
mercustomidstringMerchant customer ID
name_estringCustomer english name
name_astringCustomer arabic name
identitystringID number (sensitive information, encrypted with merchant public key)
identitypicstringID card photo URL (sensitive information, encrypted using merchant public key)
signpicstringSignature photo URL (sensitive information, encrypted using merchant public key)
banknamestringBank name
bankcodestringBank code
cardnostringBank account (sensitive information, encrypted using merchant public key)
ibanaccountstringIBAN
stcaccountstringSTCPay account (sensitive information, encrypted using merchant public key)
statusnumberCustomer status
statusdescstringCustomer status description
autoapprovalnumberWhether to enable automatic approval:
0: Disable
1: Enable
otpappnamestringProduct name for sending OTP verification
demand_perfectionarrayWhat information does the user currently need to improve
created_atnumberCreation time
updated_atnumberUpdate time

Response Parameter Example

json
{
    "code": 200,
    "message": "Request succeeded.",
    "data": [
        {
            "customid": "12ad4",
            "mercustomid": "u004",
            "name_e": "usera",
            "name_a": "usera",
            "identity": "hg3TiMx12VsW+m0a60FpIbU6k+ppfrWz5VAzpzRr8wOasTELnFuQqRO5bGLn/SUK8FhpfLqI+Mf9GqMFuKk7Ogh6izh2UkTbg5/kO8unT2pNsI1vqSuAKJP2QeMzKBORWAn878fLvNf10Y7drMimwP+FU3ChMVREaPMoosOIWdsDh13mFce6IfDQUBXqcHDeUZAdRZMvIyUBAAhp60d4J83BXuvZeQkrxKMnD34AhO0/gABRqiSWAWgNGv6UgBkiH0siLlevyKt674HZSRaMGh4tv5KXx/qWVTUGI7JGes5vh6iO1gy+5G6bd8amfUQ+J2W3UysyZGcNLrtBq5VfpQ==",
            "identitypic": "",
            "signpic": "",
            "bankname": "Riyad Bank",
            "bankcode": "1174c",
            "cardno": "OAz0pmLB/wKtKvyNHte+Bsq4D3FlKt5snflmh15PnyIV3nyuoLs10Xm5Eg2erq5jgeeRdrQsBqAF5FeUfthS4NaAtgVVTlOpe5vFLtt3RL6BQ1i829Fx7rSCjdoYXpBDdBG7D85D4OnNgJpSxXvAJMK8qZDZv4XPxwAgcH5b+VCu138kpOaBjDuzl9dVOgoX69xIBWrd+kkD7btGytKD4H+jvU+NK+/Lfo0I61gzc/xYe5VEwFxlH4Cr/TeMhH1opwM6F2V+Mi45JL58DprZx7N0TtPaUOyhioZn6MdbNlJoI1bLARjMJIyt6sB1ZsglLChDRLFDhkLonWrlYxZWhA==",
            "ibanaccount": "1234567892",
            "stcaccount": "",
            "status": 4,
            "statusdesc": "2023-06-15 06:12:54",
            "autoapproval": 1,
            "otpappname": "test",
            "demand_perfection": [
                "identitypic"
            ],
            "created_at": 1686809574,
            "updated_at": 1686809574
        }
    ],
    "sensitiveFields": [
        "identity",
        "identitypic",
        "signpic",
        "stcaccount",
        "cardno"
    ],
    "requestId": "5B7C31E52D37FF42627F18A20BD9AFB2"
}