Skip to main content

Fund a client

If your program allow subclient creation, this operation let you top up the main account for your subclients subtracting the balance from your account and sending funds to your subclients account.

HTTP Request

POST /clients/fund

Header Parameters

HeaderDescription
Authorization 
required
The Bearer token created in
Get authorization Token
Content-Type
required
application/json

Body Parameters

ParameterTypePatternDescription
client_id 
required
stringuuidClient's id to be funded.
amount 
required
floatdigitsAmount to be funded.

Example JSON Request:

{
"client_id": "12345abc-ebb5-56d8-3256-9875672a3455",
"amount": 1200.50
}

Example JSON Response:

{
"success": true,
"code": 0,
"message": "OK",
"data": {
"client": {
"id": "12345abc-ebb5-56d8-3256-9875672a3455",
"code": "CORP",
"name": "CAPSULE CORP",
"available": 50000,
"rfc": "XXXXXXXXXX"
},
"subclient": {
"id": "15aad21d-f6fb-481e-bb12-ae3256987ff0",
"name": "RED RIBBON",
"code": "REDRI",
"available": 1200.50 ,
"rfc": "YYYYYYYYYY"
}
}
}