Skip to main content

payments

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

Overview

Namepayments
TypeResource
Idlinode.account.payments

Fields

The following fields are returned by SELECT queries:

A Payment object.

NameDatatypeDescription
idintegerRead-only The unique ID of the Payment.
datestring (date-time)Read-only When the Payment was made. (example: 2018-01-15T00:01:01)
usdintegerRead-only The amount, in US dollars, of the Payment. (example: 120.50)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_paymentselectReturns information about a specific Payment.

Learn more...

Learn more...
get_paymentsselectpage, page_sizeReturns a paginated list of Payments made on this Account.

Learn more...

Learn more...
post_credit_cardinsertdata__card_number, data__expiry_month, data__expiry_year, data__cvvDeprecated Please run Add a payment method.

Adds a credit card Payment Method to your account and sets it as the default method. OAuth scopes.

<br /> account:read_write<br />

Learn more...
post_paymentexecMakes a Payment to your Account.

- The requested amount is charged to the default Payment Method if no payment_method_id is specified.

- A payment_submitted event is generated when a payment is successfully submitted.

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...
post_pay_pal_paymentexeccancel_url, redirect_url, usdDeprecated This operation is disabled and no longer accessible. PayPal can be designated as a Payment Method for automated payments using the Cloud Manager. See Manage Payment Methods. OAuth scopes.

<br /> account:read_write<br />

Learn more...
post_execute_pay_pal_paymentexecpayer_id, payment_idDeprecated This operation is disabled and no longer accessible. PayPal can be designated as a Payment Method for automated payments using the Cloud Manager. See Manage Payment Methods. OAuth scopes.

<br /> account:read_write<br />

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
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples

Returns information about a specific Payment.

Learn more...

Learn more...

SELECT
id,
date,
usd
FROM linode.account.payments;

INSERT examples

Deprecated Please run Add a payment method.

Adds a credit card Payment Method to your account and sets it as the default method. OAuth scopes.

<br /> account:read_write<br />

Learn more...

INSERT INTO linode.account.payments (
data__card_number,
data__cvv,
data__expiry_month,
data__expiry_year
)
SELECT
'{{ card_number }}' --required,
'{{ cvv }}' --required,
{{ expiry_month }} --required,
{{ expiry_year }} --required
;

Lifecycle Methods

Makes a Payment to your Account.

- The requested amount is charged to the default Payment Method if no payment_method_id is specified.

- A payment_submitted event is generated when a payment is successfully submitted.

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...

EXEC linode.account.payments.post_payment 
@@json=
'{
"payment_method_id": {{ payment_method_id }},
"usd": "{{ usd }}"
}';