@@ -1632,7 +1632,7 @@ paths:
1632
1632
--data-binary "/path/to/image"
1633
1633
https://api.linode.com/v4/account/oauth-clients/edc6790ea9db4d224c5c/thumbnail
1634
1634
/account/payment-methods:
1635
- x-linode-cli-command: account
1635
+ x-linode-cli-command: payment-methods
1636
1636
get:
1637
1637
servers:
1638
1638
- url: https://api.linode.com/v4
@@ -1647,7 +1647,7 @@ paths:
1647
1647
description: |
1648
1648
Returns a paginated list of Payment Methods for this Account.
1649
1649
operationId: getPaymentMethods
1650
- x-linode-cli-action: payment-methods- list
1650
+ x-linode-cli-action: list
1651
1651
security:
1652
1652
- personalAccessToken: []
1653
1653
- oauth:
@@ -1679,7 +1679,7 @@ paths:
1679
1679
https://api.linode.com/v4/account/payment-methods
1680
1680
- lang: CLI
1681
1681
source: >
1682
- linode-cli account payment-methods- list
1682
+ linode-cli payment-methods list
1683
1683
post:
1684
1684
servers:
1685
1685
- url: https://api.linode.com/v4
@@ -1688,16 +1688,18 @@ paths:
1688
1688
- Account
1689
1689
summary: Payment Method Add
1690
1690
description: |
1691
- Adds a Payment Method to your Account with the option to set it as the default method. Adding a default
1692
- Payment Method removes the default status from any other Payment Method.
1691
+ Adds a Payment Method to your Account with the option to set it as the default method.
1693
1692
1694
- An Account can have up to 6 active Payment Methods .
1693
+ * Adding a default Payment Method removes the default status from any other Payment Method .
1695
1694
1696
- Prior to adding a Payment Method, ensure that your billing address information is up-to-date
1695
+ * An Account can have up to 6 active Payment Methods.
1696
+
1697
+ * Prior to adding a Payment Method, ensure that your billing address information is up-to-date
1697
1698
with a valid `zip` by using the Account Update ([PUT /account](/docs/api/account/#account-update)) endpoint.
1699
+
1700
+ * A `payment_method_add` event is generated when a payment is successfully submitted.
1698
1701
operationId: createPaymentMethod
1699
- x-linode-cli-action: payment-method-add
1700
- x-linode-cli-skip: true
1702
+ x-linode-cli-action: add
1701
1703
security:
1702
1704
- personalAccessToken: []
1703
1705
- oauth:
@@ -1720,7 +1722,16 @@ paths:
1720
1722
- cvv
1721
1723
properties:
1722
1724
type:
1723
- $ref: '#/components/schemas/PaymentMethod/properties/type'
1725
+ type: string
1726
+ enum:
1727
+ - credit_card
1728
+ description: |
1729
+ The type of Payment Method.
1730
+
1731
+ Alternative Payment Methods including Google Pay can be added using Linode Cloud Manager. See our
1732
+ guide on [Managing Billing in the Cloud Manager](/docs/guides/manage-billing-in-cloud-manager/)
1733
+ for details and instructions.
1734
+ example: 'credit_card'
1724
1735
is_default:
1725
1736
$ref: '#/components/schemas/PaymentMethod/properties/is_default'
1726
1737
data:
@@ -1759,8 +1770,17 @@ paths:
1759
1770
}
1760
1771
}' \
1761
1772
https://api.linode.com/v4/account/payment-methods
1773
+ - lang: CLI
1774
+ source: >
1775
+ linode-cli payment-methods add \
1776
+ --type credit_card \
1777
+ --is_default true \
1778
+ --data.card_number 4111111111111111 \
1779
+ --data.expiry_month 11 \
1780
+ --data.expiry_year 2020 \
1781
+ --data.cvv 111
1762
1782
/account/payment-methods/{paymentMethodId}:
1763
- x-linode-cli-command: account
1783
+ x-linode-cli-command: payment-methods
1764
1784
parameters:
1765
1785
- name: paymentMethodId
1766
1786
in: path
@@ -1778,7 +1798,7 @@ paths:
1778
1798
description: |
1779
1799
View the details of the specified Payment Method.
1780
1800
operationId: getPaymentMethod
1781
- x-linode-cli-action: payment-method- view
1801
+ x-linode-cli-action: view
1782
1802
security:
1783
1803
- personalAccessToken: []
1784
1804
- oauth:
@@ -1799,7 +1819,7 @@ paths:
1799
1819
https://api.linode.com/v4/account/payment-methods/123
1800
1820
- lang: CLI
1801
1821
source: >
1802
- linode-cli account payment-method- view 123
1822
+ linode-cli payment-methods view 123
1803
1823
delete:
1804
1824
x-linode-grant: read_write
1805
1825
tags:
@@ -1814,7 +1834,7 @@ paths:
1814
1834
([POST /account/payment-methods/{paymentMethodId}/make-default](/docs/api/account/#payment-method-make-default))
1815
1835
endpoint.
1816
1836
operationId: deletePaymentMethod
1817
- x-linode-cli-action: payment-method- delete
1837
+ x-linode-cli-action: delete
1818
1838
security:
1819
1839
- personalAccessToken: []
1820
1840
- oauth:
@@ -1836,9 +1856,9 @@ paths:
1836
1856
https://api.linode.com/v4/account/payment-methods/123
1837
1857
- lang: CLI
1838
1858
source: >
1839
- linode-cli account payment-method- delete 123
1859
+ linode-cli payment-methods delete 123
1840
1860
/account/payment-methods/{paymentMethodId}/make-default:
1841
- x-linode-cli-command: account
1861
+ x-linode-cli-command: payment-methods
1842
1862
parameters:
1843
1863
- name: paymentMethodId
1844
1864
in: path
@@ -1858,7 +1878,7 @@ paths:
1858
1878
1859
1879
Removes the default status from any other Payment Method.
1860
1880
operationId: makePaymentMethodDefault
1861
- x-linode-cli-action: payment-method-make- default
1881
+ x-linode-cli-action: default
1862
1882
security:
1863
1883
- personalAccessToken: []
1864
1884
- oauth:
@@ -1880,7 +1900,7 @@ paths:
1880
1900
https://api.linode.com/v4/account/payment-methods/123/make-default
1881
1901
- lang: CLI
1882
1902
source: >
1883
- linode-cli account payment-method-make- default 123
1903
+ linode-cli payment-methods default 123
1884
1904
/account/payments:
1885
1905
x-linode-cli-command: account
1886
1906
get:
@@ -1932,9 +1952,12 @@ paths:
1932
1952
tags:
1933
1953
- Account
1934
1954
summary: Payment Make
1935
- description: >
1936
- Makes a Payment to your Account via credit card. This will charge your
1937
- credit card the requested amount.
1955
+ description: |
1956
+ Makes a Payment to your Account.
1957
+
1958
+ * The requested amount is charged to the default Payment Method if no `payment_method_id` is specified.
1959
+
1960
+ * A `payment_submitted` event is generated when a payment is successfully submitted.
1938
1961
operationId: createPayment
1939
1962
x-linode-cli-action: payment-create
1940
1963
security:
@@ -1950,11 +1973,11 @@ paths:
1950
1973
$ref: '#/components/schemas/PaymentRequest'
1951
1974
responses:
1952
1975
'200':
1953
- description: Payment made .
1976
+ description: Payment submitted successfully .
1954
1977
content:
1955
1978
application/json:
1956
1979
schema:
1957
- $ref: '#/components/schemas/Payment'
1980
+ $ref: '#/components/schemas/Payment'
1958
1981
'202':
1959
1982
$ref: '#/components/responses/WarningResponse'
1960
1983
default:
@@ -1966,14 +1989,16 @@ paths:
1966
1989
-H "Authorization: Bearer $TOKEN" \
1967
1990
-X POST -d '{
1968
1991
"cvv": "123",
1969
- "usd": "120.50"
1992
+ "usd": "120.50",
1993
+ "payment_method_id": 123
1970
1994
}' \
1971
1995
https://api.linode.com/v4/account/payments
1972
1996
- lang: CLI
1973
1997
source: >
1974
1998
linode-cli account payment-create \
1975
1999
--cvv 123 \
1976
- --usd 120.50
2000
+ --usd 120.50 \
2001
+ --payment_method_id 123
1977
2002
/account/payments/{paymentId}:
1978
2003
x-linode-cli-command: account
1979
2004
parameters:
@@ -17003,6 +17028,7 @@ components:
17003
17028
- oauth_client_secret_reset
17004
17029
- oauth_client_update
17005
17030
- password_reset
17031
+ - payment_method_add
17006
17032
- payment_submitted
17007
17033
- profile_update
17008
17034
- stackscript_create
@@ -21070,6 +21096,11 @@ components:
21070
21096
The amount in US Dollars of the Payment. The maximum credit card
21071
21097
payment that can be made is $50,000 dollars.
21072
21098
example: '120.50'
21099
+ payment_method_id:
21100
+ type: integer
21101
+ description: >
21102
+ The ID of the Payment Method to apply to the Payment.
21103
+ example: 123
21073
21104
PayPal:
21074
21105
type: object
21075
21106
required:
0 commit comments