Request
[POST] /api/v1/client/create-client
Content-Type: application/json
authorization: Bearer + <token finan user>
Body
| Name | Required | Type | Description |
|---|---|---|---|
| name | required | string | Client name |
Response
Content-Type: application/json
Body
| Name | Type | Description |
|---|---|---|
| id | uuid.UUID | ID --> This is your client ID |
| user_id | string | user_id --> This is your user_id from finan |
| client_secret | string | This will using for generate your signature |
| business_id | uint64 | Your business ID |
Errors
| Status | Messsage |
|---|---|
| 200 | Success |
| 401 | Unauthorized |
Example
Request
[POST] /api/v1/create-client
{
"name": "Finan-One"
}
Response
{
"message": {
"content": "Bạn vừa thực hiện tạo thành công %s"
},
"code": 102001,
"request_id": "b02f03b9e9a5f99d0be670ae13707f22",
"data": {
"id": "a2474e40-dee1-4119-bc7f-d007e2d04cdb",
"user_id": "6a94fc45-ecef-49a1-ad90-bf9ed74c55a1",
"client_secret": "953b7c717c7f5cb26e007b06663b2ad6028f606424e0a0e2e9b238c639af7f75",
"business_id": 6
}
}