Request
[GET] /api/v1/client/get-clients
Content-Type: application/json
authorization: Bearer + <token finan user>
Body
Name | Required | Type | Description |
---|---|---|---|
client_id | optional | string | Client ID |
sort | optional | string | desc/asc |
page | optional | int | default=1 |
page_size | optional | int | default=100 |
count | optional | true/false | default=true |
Response
Content-Type: application/json
Body
Name | Type | Description |
---|---|---|
id | uuid.UUID | ID |
business_id | uint64 | |
client_secret | string | client secret |
name | string | name |
owner_id | uuid.UUID | owner id |
webhook_url | string | webhook url |
is_active | bool | true/false |
created_at | time.Time | |
updated_at | time.Time | |
deleted_at | time.Time |
Errors
Status | Messsage |
---|---|
200 | Success |
401 | Unauthorized |
Example
Request
[GET] /api/v1/client/get-clients
Response
{
"message": {
"content": "Thực thi API thành công"
},
"code": 102000,
"request_id": "d5f72213-a078-4ab9-bebc-4ffa467c7860",
"data": {
"id": "bf14c4f8-fce8-4403-92e3-8326ef200de9",
"business_id": 987654,
"client_secret": "s3cr3tT0k3n",
"name": "Sample Client",
"owner_id": "a9d32d43-cbe1-4eed-a7e7-589d36d8db42",
"webhook_url": "https://example.com/webhook",
"is_active": true,
"created_at": "2024-08-30T09:53:47.617692",
"updated_at": "2024-08-30T09:53:47.617705",
"deleted_at": null
}
}