@@ -1949,9 +1949,10 @@ paths:
19491949 tags:
19501950 - Account
19511951 summary: Payment Make
1952- description: >
1953- Makes a Payment to your Account via credit card. This will charge your
1954- credit card the requested amount.
1952+ description: |
1953+ Makes a Payment to your Account.
1954+
1955+ The requested amount is charged to the default Payment Method if no `payment_method_id` is specified.
19551956 operationId: createPayment
19561957 x-linode-cli-action: payment-create
19571958 security:
@@ -1971,7 +1972,7 @@ paths:
19711972 content:
19721973 application/json:
19731974 schema:
1974- $ref: '#/components/schemas/Payment'
1975+ $ref: '#/components/schemas/Payment'
19751976 '202':
19761977 $ref: '#/components/responses/WarningResponse'
19771978 default:
@@ -1983,14 +1984,16 @@ paths:
19831984 -H "Authorization: Bearer $TOKEN" \
19841985 -X POST -d '{
19851986 "cvv": "123",
1986- "usd": "120.50"
1987+ "usd": "120.50",
1988+ "payment_method_id": 123
19871989 }' \
19881990 https://api.linode.com/v4/account/payments
19891991 - lang: CLI
19901992 source: >
19911993 linode-cli account payment-create \
19921994 --cvv 123 \
1993- --usd 120.50
1995+ --usd 120.50 \
1996+ --payment_method_id 123
19941997 /account/payments/{paymentId}:
19951998 x-linode-cli-command: account
19961999 parameters:
@@ -21080,6 +21083,11 @@ components:
2108021083 The amount in US Dollars of the Payment. The maximum credit card
2108121084 payment that can be made is $50,000 dollars.
2108221085 example: '120.50'
21086+ payment_method_id:
21087+ type: integer
21088+ description: >
21089+ The ID of the Payment Method to apply to the Payment.
21090+ example: 123
2108321091 PayPal:
2108421092 type: object
2108521093 required:
0 commit comments