Error Handling
Methods
- Account/
- Account/Auth/
- Account/Auth/TwoFactor/
- Account/BillingAddress/
- Account/ChangeOrder/Source/
- Account/ChatPassword/
- Account/Contact/
- Account/CreditCard/
- Account/Cycle/
- Account/Limits/
- Account/PasswordReset/
- Account/Paymethod/
- Account/SSH/Key/
- Account/Settings/
- Account/Subscriptions/
- Account/User/
- Account/User/StateData/
- Acronis/Backup/
- Asset/
- Asset/Connections/
- Asset/ControlPanel/Credentials/
- Asset/Measurements/
- Asset/Monitoring/
- Attribution/
- Basket/
- Basket/Domain/
- Basket/Item/
- Basket/Item/Config/
- Billing/
- Billing/Bill/
- Billing/Credit/
- Billing/CreditCard/Profile/
- Billing/Cycle/
- Billing/Invoice/
- Billing/Invoice/Preview/
- Billing/PayPal/Agreement/
- Billing/PayPal/Payment/
- Billing/Payment/
- Billing/Payment/Profile/
- BusinessEmail/Customer/
- BusinessEmail/Domain/
- Cloud/Backup/
- Cloud/Config/
- Cloud/IP/Pool/
- Cloud/Image/
- Cloud/Private/Parent/
- Cloud/Server/
- Cloud/Template/
- CloudSites/
- CloudSites/Usage/
- CodeGuard/User/
- Contact/
- Coupon/
- Coupon/Claim/
- Domain/
- Domain/Services/
- HostedEmail/Customer/
- HostedEmail/Domain/
- Licensing/
- Licensing/Cpanel/
- Licensing/Plesk/
- Market/Bundle/
- Market/Bundle/Package/
- Market/Cart/
- Market/Cart/Admin/Quote/
- Market/Cart/Discount/
- Market/Cart/Helpers/Configurator/
- Market/Cart/Item/
- Market/Package/
- Market/Package/Product/
- Market/Place/
- Meta/Timing/
- Migration/
- Migration/Account/
- Migration/Account/Server/
- Migration/Account/Server/Access/
- Migration/Destination/
- Monitoring/Bandwidth/
- Monitoring/Load/
- Monitoring/MWP/
- Monitoring/Services/
- Network/CDN/User/
- Network/CDN/Zone/
- Network/DNS/Domain/
- Network/DNS/Domain/Contact/
- Network/DNS/Domain/Nameserver/
- Network/DNS/Domain/Transfer/
- Network/DNS/Record/
- Network/DNS/Reverse/
- Network/DNS/Zone/
- Network/DNS/Zone/History/
- Network/Firewall/
- Network/Firewall/Ruleset/
- Network/IP/
- Network/LoadBalancer/
- Network/Pool/
- Network/Private/
- Network/Region/
- Network/SSHKey/
- Network/Util/
- Network/Zone/
- Notifications/
- OneTimeSecret/
- Order/AddOn/
- Product/
- Product/Addon/
- Product/Marketplace/
- Product/Series/
- Project/
- SSL/Certificate/
- Salesforce/Account/InterWorx/
- Salesforce/Chat/Auth/
- Salesforce/User/
- Server/
- Server/Auth/
- Server/Power/
- Server/VirtualDomain/
- Server/WHM/AccessHash/
- Server/WHM/DNS/
- Server/WHM/Firewall/
- Signup/Basic/
- Storage/Block/Cluster/
- Storage/Block/Volume/
- Storage/ObjectStore/
- Support/Alert/
- Support/Request/
- Support/Request/Attachment/
- Support/SystemStatus/
- Support/Ticket/Auth/
- Tags/Product/
- UserTask/
- Utilities/Info/
- VIP/
- VMware/vCloud/vDC/
- VPN/
- VPN/User/
- WWW/Cart/
- WordPress/Domain/
API Documentation (API Version bleed)
Contact/
DESCRIPTION
This section contains methods to update and manipulate contact data.
create
URL:
https://api.liquidweb.com/bleed/Contact/create
Description:
Create a new contact
Parameters:
Parameter | Type | Notes | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
address | A valid street address, up to 150 characters in length. | |||||||||||||
address2 | A valid street address, up to 150 characters in length. | |||||||||||||
city | A valid city name. | |||||||||||||
contact | A string permitting tabs, carriage returns and newlines | |||||||||||||
contact_role | One of: 'individual', 'organization' | |||||||||||||
contact_role_id | A valid id number (a positive integer). | |||||||||||||
country | A valid country. | |||||||||||||
emails | An array of associative arrays containing | |||||||||||||
| ||||||||||||||
fname | A valid name, up to 100 characters in length. | * Required | ||||||||||||
foreign_tax_type | A single word, consisting of only letters and digits. | |||||||||||||
id | A valid id number (a positive integer). | |||||||||||||
lname | A valid name, up to 100 characters in length. | * Required | ||||||||||||
mname | A valid name, up to 100 characters in length. | |||||||||||||
organization | A valid company name, up to 100 characters in length. | |||||||||||||
phones | An array of associative arrays containing | |||||||||||||
| ||||||||||||||
postal_code | A valid postal code. | |||||||||||||
social | An array of associative arrays containing | |||||||||||||
| ||||||||||||||
state | A valid state or province. | |||||||||||||
tax_exempt | A boolean value (0 or 1). | |||||||||||||
tax_exempt_id | A valid tax or tax exemption id. | * Required if:
| ||||||||||||
tax_exempt_reason | A string of text, containing no newlines or other control characters. | * Required if:
| ||||||||||||
tax_id | A valid tax or tax exemption id. | * Required if:
| ||||||||||||
time_zone | A valid timezone with a word, a forward-slash, and another word (e.g. US/Eastern) and any number of trailing forward slashes and words (e.g. America/Argentina/BuenosAires) | |||||||||||||
title | A string consisting of only letters, digits, hyphens, spaces, and underscores. | |||||||||||||
type | The value: 'main' | |||||||||||||
updated_date | A valid date and time in YYYY-MM-DD HH:MM:SS-TZ format. | |||||||||||||
validated | A boolean value (0 or 1). |
Returns:
Field | Type | Notes | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
accnt | A valid account number, up to 6 digits in length. | * Optional | ||||||||||||
address | A valid street address, up to 150 characters in length. | * Optional | ||||||||||||
address2 | A valid street address, up to 150 characters in length. | * Optional | ||||||||||||
city | A valid city name. | * Optional | ||||||||||||
contact | A string permitting tabs, carriage returns and newlines | * Optional | ||||||||||||
contact_role | One of: 'individual', 'organization' | * Optional | ||||||||||||
contact_role_id | A valid id number (a positive integer). | * Optional | ||||||||||||
country | A valid country. | * Optional | ||||||||||||
emails | An array of associative arrays containing | * Optional | ||||||||||||
| ||||||||||||||
fname | A valid name, up to 100 characters in length. | |||||||||||||
foreign_tax_type | A single word, consisting of only letters and digits. | * Optional | ||||||||||||
id | A valid id number (a positive integer). | * Optional | ||||||||||||
lname | A valid name, up to 100 characters in length. | |||||||||||||
mname | A string of text, containing no newlines or other control characters. | * Optional | ||||||||||||
organization | A valid company name, up to 100 characters in length. | * Optional | ||||||||||||
phones | An array of associative arrays containing | * Optional | ||||||||||||
| ||||||||||||||
postal_code | A valid postal code. | * Optional | ||||||||||||
social | An array of associative arrays containing | * Optional | ||||||||||||
| ||||||||||||||
state | A valid state or province. | * Optional | ||||||||||||
tax_exempt | A boolean value (0 or 1). | * Optional | ||||||||||||
tax_exempt_id | A valid tax or tax exemption id. | * Required if:
| ||||||||||||
tax_exempt_reason | A string of text, containing no newlines or other control characters. | * Required if:
| ||||||||||||
tax_id | A valid tax or tax exemption id. | * Required if:
| ||||||||||||
time_zone | A valid timezone with a word, a forward-slash, and another word (e.g. US/Eastern) and any number of trailing forward slashes and words (e.g. America/Argentina/BuenosAires) | * Optional | ||||||||||||
title | A string consisting of only letters, digits, hyphens, spaces, and underscores. | * Optional | ||||||||||||
type | One of: 'billing', 'main', 'technical' | * Optional | ||||||||||||
updated_date | A valid date and time in YYYY-MM-DD HH:MM:SS-TZ format. | * Optional | ||||||||||||
validated | A boolean value (0 or 1). | * Optional |
Possible Errors:
Refer to the Error Handling documentation for the list of exception types
details
URL:
https://api.liquidweb.com/bleed/Contact/details
Description:
show the details of one specific contact
Parameters:
Parameter | Type | Notes |
---|---|---|
alsowith | A single word, consisting of only letters, digits, and underscores. | |
id | A positive integer value (i.e. 1 and up). | * Required |
Returns:
Field | Type | Notes | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
accnt | A valid account number, up to 6 digits in length. | * Optional | ||||||||||||
address | A valid street address, up to 150 characters in length. | * Optional | ||||||||||||
address2 | A valid street address, up to 150 characters in length. | * Optional | ||||||||||||
city | A valid city name. | * Optional | ||||||||||||
contact | A string permitting tabs, carriage returns and newlines | * Optional | ||||||||||||
contact_role | One of: 'individual', 'organization' | * Optional | ||||||||||||
contact_role_id | A valid id number (a positive integer). | * Optional | ||||||||||||
country | A valid country. | * Optional | ||||||||||||
emails | An array of associative arrays containing | * Optional | ||||||||||||
| ||||||||||||||
fname | A valid name, up to 100 characters in length. | |||||||||||||
foreign_tax_type | A single word, consisting of only letters and digits. | * Optional | ||||||||||||
id | A valid id number (a positive integer). | * Optional | ||||||||||||
lname | A valid name, up to 100 characters in length. | |||||||||||||
mname | A string of text, containing no newlines or other control characters. | * Optional | ||||||||||||
organization | A valid company name, up to 100 characters in length. | * Optional | ||||||||||||
phones | An array of associative arrays containing | * Optional | ||||||||||||
| ||||||||||||||
postal_code | A valid postal code. | * Optional | ||||||||||||
social | An array of associative arrays containing | * Optional | ||||||||||||
| ||||||||||||||
state | A valid state or province. | * Optional | ||||||||||||
tax_exempt | A boolean value (0 or 1). | * Optional | ||||||||||||
tax_exempt_id | A valid tax or tax exemption id. | * Required if:
| ||||||||||||
tax_exempt_reason | A string of text, containing no newlines or other control characters. | * Required if:
| ||||||||||||
tax_id | A valid tax or tax exemption id. | * Required if:
| ||||||||||||
time_zone | A valid timezone with a word, a forward-slash, and another word (e.g. US/Eastern) and any number of trailing forward slashes and words (e.g. America/Argentina/BuenosAires) | * Optional | ||||||||||||
title | A string consisting of only letters, digits, hyphens, spaces, and underscores. | * Optional | ||||||||||||
type | One of: 'billing', 'main', 'technical' | * Optional | ||||||||||||
updated_date | A valid date and time in YYYY-MM-DD HH:MM:SS-TZ format. | * Optional | ||||||||||||
validated | A boolean value (0 or 1). | * Optional |
Possible Errors:
Refer to the Error Handling documentation for the list of exception types
list
URL:
https://api.liquidweb.com/bleed/Contact/list
Description:
list all contacts by account
Parameters:
Parameter | Type | Notes |
---|---|---|
address | A string of text, containing no newlines or other control characters. | |
address2 | A string of text, containing no newlines or other control characters. | |
alsowith | A single word, consisting of only letters, digits, and underscores. | |
city | A string of text, containing no newlines or other control characters. | |
country | A string of text, containing no newlines or other control characters. | |
A string of text, containing no newlines or other control characters. | ||
fname | A string of text, containing no newlines or other control characters. | |
id | A positive integer value (i.e. 1 and up). | |
invoice_id | Either: a positive integer value (i.e. 1 and up).; or An array of a positive integer value (i.e. 1 and up). | |
ipaddr | A valid IP address (v4 or v6) | |
lname | A string of text, containing no newlines or other control characters. | |
mname | A string of text, containing no newlines or other control characters. | |
order_by | A valid SQL order by clause (cannot contain any subqueries). | |
organization | A string of text, containing no newlines or other control characters. | |
page_num | A positive integer value (i.e. 1 and up). | * Optional
|
page_size | A positive integer value (i.e. 1 and up). | * Optional
|
phone | A valid phone number. | |
postal_code | A string of text, containing no newlines or other control characters. | |
sort_order | One of: 'ASC', 'DESC', 'asc', 'desc' | |
state | A string of text, containing no newlines or other control characters. | |
tax_id | A string of text, containing no newlines or other control characters. | |
time_zone | A valid timezone with a word, a forward-slash, and another word (e.g. US/Eastern) and any number of trailing forward slashes and words (e.g. America/Argentina/BuenosAires) |
Returns:
Field | Type | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
item_count | A non-negative integer value (i.e. 0 and up). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
item_total | A non-negative integer value (i.e. 0 and up). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
items | An array of associative arrays containing | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
page_num | A positive integer value (i.e. 1 and up). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
page_size | A positive integer value (i.e. 1 and up). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
page_total | A positive integer value (i.e. 1 and up). |
Possible Errors:
Refer to the Error Handling documentation for the list of exception types
taxExemptReasons
URL:
https://api.liquidweb.com/bleed/Contact/taxExemptReasons
Description:
Retrieve a hash of valid tax exemption reasons, where the key is the code and the value is human-readable description.
Parameters:
No Values Defined
Returns:
Field | Type |
---|---|
reasons | An associative array of arbitrary keys and values. |
Possible Errors:
Refer to the Error Handling documentation for the list of exception types
update
URL:
https://api.liquidweb.com/bleed/Contact/update
Description:
update a contact given replacement fields for current fields.
Parameters:
Parameter | Type | Notes | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
address | A valid street address, up to 150 characters in length. | |||||||||||||
address2 | A valid street address, up to 150 characters in length. | |||||||||||||
city | A valid city name. | |||||||||||||
contact | A string permitting tabs, carriage returns and newlines | |||||||||||||
country | A valid country. | |||||||||||||
emails | An array of associative arrays containing | |||||||||||||
| ||||||||||||||
fname | A valid name, up to 100 characters in length. | |||||||||||||
foreign_tax_type | A single word, consisting of only letters and digits. | |||||||||||||
id | A positive integer value (i.e. 1 and up). | * Required | ||||||||||||
lname | A valid name, up to 100 characters in length. | |||||||||||||
mname | A valid name, up to 100 characters in length. | |||||||||||||
organization | A valid company name, up to 100 characters in length. | |||||||||||||
phones | An array of associative arrays containing | |||||||||||||
| ||||||||||||||
postal_code | A valid postal code. | |||||||||||||
social | An array of associative arrays containing | |||||||||||||
| ||||||||||||||
state | A valid state or province. | |||||||||||||
tax_exempt | A boolean value (0 or 1). | |||||||||||||
tax_exempt_id | A valid tax or tax exemption id. | |||||||||||||
tax_exempt_reason | A string of text, containing no newlines or other control characters. | |||||||||||||
tax_id | A valid tax or tax exemption id. | |||||||||||||
time_zone | A valid timezone with a word, a forward-slash, and another word (e.g. US/Eastern) and any number of trailing forward slashes and words (e.g. America/Argentina/BuenosAires) | |||||||||||||
title | A string consisting of only letters, digits, hyphens, spaces, and underscores. | |||||||||||||
updated_date | A valid date and time in YYYY-MM-DD HH:MM:SS-TZ format. | |||||||||||||
validated | A boolean value (0 or 1). |
Returns:
Field | Type | Notes | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
accnt | A valid account number, up to 6 digits in length. | * Optional | ||||||||||||
address | A valid street address, up to 150 characters in length. | * Optional | ||||||||||||
address2 | A valid street address, up to 150 characters in length. | * Optional | ||||||||||||
city | A valid city name. | * Optional | ||||||||||||
contact | A string permitting tabs, carriage returns and newlines | * Optional | ||||||||||||
contact_role | One of: 'individual', 'organization' | * Optional | ||||||||||||
contact_role_id | A valid id number (a positive integer). | * Optional | ||||||||||||
country | A valid country. | * Optional | ||||||||||||
emails | An array of associative arrays containing | * Optional | ||||||||||||
| ||||||||||||||
fname | A valid name, up to 100 characters in length. | |||||||||||||
foreign_tax_type | A single word, consisting of only letters and digits. | * Optional | ||||||||||||
id | A valid id number (a positive integer). | * Optional | ||||||||||||
lname | A valid name, up to 100 characters in length. | |||||||||||||
mname | A string of text, containing no newlines or other control characters. | * Optional | ||||||||||||
organization | A valid company name, up to 100 characters in length. | * Optional | ||||||||||||
phones | An array of associative arrays containing | * Optional | ||||||||||||
| ||||||||||||||
postal_code | A valid postal code. | * Optional | ||||||||||||
social | An array of associative arrays containing | * Optional | ||||||||||||
| ||||||||||||||
state | A valid state or province. | * Optional | ||||||||||||
tax_exempt | A boolean value (0 or 1). | * Optional | ||||||||||||
tax_exempt_id | A valid tax or tax exemption id. | * Required if:
| ||||||||||||
tax_exempt_reason | A string of text, containing no newlines or other control characters. | * Required if:
| ||||||||||||
tax_id | A valid tax or tax exemption id. | * Required if:
| ||||||||||||
time_zone | A valid timezone with a word, a forward-slash, and another word (e.g. US/Eastern) and any number of trailing forward slashes and words (e.g. America/Argentina/BuenosAires) | * Optional | ||||||||||||
title | A string consisting of only letters, digits, hyphens, spaces, and underscores. | * Optional | ||||||||||||
type | One of: 'billing', 'main', 'technical' | * Optional | ||||||||||||
updated_date | A valid date and time in YYYY-MM-DD HH:MM:SS-TZ format. | * Optional | ||||||||||||
validated | A boolean value (0 or 1). | * Optional |
Possible Errors:
Refer to the Error Handling documentation for the list of exception types
validateAddress
URL:
https://api.liquidweb.com/bleed/Contact/validateAddress
Description:
Validates a given address -- does not actually change a stored contact.
Returns result 'validated' with the canonical form of the address, if it can be found (US/CA).
Returns result 'success' if the given address could not be improved (it was an international address, or already in canonical form for US/CA).
Throws an error if the US/CA address could not be found, or the country is not recognized, or minimum fields were not supplied.
Parameters:
Parameter | Type |
---|---|
address | A valid street address, up to 150 characters in length. |
address2 | A valid street address, up to 150 characters in length. |
city | A valid city name. |
country | A valid country. |
postal_code | A valid postal code. |
state | A valid state or province. |
Returns:
Field | Type | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
address | An associative array containing the fields: | |||||||||||||||||||
| ||||||||||||||||||||
result | One of: 'success', 'validated' |
Possible Errors:
Refer to the Error Handling documentation for the list of exception types
validateTaxId
URL:
https://api.liquidweb.com/bleed/Contact/validateTaxId
Description:
allows a user to specify whether their account is a business or individual account, and if it's a business account, validates the tax ID.
Parameters:
Parameter | Type | Notes |
---|---|---|
contact_role | One of: 'individual', 'organization' | * Required |
tax_id | A string of text, containing no newlines or other control characters. | * Required if:
|
Returns:
Field | Type |
---|---|
success | A boolean value (0 or 1). |
Possible Errors:
Refer to the Error Handling documentation for the list of exception types