Skip to main content

promo_credits

Creates, updates, deletes, gets or lists a promo_credits resource.

Overview

Namepromo_credits
TypeResource
Idlinode.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:

NameAccessible byRequired ParamsOptional ParamsDescription
post_promo_creditinsertdata__promo_codeAdds 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.

NameDatatypeDescription

INSERT examples

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
;