Edit Client
put
https://api.payant.ng/clients/:id
Edit Client

Request

1
curl https://api.payant.ng/clients/1 \
2
-H "Content-Type: application/json" \
3
-H "Authorization: Bearer SECRET_KEY" \
4
-d '{ "company_name": "Albert Specialist Hospital",
5
"first_name": "Albert",
6
"last_name": "Jane",
7
"email": "[email protected]",
8
"phone": "+2348012345678",
9
"website": "http://www.alberthospital.com",
10
"address": "Wase II" }' \
11
-X PUT
Copied!

Response

1
{
2
"status": "success",
3
"message": "Client updated successfully.",
4
"data": {
5
"company_id": 1,
6
"name": "Albert Specialist Hospital",
7
"first_name": "Albert",
8
"last_name": "Jane",
9
"email": "[email protected]",
10
"phone": "+2348012345678",
11
"website": "http://www.alberthospital.com",
12
"address": "Wase II",
13
"type": "Customer",
14
"settlement_bank": "",
15
"account_name": "",
16
"account_number": "",
17
"status": "1",
18
"created_at": "2016-12-21 17:19:10",
19
"updated_at": "2016-12-21 17:23:31",
20
"id": 1
21
}
22
}
Copied!
Last modified 2yr ago