Sign in

Create client

documented

Create a new client.

POST /accounting/account/{accountId}/users/clientsClientsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.freshbooks.com/accounting/account/{{$account_id}}/users/clients" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Api-Version: alpha" \
  -H "Accept: application/json" \
  --data-raw '{"client": {"fname": "{{$fname}}", "lname": "{{$lname}}", "email": "{{$email}}", "organization": "{{$organization}}", "p_street": "{{$street}}", "p_street2": "{{$street2}}", "p_city": "{{$city}}", "p_province": "{{$province}}", "p_code": "{{$postal_code}}", "p_country": "{{$country}}", "currency_code": "{{$currency_code}}", "language": "{{$language}}", "contacts": [{"email": "{{$contact_email}}", "fname": "{{$contact_fname}}", "lname": "{{$contact_lname}}", "phone1": "{{$contact_phone}}"}]} }'"