API Reference

Get Clients

Request

[GET] /api/v1/client/get-clients
Content-Type: application/json
authorization: Bearer + <token finan user>

Body

NameRequiredTypeDescription
client_idoptionalstringClient ID
sortoptionalstringdesc/asc
pageoptionalintdefault=1
page_sizeoptionalintdefault=100
countoptionaltrue/falsedefault=true

Response

Content-Type: application/json

Body

NameTypeDescription
iduuid.UUIDID
business_iduint64
client_secretstringclient secret
namestringname
owner_iduuid.UUIDowner id
webhook_urlstringwebhook url
is_activebooltrue/false
created_attime.Time
updated_attime.Time
deleted_attime.Time

Errors

StatusMesssage
200Success
401Unauthorized

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
  }
}