Skip to main content

Query User

Process​

Description:

  • Partners call this API to query the bank accounts of Users that have been synchronized to Baokim via the Synchronize User Accounts API.
  • Results are paginated.

API Information​

Method: POST

URL: {BASE_URL}/ats/user

Header: Signature — RSA-SHA1 signature of raw body (see Security).

Request​

Main Parameters​

Field NameData TypeRequiredDescription
request_idString✅Request ID, unique. Maximum 50 characters, only letters, numbers, _, ., -
request_timeDatetime✅Request time. Format: YYYY-MM-DD HH:mm:ss. Must not differ by more than 10 minutes from Baokim time
partner_codeString✅Partner code provided by Baokim. Used for signature verification and result filtering
codeString❌Filter by user code
user_idString❌Filter by user ID
account_noString❌Filter by account number
from_dateDatetime❌Filter by synchronization time from. Format: YYYY-MM-DD HH:mm:ss
end_dateDatetime❌Filter by synchronization time to. Format: YYYY-MM-DD HH:mm:ss
pageInteger❌Page number. Default 1
per_pageInteger❌Records per page, from 1 to 100. Default 15

Request Example​

{
"request_id": "REQ20250115103000",
"request_time": "2025-01-15 10:30:00",
"partner_code": "CASHPLUS",
"code": "USER001",
"page": 1,
"per_page": 20
}

Response​

note

HTTP 200 - Success

Main Parameters​

Field NameData TypeRequiredDescription
response_codeInteger✅Response code. 200 = success
response_messageString✅Response message
responseObject❌Paginated result (structure like Query Merchant). Missing on error

User Information (response.data[])​

Field NameData TypeDescription
partner_codeStringPartner code that synchronized the user
user_idStringUser ID
codeStringUser code
account_noStringAccount number for receiving funds
bank_noStringBank code
created_atDatetimeFirst synchronization time
updated_atDatetimeLast update time

Response Example​

{
"response_code": 200,
"response_message": "Success",
"response": {
"current_page": 1,
"data": [
{
"partner_code": "CASHPLUS",
"user_id": "100245",
"code": "USER001",
"account_no": "9876543210",
"bank_no": "970416",
"created_at": "2025-01-10 09:00:00",
"updated_at": "2025-01-12 14:20:00"
}
],
"from": 1,
"last_page": 1,
"per_page": 20,
"to": 1,
"total": 1
}
}

Error Codes​

Error CodeDescription
200Success
11Error during Baokim processing
104request_id or request_time invalid (wrong format, duplicate request_id, or differs by more than 10 minutes)
105partner_code invalid
120Signature invalid
201Invalid parameter (response_message indicates which field)