This endpoint allows you to manage various user details, including contact information and account security.
- Use the
GETmethod to retrieve your account information. - Use the
POSTmethod to update your stored contact and billing information.
Updates the stored contact and billing information we have in our system with the provided data.
Body
Required
-
Your name.
-
Your company name.
-
Your address.
-
Additional address information.
-
Your city.
-
Your state.
-
Your ZIP code.
-
Your country.
-
Your phone number.
-
Your preferred locale.
-
Your email for invoice notifications.
-
Your email for abuse notifications.
-
Set to
trueto disable account resets, orfalseto enable them. -
Set to
trueto disable server reinstalls, orfalseto enable them. -
Set to
trueto disable server notifications, orfalseto enable them. -
Set to
trueto disable email notifications, orfalseto enable them. -
Your GST identification number (if applicable).
Body
Required
-
Your name.
-
Your company name.
-
Your address.
-
Additional address information.
-
Your city.
-
Your state.
-
Your ZIP code.
-
Your country.
-
Your phone number.
-
Your preferred locale.
-
Your email for invoice notifications.
-
Your email for abuse notifications.
-
Set to
trueto disable account resets, orfalseto enable them. -
Set to
trueto disable server reinstalls, orfalseto enable them. -
Set to
trueto disable server notifications, orfalseto enable them. -
Set to
trueto disable email notifications, orfalseto enable them. -
Your GST identification number (if applicable).
curl \
--request POST 'https://my.interserver.net/apiv2/account' \
--header "X-API-KEY: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"zip":"17522","city":"My Town","name":"John Doe","gstin":"","phone":"8675309","state":"PA","locale":"","address":"124 My St","company":"My Company","country":"US","address2":"","email_abuse":"","disable_reset":false,"email_invoices":"","disable_reinstall":false,"disable_email_notifications":false,"disable_server_notifications":false}'
curl \
--request POST 'https://my.interserver.net/apiv2/account' \
--header "X-API-KEY: $API_KEY" \
--header "Content-Type: multipart/form-data" \
--form "zip=17522" \
--form "city=My Town" \
--form "name=John Doe" \
--form "gstin=" \
--form "phone=8675309" \
--form "state=PA" \
--form "locale=" \
--form "address=124 My St" \
--form "company=My Company" \
--form "country=US" \
--form "address2=" \
--form "email_abuse=" \
--form "disable_reset=false" \
--form "email_invoices=" \
--form "disable_reinstall=false" \
--form "disable_email_notifications=false" \
--form "disable_server_notifications=false"
{
"zip": "17522",
"city": "My Town",
"name": "John Doe",
"gstin": "",
"phone": "8675309",
"state": "PA",
"locale": "",
"address": "124 My St",
"company": "My Company",
"country": "US",
"address2": "",
"email_abuse": "",
"disable_reset": false,
"email_invoices": "",
"disable_reinstall": false,
"disable_email_notifications": false,
"disable_server_notifications": false
}
{
"code": "string",
"message": "string"
}