Account v4.176.0
Get your account
Returns the contact and billing information related to your Account.
CLI.
linode-cli account view
OAuth.
account:read_only
Authorizations
personalAccessToken | |
oauth | account:read_only |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/account
linode-cli account view
Response Samples
{
"active_promotions": [
{
"credit_monthly_cap": "10.00",
"credit_remaining": "50.00",
"description": "Receive up to $10 off your services every month for 6 months! Unused credits will expire once this promotion period ends.",
"expire_dt": "2018-01-31T23:59:59",
"image_url": "https://linode.com/10_a_month_promotion.svg",
"service_type": "all",
"summary": "$10 off your Linode a month!",
"this_month_credit_remaining": "10.00"
}
],
"active_since": "2018-01-01T00:01:01",
"address_1": "123 Main Street",
"address_2": "Suite A",
"balance": 200,
"balance_uninvoiced": 145,
"billing_source": "akamai",
"capabilities": [
"Linodes",
"NodeBalancers",
"Block Storage",
"Object Storage",
"Placement Groups"
],
"city": "Philadelphia",
"company": "Linode LLC",
"country": "US",
"credit_card": {
"expiry": "11/2022",
"last_four": 1111
},
"email": "john.smith@linode.com",
"euuid": "E1AF5EEC-526F-487D-B317EBEB34C87D71",
"first_name": "John",
"last_name": "Smith",
"phone": "215-555-1212",
"state": "PA",
"tax_id": "ATU99999999",
"zip": "19102-1234"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
active_promotions | array
of objects
| ||||||||||||||||
active_since | string<date-time> Read-only The date and time the account was activated. | ||||||||||||||||
address_1 | string
<=
64
charactersFirst line of this Account’s billing address. | ||||||||||||||||
address_2 | string
<=
64
charactersSecond line of this Account’s billing address. | ||||||||||||||||
balance | number Read-only This Account’s balance, in US dollars. | ||||||||||||||||
balance_uninvoiced | number Read-only This Account’s current estimated invoice in US dollars. This is not your final invoice balance. Transfer charges are not included in the estimate. | ||||||||||||||||
billing_source | string Enum:
akamai
linode Read-only The source of service charges for this Account, as determined by its relationship
with Akamai. Accounts that are associated with Akamai-specific
customers return a value of | ||||||||||||||||
capabilities | array
of strings Read-only A list of capabilities your account supports. | ||||||||||||||||
city | string
<=
24
charactersThe city for this Account’s billing address. | ||||||||||||||||
company | string
<=
128
charactersThe company name associated with this Account. Must not include any of the following characters: | ||||||||||||||||
country | string The two-letter ISO 3166 country code of this Account’s billing address. | ||||||||||||||||
credit_card | object Read-only Credit Card information associated with this Account.
| ||||||||||||||||
email | string
<=
128
charactersThe email address of the person associated with this Account. | ||||||||||||||||
euuid | string<uuid> Read-only An external unique identifier for this account. | ||||||||||||||||
first_name | string
<=
50
charactersThe first name of the person associated with this Account. Must not include any of the following characters: | ||||||||||||||||
last_name | string
<=
50
charactersThe last name of the person associated with this Account. Must not include any of the following characters: | ||||||||||||||||
phone | string
<=
32
charactersThe phone number associated with this Account. | ||||||||||||||||
state | string
<=
24
charactersIf billing address is in the United States (US) or Canada (CA), only the two-letter ISO 3166 State or Province code are accepted. If entering a US military address, state abbreviations (AA, AE, AP) should be entered. If the address is outside the US or CA, this is the Province associated with the Account’s billing address. | ||||||||||||||||
tax_id | string
<=
25
charactersThe tax identification number associated with this Account, for tax calculations in
some countries. If you do not live in a country that collects
tax, this should be an empty string ( | ||||||||||||||||
zip | string The zip code of this Account’s billing address. The following restrictions apply:
|
errors | array
of objects
|
Update your account
Updates contact and billing information related to your account. If you exclude any properties from the request, the operation leaves them unchanged.
Note. When updating an account’s country
to “US”, you’ll get an error if the account’s zip
is not a valid US zip code.
Parent and child accounts
In a parent and child account environment, the following apply:
You can’t change the
company
for a parent account. Akamai uses this value to set the name for a child account parent user (proxy user) on any child account.Child account users can’t run this operation. These users don’t have access to billing-related operations.
CLI.
linode-cli account update
OAuth.
account:read_write
Authorizations
personalAccessToken | |
oauth | account:read_write |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"address_1": "123 Main St.",
"address_2": "Suite 101",
"city": "Philadelphia",
"company": "My Company, LLC",
"country": "US",
"email": "jsmith@mycompany.com",
"first_name": "John",
"last_name": "Smith",
"phone": "555-555-1212",
"state": "PA",
"tax_id": "ATU99999999",
"zip": "19102"
}' \
https://api.linode.com/v4/account
linode-cli account update \
--address_1 "123 Main St." \
--address_2 "Suite 101" \
--city Philadelphia \
--company My Company \ LLC \
--country US \
--email jsmith@mycompany.com \
--first_name John \
--last_name Smith \
--phone 555-555-1212 \
--state PA \
--tax_id ATU99999999 \
--zip 19102
Request Body Schema
address_1 | string
<=
64
charactersFirst line of this Account’s billing address. |
address_2 | string
<=
64
charactersSecond line of this Account’s billing address. |
city | string
<=
24
charactersThe city for this Account’s billing address. |
company | string
<=
128
charactersThe company name associated with this Account. Must not include any of the following characters: |
country | string The two-letter ISO 3166 country code of this Account’s billing address. |
email | string
<=
128
charactersThe email address of the person associated with this Account. |
first_name | string
<=
50
charactersThe first name of the person associated with this Account. Must not include any of the following characters: |
last_name | string
<=
50
charactersThe last name of the person associated with this Account. Must not include any of the following characters: |
phone | string
<=
32
charactersThe phone number associated with this Account. |
state | string
<=
24
charactersIf billing address is in the United States (US) or Canada (CA), only the two-letter ISO 3166 State or Province code are accepted. If entering a US military address, state abbreviations (AA, AE, AP) should be entered. If the address is outside the US or CA, this is the Province associated with the Account’s billing address. |
tax_id | string
<=
25
charactersThe tax identification number associated with this Account, for tax calculations in some
countries. If you do not live in a country that collects tax,
this should be an empty string ( |
zip | string The zip code of this Account’s billing address. The following restrictions apply:
|
Response Samples
{
"active_promotions": [
{
"credit_monthly_cap": "10.00",
"credit_remaining": "50.00",
"description": "Receive up to $10 off your services every month for 6 months! Unused credits will expire once this promotion period ends.",
"expire_dt": "2018-01-31T23:59:59",
"image_url": "https://linode.com/10_a_month_promotion.svg",
"service_type": "all",
"summary": "$10 off your Linode a month!",
"this_month_credit_remaining": "10.00"
}
],
"active_since": "2018-01-01T00:01:01",
"address_1": "123 Main Street",
"address_2": "Suite A",
"balance": 200,
"balance_uninvoiced": 145,
"billing_source": "akamai",
"capabilities": [
"Linodes",
"NodeBalancers",
"Block Storage",
"Object Storage",
"Placement Groups"
],
"city": "Philadelphia",
"company": "Linode LLC",
"country": "US",
"credit_card": {
"expiry": "11/2022",
"last_four": 1111
},
"email": "john.smith@linode.com",
"euuid": "E1AF5EEC-526F-487D-B317EBEB34C87D71",
"first_name": "John",
"last_name": "Smith",
"phone": "215-555-1212",
"state": "PA",
"tax_id": "ATU99999999",
"zip": "19102-1234"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
active_promotions | array
of objects
| ||||||||||||||||
active_since | string<date-time> Read-only The date and time the account was activated. | ||||||||||||||||
address_1 | string
<=
64
charactersFirst line of this Account’s billing address. | ||||||||||||||||
address_2 | string
<=
64
charactersSecond line of this Account’s billing address. | ||||||||||||||||
balance | number Read-only This Account’s balance, in US dollars. | ||||||||||||||||
balance_uninvoiced | number Read-only This Account’s current estimated invoice in US dollars. This is not your final invoice balance. Transfer charges are not included in the estimate. | ||||||||||||||||
billing_source | string Enum:
akamai
linode Read-only The source of service charges for this Account, as determined by its relationship
with Akamai. Accounts that are associated with Akamai-specific
customers return a value of | ||||||||||||||||
capabilities | array
of strings Read-only A list of capabilities your account supports. | ||||||||||||||||
city | string
<=
24
charactersThe city for this Account’s billing address. | ||||||||||||||||
company | string
<=
128
charactersThe company name associated with this Account. Must not include any of the following characters: | ||||||||||||||||
country | string The two-letter ISO 3166 country code of this Account’s billing address. | ||||||||||||||||
credit_card | object Read-only Credit Card information associated with this Account.
| ||||||||||||||||
email | string
<=
128
charactersThe email address of the person associated with this Account. | ||||||||||||||||
euuid | string<uuid> Read-only An external unique identifier for this account. | ||||||||||||||||
first_name | string
<=
50
charactersThe first name of the person associated with this Account. Must not include any of the following characters: | ||||||||||||||||
last_name | string
<=
50
charactersThe last name of the person associated with this Account. Must not include any of the following characters: | ||||||||||||||||
phone | string
<=
32
charactersThe phone number associated with this Account. | ||||||||||||||||
state | string
<=
24
charactersIf billing address is in the United States (US) or Canada (CA), only the two-letter ISO 3166 State or Province code are accepted. If entering a US military address, state abbreviations (AA, AE, AP) should be entered. If the address is outside the US or CA, this is the Province associated with the Account’s billing address. | ||||||||||||||||
tax_id | string
<=
25
charactersThe tax identification number associated with this Account, for tax calculations in
some countries. If you do not live in a country that collects
tax, this should be an empty string ( | ||||||||||||||||
zip | string The zip code of this Account’s billing address. The following restrictions apply:
|
errors | array
of objects
|
Get a region's service availability
View the available services for your account in a specific region.
Note. Only authorized users can access this.
CLI.
linode-cli account get-account-availability
OAuth.
account:read_only
Authorizations
personalAccessToken | |
oauth | account:read_only |
Path Parameters
id | string RequiredThe slug for the applicable data center. Run the List regions operation to view the slug for each data center. |
Request Samples
curl https://api.linode.com/v4/account/availability/us-east \
-H "Authorization: Bearer $TOKEN"
linode-cli account get-account-availability us-east
Response Samples
{
"available": [
"Linodes",
"NodeBalancers"
],
"region": "us-east",
"unavailable": [
"Kubernetes",
"Block Storage"
]
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
available | array
of strings Read-only A list of services available to your account in the |
region | string Read-only The Akamai cloud computing data center (region), represented by a slug value. You can view a full list of regions and their associated slugs with the List regions operation. |
unavailable | array
of strings Read-only A list of services unavailable to your account in the |
errors | array
of objects
|
Cancel your account
Cancels an active Linode account. Akamai attempts to charge the credit card on file for any remaining balance. An error occurs if this charge fails.
Note. This operation can only be accessed by account users with unrestricted access.
Parent and child accounts In a parent and child account environment, the following apply:
- A child account user can’t cancel a child account.
- You can’t cancel a parent account if it has an active child account.
- You need to work with your Akamai account team to dissolve any parent-child account relationships before you can fully cancel a child or parent account.
CLI.
linode-cli account cancel
OAuth.
account:read_write
Authorizations
personalAccessToken | |
oauth | account:read_write |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"comments": "I am consolidating my accounts."
}' \
https://api.linode.com/v4/account/cancel
linode-cli account cancel \
--comments "I'm consolidating my accounts"
Request Body Schema
comments | string Any reason for cancelling the account, and any other comments you might have about your Linode service. |
Response Samples
{
"survey_link": "https://alinktothesurvey.com"
}
{
"errors": [
{
"reason": "We were unable to charge your credit card for services rendered. We cannot cancel this account until the balance has been paid."
}
]
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
survey_link | string A link to Linode’s exit survey. |
errors | array
of objects
|
errors | array
of objects
|