Register Client

Request

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

Body

NameRequiredTypeDescription
namerequiredstringClient name

Response

Content-Type: application/json

Body

NameTypeDescription
iduuid.UUIDID --> This is your client ID
user_idstringuser_id --> This is your user_id from finan
client_secretstringThis will using for generate your signature
business_iduint64Your business ID

Errors

StatusMesssage
200Success
401Unauthorized

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