Account
Credit Card Add/Edit
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
Your credit card number. No spaces or dashes allowed.
CVV (Card Verification Value) of the credit card, typically found on the back of the card.
A value from 1-12 representing the expiration month of your credit card.
- 1 = January
- 2 = February
- 3 = March
- Etc.
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
- Shell
- CLI
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
- 200
- default
{}
Responses
200: Credit Card updated.
default: Error
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.
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.