Add or edit a credit card

Deprecated Please run Add a payment method.

Adds or edits a credit card to your account and sets it as the default payment method.

Permissions and scopes

To call this operation, you need permissions, based on the model you're using:

  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: account:read_write
Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
Body Params

An object representing the credit card information you have on file with Linode to make Payments against your Account.

string
required
length between 14 and 24

Your credit card number. No spaces or hyphens (-) allowed.

string
required
length between 3 and 4

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

integer
required
1 to 12

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

  • 1 = January
  • 2 = February
  • 3 = March
  • Etc.
integer
required

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.

Responses

Language
Credentials
LoadingLoading…
Response
Choose an example:
application/json