New Client

POST https://api.freshbooks.com/accounting/account/MJx3p/users/clients

Note: If you do not add an organization to your Client object, organization will automatically be added as the client's first and last name.

Request Body

{"client"=>{"fname"=>"first1", "lname"=>"last1", "email"=>"email1@freshbooks.com", "organization"=>"company1", "vat_name"=>nil, "vat_number"=>"", "status"=>nil, "note"=>nil, "home_phone"=>nil, "userid"=>nil, "source"=>nil, "highlight_string"=>nil, "p_street"=>"1655 Dupont St. W.", "p_street2"=>nil, "p_city"=>"Toronto", "p_country"=>"Canada", "p_province"=>"Ontario", "p_code"=>"M6P 3T1", "currency_code"=>"USD", "language"=>"en", "last_activity"=>nil, "face"=>nil, "late_fee"=>nil, "late_reminders"=>[], "contacts"=>[{"email"=>"email+2@freshbooks.com", "fname"=>"first2", "lname"=>"last2", "phone1"=>nil, "userid"=>nil, "face"=>nil}, {"email"=>"email+3@freshbooks.com", "fname"=>"first3", "lname"=>"last3", "phone1"=>nil, "userid"=>nil, "face"=>nil}]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"response":{"result":{"client":{"accounting_systemid":"wkMd2g","allow_late_fees":true,"allow_late_notifications":true,"bus_phone":"","company_industry":null,"company_size":null,"currency_code":"USD","direct_link_token":null,"email":"api.freshbooks@gmail.com","fax":"","fname":"Nicholas","has_retainer":null,"home_phone":null,"id":92402,"language":"en","last_activity":null,"last_login":null,"level":0,"lname":"Jaar","mob_phone":"","note":null,"notified":false,"num_logins":0,"organization":"Space Is Only Noise","p_city":"Toronto","p_code":"M6P 3T1","p_country":"","p_province":"Ontario","p_street":"1655 Dupont St. W.","p_street2":"","pref_email":true,"pref_gmail":false,"retainer_id":null,"role":"client","s_city":"","s_code":"","s_country":"","s_province":"","s_street":"","s_street2":"","signup_date":"2019-05-08 19:25:29","statement_token":null,"subdomain":null,"updated":"2019-05-08 15:25:29","userid":92402,"username":"nicholasjaar2","vat_name":null,"vat_number":null,"vis_state":0}}}}