Skip to main content

Get All User Wallet Locks API

Overview

Retrieve a list of all user wallet lock records with optional filtering capabilities. This API allows you to fetch wallet lock information based on various criteria such as wallet ID, wallet type, user wallet ID, and user ID.

API Details

Endpoint

GET https://api.gafapay.com:8443/gafapay/v3/transaction/user_wallet_lock

Headers

companyid: 59388167894b4d10a04fe5da3b8a2104
requestid: b1910650-f892-496a-b5a3-b0560845c4a1
authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlNDk0Njg3N2YxODk0NmIyOTlmZGRmMGYyMTMzZGNiYSIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNzU4OTY2OTAzfQ.4e8MwJFrhoh2-vSvyR-s828TmEbgpYp-ocHlfo3Fnu4
Content-Type: application/json

Query Parameters

ParameterTypeRequiredDescriptionExample
wallet_idstringNoFilter by wallet ID?wallet_id=3a3d4e585aeb49e8bf3f3996fca0f82f
wallet_typeintegerNoFilter by wallet type (1=Main, 2=Category, 3=Saving, 4=Revenue, 5=Commission)?wallet_type=3
user_wallet_idstringNoFilter by user wallet ID?user_wallet_id=fe058fb46ff24584a542144e0efe51eb
user_idstringNoFilter by user ID?user_id=e4946877f18946b299fddf0f2133dcba
skipintegerNoNumber of records to skip (pagination)?skip=0
limitintegerNoMaximum number of records to return (pagination)?limit=10
start_datelongNoFilter by start date (Unix timestamp)?start_date=1758644000
end_datelongNoFilter by end date (Unix timestamp)?end_date=1759157657

cURL Request

curl --location 'https://api.gafapay.com:8443/gafapay/v3/transaction/user_wallet_lock?user_id=e4946877f18946b299fddf0f2133dcba' \
--header 'authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlNDk0Njg3N2YxODk0NmIyOTlmZGRmMGYyMTMzZGNiYSIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNzU4OTY2OTAzfQ.4e8MwJFrhoh2-vSvyR-s828TmEbgpYp-ocHlfo3Fnu4' \
--header 'companyid: 59388167894b4d10a04fe5da3b8a2104' \
--header 'requestid: b1910650-f892-496a-b5a3-b0560845c4a1' \
--header 'Content-Type: application/json'

Response

{
"success": 1,
"error": [],
"data": {
"user_wallet_locks": [
{
"id": "ceef44967b924390a6c2e911049a55a1",
"wallet_id": "3a3d4e585aeb49e8bf3f3996fca0f82f",
"wallet_type": 3,
"user_wallet_id": "fe058fb46ff24584a542144e0efe51eb",
"currency_id": "1f1519903ed240578f071aa45cb479f2",
"locked_amount": 10.0,
"locked_date": 1758644007,
"maturity_date": 1759157657,
"user_id": "e4946877f18946b299fddf0f2133dcba",
"is_active": true,
"created_by": "e4946877f18946b299fddf0f2133dcba",
"created_date": 1758644007,
"updated_by": "e4946877f18946b299fddf0f2133dcba",
"updated_date": 1758645216
}
]
}
}

Response Fields

FieldTypeDescription
successintegerStatus indicator (1 = success, 0 = failure)
errorarrayArray of error messages (empty on success)
data.user_wallet_locksarrayArray of user wallet lock objects

User Wallet Lock Object Fields

FieldTypeDescription
idstringUnique identifier of the wallet lock
wallet_idstringUnique identifier of the wallet
wallet_typeintegerType of wallet (1=Main, 2=Category, 3=Saving, 4=Revenue, 5=Commission)
user_wallet_idstringUnique identifier of the user wallet
currency_idstringUnique identifier of the currency
locked_amountdoubleAmount locked in the wallet
locked_datelongUnix timestamp when the amount was locked
maturity_datelongUnix timestamp when the lock expires
user_idstringUnique identifier of the user
is_activebooleanWhether the wallet lock is active
created_bystringUser ID who created the wallet lock
created_datelongUnix timestamp when the record was created
updated_bystringUser ID who last updated the wallet lock
updated_datelongUnix timestamp when the record was last updated

Filtering Options

  • By Wallet: Filter locks for a specific wallet using wallet_id
  • By Wallet Type: Filter locks by wallet type using wallet_type
  • By User Wallet: Filter locks for a specific user wallet using user_wallet_id
  • By User: Filter locks for a specific user using user_id
  • By Date Range: Filter locks within a date range using start_date and end_date