POST  Add Client


Resource

https://api.payant.ng/clients

Parameters

company_name String
Client's company name
first_name
required
String
Client's first name
last_name
required
String
Client's last name
email
required
String
Client's email address
phone
required
String
Client's phone number
address String
Client's address
type String
Client's type Customer, Staff or Vendor
settlement_bank String
Client's settlement bank
account_number String
Client's account number

Example

curl https://api.payant.ng/clients \
-H "Content-Type: application/json" \
-H "Authorization: Bearer SECRET_KEY" \
-d '{ "company_name": "Albert Specialist Hospital",
    "first_name": "Albert",
    "last_name": "Jane",
    "email": "jane@alberthospital.com",
    "phone": "+2348012345678",
    "website": "http://www.alberthospital.com",
    "address": "Wase II",
    "type": "Customer" }' \
-X POST 
            

Response

{
  "status": "success",
  "message": "Client created successfully.",
  "data": {
    "company_id": 1,
    "name": "Albert Specialist Hospital",
    "first_name": "Albert",
    "last_name": "Jane",
    "email": "jane@alberthospital.com",
    "phone": "+2348012345678",
    "website": "http://www.alberthospital.com",
    "address": "Wase II",
    "type": "Customer",
    "settlement_bank": "",
    "account_name": "",
    "account_number": "",
    "status": "1",
    "created_at": "2016-12-21 17:19:10",
    "updated_at": "2016-12-21 17:19:10",
    "id": 1
  }
}