Raw
1 get:
2 operationId: GetPaymentsPaymentProviders
3 summary: List Payment Providers
4 description: >-
5 Retrieve a list of payment providers. The payment providers can be filtered
6 by fields such as `id`. The payment providers can also be sorted or
7 paginated.
8 x-authenticated: true
9 parameters:
10 - name: fields
11 in: query
12 description: >-
13 Comma-separated fields that should be included in the returned data. if
14 a field is prefixed with `+` it will be added to the default fields,
15 using `-` will remove it from the default fields. without prefix it will
16 replace the entire default fields.
17 required: false
18 schema:
19 type: string
20 title: fields
21 description: >-
22 Comma-separated fields that should be included in the returned data.
23 if a field is prefixed with `+` it will be added to the default
24 fields, using `-` will remove it from the default fields. without
25 prefix it will replace the entire default fields.
26 externalDocs:
27 url: '#select-fields-and-relations'
28 - name: offset
29 in: query
30 description: The number of items to skip when retrieving a list.
31 required: false
32 schema:
33 type: number
34 title: offset
35 description: The number of items to skip when retrieving a list.
36 externalDocs:
37 url: '#pagination'
38 - name: limit
39 in: query
40 description: Limit the number of items returned in the list.
41 required: false
42 schema:
43 type: number
44 title: limit
45 description: Limit the number of items returned in the list.
46 externalDocs:
47 url: '#pagination'
48 - name: order
49 in: query
50 description: >-
51 The field to sort the data by. By default, the sort order is ascending.
52 To change the order to descending, prefix the field name with `-`.
53 required: false
54 schema:
55 type: string
56 title: order
57 description: >-
58 The field to sort the data by. By default, the sort order is
59 ascending. To change the order to descending, prefix the field name
60 with `-`.
61 - name: id
62 in: query
63 required: true
64 schema:
65 oneOf:
66 - type: string
67 title: id
68 description: Filter by a payment provider's ID.
69 - type: array
70 description: Filter by payment provider IDs.
71 items:
72 type: string
73 title: id
74 description: A payment provider ID.
75 - name: is_enabled
76 in: query
77 description: Filter by whether the payment provider is enabled.
78 required: false
79 schema:
80 type: boolean
81 title: is_enabled
82 description: Filter by whether the payment provider is enabled.
83 - name: $and
84 in: query
85 required: false
86 schema:
87 type: array
88 description: >-
89 Join query parameters with an AND condition. Each object's content is
90 the same type as the expected query parameters.
91 items:
92 type: object
93 title: $and
94 - name: $or
95 in: query
96 required: false
97 schema:
98 type: array
99 description: >-
100 Join query parameters with an OR condition. Each object's content is
101 the same type as the expected query parameters.
102 items:
103 type: object
104 title: $or
105 - name: with_deleted
106 in: query
107 description: Whether to include deleted records in the result.
108 required: false
109 schema:
110 type: boolean
111 title: with_deleted
112 description: Whether to include deleted records in the result.
113 security:
114 - api_token: []
115 - cookie_auth: []
116 - jwt_token: []
117 x-codeSamples:
118 - lang: JavaScript
119 label: JS SDK
120 source:
121 $ref: ../code_samples/JavaScript/admin_payments_payment-providers/get.js
122 - lang: Shell
123 label: cURL
124 source:
125 $ref: ../code_samples/Shell/admin_payments_payment-providers/get.sh
126 tags:
127 - Payments
128 responses:
129 '200':
130 description: OK
131 content:
132 application/json:
133 schema:
134 allOf:
135 - type: object
136 description: The list of payment providers.
137 required:
138 - limit
139 - offset
140 - count
141 properties:
142 limit:
143 type: number
144 title: limit
145 description: The maximum number of items returned.
146 offset:
147 type: number
148 title: offset
149 description: The number of items skipped before the returned items.
150 count:
151 type: number
152 title: count
153 description: The total number of items.
154 - type: object
155 description: The paginated list of payment providers.
156 required:
157 - payment_providers
158 properties:
159 payment_providers:
160 type: array
161 description: The list of payment providers.
162 items:
163 $ref: ../components/schemas/AdminPaymentProvider.yaml
164 '400':
165 $ref: ../components/responses/400_error.yaml
166 '401':
167 $ref: ../components/responses/unauthorized.yaml
168 '404':
169 $ref: ../components/responses/not_found_error.yaml
170 '409':
171 $ref: ../components/responses/invalid_state_error.yaml
172 '422':
173 $ref: ../components/responses/invalid_request_error.yaml
174 '500':
175 $ref: ../components/responses/500_error.yaml