Table of Contents
- API Usage Guide
- API Command Reference
- add_booking
- add_client
- add_invoice
- add_resource
- approve_request
- authenticate_user
- del_booking
- del_bookings
- del_client
- del_invoice
- del_resource
- email_client
- gen_invoice
- get_activity
- get_availability
- get_booking
- get_booking_type
- get_booking_types
- get_bookings
- get_client
- get_consumable_levels
- get_invoice
- get_invoices
- get_messages
- get_reminders
- get_resource
- get_resource_availability
- get_setting
- get_template
- get_user
- get_users_logged_in
- get_venue
- get_venue_groups
- get_venues
- get_venues_in_group
- get_venues_in_use
- get_watches
- mod_booking
- mod_client
- mod_invoice
- mod_resource
- mod_venue
- notify_user
- reject_request
- restore_booking
- set_setting
- set_template
- util_api_usage
- util_from_epoch
- util_to_epoch
- Appendix A - Activity Codes
- Appendix B - Setting Names
- Appendix C - Error Handling
- Code Samples
- Troubleshooting
- Release Notes
← Hide Table of Contents
MIDAS API: mod_client
Available in API 2.0+
Modifies an existing client record.Two sets of parameters are required (outlined in the tables below) - the first set controls which client(s) to modify, the second set specifies which parameters of the selected client(s) to modify.
Controlling which client(s) to modify
Required Parameters (at least 1 required) | Possible Values | Description |
id | Client ID | The unique numerical id of the client (which can be determined from the "get_client" call) Passing this parameter will override all other required parameters in this table |
client | String | The name of the existing client to be modified |
org | String | Organization name |
Email address | Email address | |
address | String | Postal/Mailing address |
phone | Number | Telephone number |
fax | Number | Fax number |
mobile | Number | Mobile/Cell number |
notes | String | Notes about the client |
tax_exempt | 0 | 1 | Specifies whether the client is exempt from being charged tax on their invoices |
credit | Number | [MIDAS v4.12+] Applies an initial amount of credit to the client. Client credit is then automatically applied to their subsequent invoices and decreased accordingly |
id
" parameter, or alternatively as many of the other above parameters as possible to ensure a specific individual client is modified, rather than a group of clients. For example, if you only pass the "org
" parameter alone ALL clients in the database that match the organization name you supply will be modified. Whereas passing both the client name and the organization name will ensure that only client records that match BOTH will be modified. Passing "client_id
" alone will ensure that only one client will be modified.
Setting new values
Required Parameters (at least 1 required) | Possible Values | Description |
new_client | String | The new Client name |
new_org | String | The new Organization name |
new_email | Email address | The new Email address |
new_address | String | The new Postal/Mailing address |
new_phone | Number | The new Telephone number |
new_fax | Number | The new Fax number |
new_mobile | Number | The new Mobile/Cell number |
new_notes | String | New notes about the client |
new_tax_exempt | 0 | 1 | Specifies whether the client is exempt from being charged tax on their invoices |
new_credit | Number | [MIDAS v4.12+] The new amount of credit to attach to the client |
Example Response |
{ "clients_modified":"1" } |
Variables Returned | Description |
clients_modified | The number of clients modified |