Account

Credit Card Add/Edit

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

DEPRECATED. Please use Payment Method Add (POST /account/payment-methods).

Adds a credit card Payment Method to your account and sets it as the default method.

Request Body Schema

card_number
Required
string <digits>[14 .. 24] characters

Your credit card number. No spaces or dashes allowed.

cvv
Required
string <digits>[3 .. 4] characters

CVV (Card Verification Value) of the credit card, typically found on the back of the card.

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.

Request Samples

curl -H "Content-Type: application/json" \
    -H "Authorization: Bearer $TOKEN" \
    -X POST -d '{
      "card_number": "4111111111111111",
      "expiry_month": 11,
      "expiry_year": 2020,
      "cvv": "111"
    }' \
    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.