Account

Add/Edit Credit Card

post
https://api.linode.com/v4/account/credit-card

Adds/edit credit card information to your Account. Only one credit card can be associated with your Account, so using this endpoint will overwrite your currently active card information with the new credit card.

Authorizations

Personal Access Token
OAuth: ( account:read_write)

Request Body Schema

card_number
Required
string <PAN>[13 .. 23] characters

Your credit card number. No spaces or dashes allowed.

expiry_month
Required
integer

A value from 1-12 representing the expiration month of your credit card.

  • 1 = January
  • 2 = February
  • 3 = March
  • Etc.
expiry_year
Required
integer

A four-digit integer representing the expiration year of your credit card. The combination of expiry_month and expiry_year must result in a month/year combination of the current month or in the future. An expiration date set in the past is invalid.

cvv
string

The Card Verification Value on the back of the card.

Request Samples

curl -H "Content-Type: application/json" \
    -H "Authorization: Bearer $TOKEN" \
    -X POST -d '{
      "card_number": "4111111111111111",
      "expiry_month": 11,
      "expiry_year": 2020
    }' \
    https://api.linode.com/v4/account/credit-card

Response Samples

{}

Responses

200: Credit Card updated.

default: Error

errors
array of objects
reason
string

What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.

field
string

The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.