post
https://api.linode.com//account/promo-codes
Adds an expiring Promo Credit to your account. The following restrictions apply:
-
Your account needs to be less than 90 days old.
-
You can't already have a Promo Credit on your account.
-
The user making the request needs to be unrestricted. You can run the Update a user operation to change a user's restricted status.
-
The
promo_codeneeds to be valid and unexpired.
Parent and child accounts
In a parent and child account environment, the following apply:
- Child account users can't run this operation. These users don't have access to billing-related operations.
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_only
- Scopes:
CLI
linode-cli account \
promo-add \
--promo-code abcdefABCDEF1234567890