promo_credits
Creates, updates, deletes, gets or lists a promo_credits
resource.
Overview
Name | promo_credits |
Type | Resource |
Id | linode.account.promo_credits |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
post_promo_credit | insert | data__promo_code | 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_code needs 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. Learn more... Learn more... |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|
INSERT
examples
- post_promo_credit
- Manifest
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_code
needs 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.
Learn more...
Learn more...
INSERT INTO linode.account.promo_credits (
data__promo_code
)
SELECT
'{{ promo_code }}' --required
RETURNING
credit_monthly_cap,
credit_remaining,
description,
expire_dt,
image_url,
service_type,
summary,
this_month_credit_remaining
;
# Description fields are for documentation purposes
- name: promo_credits
props:
- name: promo_code
value: string
description: >
The Promo Code.