@@ -1688,7 +1688,8 @@ paths:
16881688 - Account
16891689 summary: Payment Method Add
16901690 description: |
1691- Adds a Payment Method to your Account with the option to set it as the default method.
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.
16921693
16931694 Prior to adding a Payment Method, ensure that your billing address information is up-to-date
16941695 with a valid `zip` by using the Account Update ([PUT /account](/docs/api/account/#account-update)) endpoint.
@@ -1755,7 +1756,92 @@ paths:
17551756 "cvv": "111"
17561757 }
17571758 }' \
1758- https://api.linode.com/v4/account/payment-method
1759+ https://api.linode.com/v4/account/payment-methods
1760+ /account/payment-methods/{paymentMethodId}:
1761+ x-linode-cli-command: account
1762+ parameters:
1763+ - name: paymentMethodId
1764+ in: path
1765+ description: The ID of the Payment Method to look up.
1766+ required: true
1767+ schema:
1768+ type: integer
1769+ get:
1770+ servers:
1771+ - url: https://api.linode.com/v4
1772+ x-linode-grant: read_only
1773+ tags:
1774+ - Account
1775+ summary: Payment Method View
1776+ description: |
1777+ View the details of the specified Payment Method.
1778+ operationId: getPaymentMethod
1779+ x-linode-cli-action: payment-method-view
1780+ security:
1781+ - personalAccessToken: []
1782+ - oauth:
1783+ - account:read_only
1784+ responses:
1785+ '200':
1786+ description: Returns a Payment Method Object.
1787+ content:
1788+ application/json:
1789+ schema:
1790+ $ref: '#/components/schemas/PaymentMethod'
1791+ default:
1792+ $ref: '#/components/responses/ErrorResponse'
1793+ x-code-samples:
1794+ - lang: Shell
1795+ source: >
1796+ curl -H "Authorization: Bearer $TOKEN" \
1797+ https://api.linode.com/v4/account/payment-methods/123
1798+ - lang: CLI
1799+ source: >
1800+ linode-cli account payment-method-view 123
1801+ /account/payment-methods/{paymentMethodId}/make-default:
1802+ x-linode-cli-command: account
1803+ parameters:
1804+ - name: paymentMethodId
1805+ in: path
1806+ description: The ID of the Payment Method to make default.
1807+ required: true
1808+ schema:
1809+ type: integer
1810+ post:
1811+ servers:
1812+ - url: https://api.linode.com/v4
1813+ x-linode-grant: read_write
1814+ tags:
1815+ - Account
1816+ summary: Payment Method Make Default
1817+ description: |
1818+ Make the specified Payment Method the default method for automatically processing payments.
1819+
1820+ Removes the default status from any other Payment Method.
1821+ operationId: makePaymentMethodDefault
1822+ x-linode-cli-action: payment-method-make-default
1823+ security:
1824+ - personalAccessToken: []
1825+ - oauth:
1826+ - account:read_write
1827+ responses:
1828+ '200':
1829+ description: Payment Method successfully set as the default method.
1830+ content:
1831+ application/json:
1832+ schema:
1833+ type: object
1834+ default:
1835+ $ref: '#/components/responses/ErrorResponse'
1836+ x-code-samples:
1837+ - lang: Shell
1838+ source: >
1839+ curl -H "Authorization: Bearer $TOKEN" \
1840+ -X POST \
1841+ https://api.linode.com/v4/account/payment-methods/123/make-default
1842+ - lang: CLI
1843+ source: >
1844+ linode-cli account payment-method-make-default 123
17591845 /account/payments:
17601846 x-linode-cli-command: account
17611847 get:
@@ -20730,19 +20816,24 @@ components:
2073020816 type: object
2073120817 description: Payment Method Response Object.
2073220818 properties:
20819+ id:
20820+ type: integer
20821+ description: The unique ID of this Payment Method.
20822+ example: 123
20823+ x-linode-cli-display: 1
2073320824 type:
2073420825 type: string
2073520826 enum:
2073620827 - credit_card
2073720828 description: The type of Payment Method.
2073820829 example: 'credit_card'
20739- x-linode-cli-display: 1
20830+ x-linode-cli-display: 2
2074020831 is_default:
2074120832 type: boolean
2074220833 description: |
2074320834 Whether this Payment Method is the default method for automatically processing service charges.
2074420835 example: true
20745- x-linode-cli-display: 2
20836+ x-linode-cli-display: 3
2074620837 created:
2074720838 type: string
2074820839 readOnly: true
@@ -20757,7 +20848,7 @@ components:
2075720848 type: string
2075820849 readOnly: true
2075920850 description: The type of credit card.
20760- example: ""
20851+ example: "Discover "
2076120852 x-linode-cli-display: 8
2076220853 last_four:
2076320854 type: string
0 commit comments