Skip to content

Commit c4d4796

Browse files
committed
Add Payment Method View endpoint
1 parent 472d91f commit c4d4796

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

openapi.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,6 +1756,50 @@ paths:
17561756
}
17571757
}' \
17581758
https://api.linode.com/v4/account/payment-method
1759+
/account/payment-methods/{paymentMethodId}:
1760+
x-linode-cli-command: account
1761+
parameters:
1762+
- name: paymentMethodId
1763+
in: path
1764+
description: The ID of the Payment Method to look up.
1765+
required: true
1766+
schema:
1767+
type: integer
1768+
get:
1769+
servers:
1770+
- url: https://api.linode.com/v4
1771+
parameters:
1772+
- $ref: '#/components/parameters/pageOffset'
1773+
- $ref: '#/components/parameters/pageSize'
1774+
x-linode-grant: read_only
1775+
tags:
1776+
- Account
1777+
summary: Payment Method View
1778+
description: |
1779+
View the details of the specified Payment Method.
1780+
operationId: getPaymentMethods
1781+
x-linode-cli-action: payment-method-view
1782+
security:
1783+
- personalAccessToken: []
1784+
- oauth:
1785+
- account:read_only
1786+
responses:
1787+
'200':
1788+
description: Returns a Payment Method Object.
1789+
content:
1790+
application/json:
1791+
schema:
1792+
$ref: '#/components/schemas/PaymentMethod'
1793+
default:
1794+
$ref: '#/components/responses/ErrorResponse'
1795+
x-code-samples:
1796+
- lang: Shell
1797+
source: >
1798+
curl -H "Authorization: Bearer $TOKEN" \
1799+
https://api.linode.com/v4/account/payment-methods/123
1800+
- lang: CLI
1801+
source: >
1802+
linode-cli account payment-method-view 123
17591803
/account/payments:
17601804
x-linode-cli-command: account
17611805
get:

0 commit comments

Comments
 (0)