Wallets
This guide explains how to interact with the admin manage the wallets crud.
Get All Orders
Endpoint
- Method: GET
- URL:
/v1/admin/wallets
Request Headers
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Accept | application/json | Yes |
| Authorization | Bearer token | Yes |
Query Parameters
| Parameter | Type | Description | Required | Default |
|---|---|---|---|---|
| search_text | string | orders's balance, customer and coach names | No | null |
Success Response
{
"success": true,
"message": "تم جلب بيانات المدرب بنجاح",
"data": {
"wallets": [
{
"id": "uuid",
"walletOwner": "SYSTEM",
"ownerType": "نظام",
"balance": "48425.40"
},
]
},
"statusCode": 200
}
Error Response
Unauthorized (401)
{
"success": false,
"message": "يجب عليك تسجيل الدخول",
"data": [],
"statusCode": 401
}