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)Filterable, Read-only When the payment was made. (example: 2018-01-15T00:01:01)
usdintegerFilterable, Read-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
getselectpaymentIdReturns information about a specific Payment.

Learn more...

Learn more...
listselectX-Filter, page, page_sizeReturns a paginated list of payments made on this Account.

Learn more...

Learn more...
createinsertcard_number, expiry_month, expiry_year, 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...
make_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...
stage_paypal_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...
execute_paypal_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
paymentIdstringThe ID of the Payment to look up.
X-FilterSpecifies a JSON object to filter down the results. See Filtering and sorting for details. (example: {{X-Filter}})
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
WHERE paymentId = '{{ paymentId }}' -- required
;

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 (
card_number,
cvv,
expiry_month,
expiry_year
)
SELECT
'{{ card_number }}' /* required */,
'{{ cvv }}' /* required */,
{{ expiry_month }} /* required */,
{{ expiry_year }} /* required */
RETURNING
message
;

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.make_payment
@@json=
'{
"payment_method_id": {{ payment_method_id }},
"usd": "{{ usd }}"
}'
;