Raw
1 get:
2 operationId: GetPayments
3 summary: List Payments
4 description: >-
5 Retrieve a list of payments. The payments can be filtered by fields such as
6 `id`. The payments can also be sorted or paginated.
7 x-authenticated: true
8 parameters:
9 - name: fields
10 in: query
11 description: >-
12 Comma-separated fields that should be included in the returned data. if
13 a field is prefixed with `+` it will be added to the default fields,
14 using `-` will remove it from the default fields. without prefix it will
15 replace the entire default fields.
16 required: false
17 schema:
18 type: string
19 title: fields
20 description: >-
21 Comma-separated fields that should be included in the returned data.
22 if a field is prefixed with `+` it will be added to the default
23 fields, using `-` will remove it from the default fields. without
24 prefix it will replace the entire default fields.
25 externalDocs:
26 url: '#select-fields-and-relations'
27 - name: offset
28 in: query
29 description: The number of items to skip when retrieving a list.
30 required: false
31 schema:
32 type: number
33 title: offset
34 description: The number of items to skip when retrieving a list.
35 externalDocs:
36 url: '#pagination'
37 - name: limit
38 in: query
39 description: Limit the number of items returned in the list.
40 required: false
41 schema:
42 type: number
43 title: limit
44 description: Limit the number of items returned in the list.
45 externalDocs:
46 url: '#pagination'
47 - name: order
48 in: query
49 description: >-
50 The field to sort the data by. By default, the sort order is ascending.
51 To change the order to descending, prefix the field name with `-`.
52 required: false
53 schema:
54 type: string
55 title: order
56 description: >-
57 The field to sort the data by. By default, the sort order is
58 ascending. To change the order to descending, prefix the field name
59 with `-`.
60 - name: q
61 in: query
62 description: Search term to filter the payment's searchable properties.
63 required: false
64 schema:
65 type: string
66 title: q
67 description: Search term to filter the payment's searchable properties.
68 - name: id
69 in: query
70 required: false
71 schema:
72 oneOf:
73 - type: string
74 title: id
75 description: Filter by a payment ID.
76 - type: array
77 description: Filter by payment IDs.
78 items:
79 type: string
80 title: id
81 description: A payment ID.
82 - name: payment_session_id
83 in: query
84 required: false
85 schema:
86 oneOf:
87 - type: string
88 title: payment_session_id
89 description: >-
90 Filter by a payment session ID to retrieve its associated
91 payments.
92 - type: array
93 description: >-
94 Filter by payment session IDs to retrieve their associated
95 payments.
96 items:
97 type: string
98 title: payment_session_id
99 description: A payment session's ID.
100 - name: created_at
101 in: query
102 description: Filter by the payment's creation date.
103 required: false
104 schema:
105 type: object
106 description: Filter by the payment's creation date.
107 properties:
108 $and:
109 type: array
110 description: >-
111 Join query parameters with an AND condition. Each object's content
112 is the same type as the expected query parameters.
113 items:
114 type: object
115 title: $and
116 $or:
117 type: array
118 description: >-
119 Join query parameters with an OR condition. Each object's content
120 is the same type as the expected query parameters.
121 items:
122 type: object
123 title: $or
124 $eq:
125 oneOf:
126 - type: string
127 title: $eq
128 description: Filter by an exact match.
129 - type: array
130 description: Filter by an exact match.
131 items:
132 type: string
133 title: $eq
134 description: Filter by an exact match.
135 $ne:
136 type: string
137 title: $ne
138 description: Filter by values not equal to this parameter.
139 $in:
140 type: array
141 description: Filter by values in this array.
142 items:
143 type: string
144 title: $in
145 description: Filter by values in this array.
146 $nin:
147 type: array
148 description: Filter by values not in this array.
149 items:
150 type: string
151 title: $nin
152 description: Filter by values not in this array.
153 $not:
154 oneOf:
155 - type: string
156 title: $not
157 description: >-
158 Filter by values not matching the conditions in this
159 parameter.
160 - type: object
161 description: >-
162 Filter by values not matching the conditions in this
163 parameter.
164 - type: array
165 description: >-
166 Filter by values not matching the conditions in this
167 parameter.
168 items:
169 type: string
170 title: $not
171 description: >-
172 Filter by values not matching the conditions in this
173 parameter.
174 $gt:
175 type: string
176 title: $gt
177 description: >-
178 Filter by values greater than this parameter. Useful for numbers
179 and dates only.
180 $gte:
181 type: string
182 title: $gte
183 description: >-
184 Filter by values greater than or equal to this parameter. Useful
185 for numbers and dates only.
186 $lt:
187 type: string
188 title: $lt
189 description: >-
190 Filter by values less than this parameter. Useful for numbers and
191 dates only.
192 $lte:
193 type: string
194 title: $lte
195 description: >-
196 Filter by values less than or equal to this parameter. Useful for
197 numbers and dates only.
198 $like:
199 type: string
200 title: $like
201 description: Apply a `like` filter. Useful for strings only.
202 $re:
203 type: string
204 title: $re
205 description: Apply a regex filter. Useful for strings only.
206 $ilike:
207 type: string
208 title: $ilike
209 description: Apply a case-insensitive `like` filter. Useful for strings only.
210 $fulltext:
211 type: string
212 title: $fulltext
213 description: Filter to apply on full-text properties.
214 $overlap:
215 type: array
216 description: Filter arrays that have overlapping values with this parameter.
217 items:
218 type: string
219 title: $overlap
220 description: Filter arrays that have overlapping values with this parameter.
221 $contains:
222 type: array
223 description: Filter arrays that contain some of the values of this parameter.
224 items:
225 type: string
226 title: $contains
227 description: Filter arrays that contain some of the values of this parameter.
228 $contained:
229 type: array
230 description: Filter arrays that contain all values of this parameter.
231 items:
232 type: string
233 title: $contained
234 description: Filter arrays that contain all values of this parameter.
235 $exists:
236 type: boolean
237 title: $exists
238 description: Filter by whether a value for this parameter exists (not `null`).
239 title: created_at
240 - name: updated_at
241 in: query
242 description: Filter by the payment's update date.
243 required: false
244 schema:
245 type: object
246 description: Filter by the payment's update date.
247 properties:
248 $and:
249 type: array
250 description: >-
251 Join query parameters with an AND condition. Each object's content
252 is the same type as the expected query parameters.
253 items:
254 type: object
255 title: $and
256 $or:
257 type: array
258 description: >-
259 Join query parameters with an OR condition. Each object's content
260 is the same type as the expected query parameters.
261 items:
262 type: object
263 title: $or
264 $eq:
265 oneOf:
266 - type: string
267 title: $eq
268 description: Filter by an exact match.
269 - type: array
270 description: Filter by an exact match.
271 items:
272 type: string
273 title: $eq
274 description: Filter by an exact match.
275 $ne:
276 type: string
277 title: $ne
278 description: Filter by values not equal to this parameter.
279 $in:
280 type: array
281 description: Filter by values in this array.
282 items:
283 type: string
284 title: $in
285 description: Filter by values in this array.
286 $nin:
287 type: array
288 description: Filter by values not in this array.
289 items:
290 type: string
291 title: $nin
292 description: Filter by values not in this array.
293 $not:
294 oneOf:
295 - type: string
296 title: $not
297 description: >-
298 Filter by values not matching the conditions in this
299 parameter.
300 - type: object
301 description: >-
302 Filter by values not matching the conditions in this
303 parameter.
304 - type: array
305 description: >-
306 Filter by values not matching the conditions in this
307 parameter.
308 items:
309 type: string
310 title: $not
311 description: >-
312 Filter by values not matching the conditions in this
313 parameter.
314 $gt:
315 type: string
316 title: $gt
317 description: >-
318 Filter by values greater than this parameter. Useful for numbers
319 and dates only.
320 $gte:
321 type: string
322 title: $gte
323 description: >-
324 Filter by values greater than or equal to this parameter. Useful
325 for numbers and dates only.
326 $lt:
327 type: string
328 title: $lt
329 description: >-
330 Filter by values less than this parameter. Useful for numbers and
331 dates only.
332 $lte:
333 type: string
334 title: $lte
335 description: >-
336 Filter by values less than or equal to this parameter. Useful for
337 numbers and dates only.
338 $like:
339 type: string
340 title: $like
341 description: Apply a `like` filter. Useful for strings only.
342 $re:
343 type: string
344 title: $re
345 description: Apply a regex filter. Useful for strings only.
346 $ilike:
347 type: string
348 title: $ilike
349 description: Apply a case-insensitive `like` filter. Useful for strings only.
350 $fulltext:
351 type: string
352 title: $fulltext
353 description: Filter to apply on full-text properties.
354 $overlap:
355 type: array
356 description: Filter arrays that have overlapping values with this parameter.
357 items:
358 type: string
359 title: $overlap
360 description: Filter arrays that have overlapping values with this parameter.
361 $contains:
362 type: array
363 description: Filter arrays that contain some of the values of this parameter.
364 items:
365 type: string
366 title: $contains
367 description: Filter arrays that contain some of the values of this parameter.
368 $contained:
369 type: array
370 description: Filter arrays that contain all values of this parameter.
371 items:
372 type: string
373 title: $contained
374 description: Filter arrays that contain all values of this parameter.
375 $exists:
376 type: boolean
377 title: $exists
378 description: Filter by whether a value for this parameter exists (not `null`).
379 title: updated_at
380 - name: deleted_at
381 in: query
382 description: Filter by the payment's deletion date.
383 required: false
384 schema:
385 type: object
386 description: Filter by the payment's deletion date.
387 properties:
388 $and:
389 type: array
390 description: >-
391 Join query parameters with an AND condition. Each object's content
392 is the same type as the expected query parameters.
393 items:
394 type: object
395 title: $and
396 $or:
397 type: array
398 description: >-
399 Join query parameters with an OR condition. Each object's content
400 is the same type as the expected query parameters.
401 items:
402 type: object
403 title: $or
404 $eq:
405 oneOf:
406 - type: string
407 title: $eq
408 description: Filter by an exact match.
409 - type: array
410 description: Filter by an exact match.
411 items:
412 type: string
413 title: $eq
414 description: Filter by an exact match.
415 $ne:
416 type: string
417 title: $ne
418 description: Filter by values not equal to this parameter.
419 $in:
420 type: array
421 description: Filter by values in this array.
422 items:
423 type: string
424 title: $in
425 description: Filter by values in this array.
426 $nin:
427 type: array
428 description: Filter by values not in this array.
429 items:
430 type: string
431 title: $nin
432 description: Filter by values not in this array.
433 $not:
434 oneOf:
435 - type: string
436 title: $not
437 description: >-
438 Filter by values not matching the conditions in this
439 parameter.
440 - type: object
441 description: >-
442 Filter by values not matching the conditions in this
443 parameter.
444 - type: array
445 description: >-
446 Filter by values not matching the conditions in this
447 parameter.
448 items:
449 type: string
450 title: $not
451 description: >-
452 Filter by values not matching the conditions in this
453 parameter.
454 $gt:
455 type: string
456 title: $gt
457 description: >-
458 Filter by values greater than this parameter. Useful for numbers
459 and dates only.
460 $gte:
461 type: string
462 title: $gte
463 description: >-
464 Filter by values greater than or equal to this parameter. Useful
465 for numbers and dates only.
466 $lt:
467 type: string
468 title: $lt
469 description: >-
470 Filter by values less than this parameter. Useful for numbers and
471 dates only.
472 $lte:
473 type: string
474 title: $lte
475 description: >-
476 Filter by values less than or equal to this parameter. Useful for
477 numbers and dates only.
478 $like:
479 type: string
480 title: $like
481 description: Apply a `like` filter. Useful for strings only.
482 $re:
483 type: string
484 title: $re
485 description: Apply a regex filter. Useful for strings only.
486 $ilike:
487 type: string
488 title: $ilike
489 description: Apply a case-insensitive `like` filter. Useful for strings only.
490 $fulltext:
491 type: string
492 title: $fulltext
493 description: Filter to apply on full-text properties.
494 $overlap:
495 type: array
496 description: Filter arrays that have overlapping values with this parameter.
497 items:
498 type: string
499 title: $overlap
500 description: Filter arrays that have overlapping values with this parameter.
501 $contains:
502 type: array
503 description: Filter arrays that contain some of the values of this parameter.
504 items:
505 type: string
506 title: $contains
507 description: Filter arrays that contain some of the values of this parameter.
508 $contained:
509 type: array
510 description: Filter arrays that contain all values of this parameter.
511 items:
512 type: string
513 title: $contained
514 description: Filter arrays that contain all values of this parameter.
515 $exists:
516 type: boolean
517 title: $exists
518 description: Filter by whether a value for this parameter exists (not `null`).
519 title: deleted_at
520 - name: $and
521 in: query
522 required: false
523 schema:
524 type: array
525 description: >-
526 Join query parameters with an AND condition. Each object's content is
527 the same type as the expected query parameters.
528 items:
529 type: object
530 title: $and
531 - name: $or
532 in: query
533 required: false
534 schema:
535 type: array
536 description: >-
537 Join query parameters with an OR condition. Each object's content is
538 the same type as the expected query parameters.
539 items:
540 type: object
541 title: $or
542 - name: with_deleted
543 in: query
544 description: Whether to include deleted records in the result.
545 required: false
546 schema:
547 type: boolean
548 title: with_deleted
549 description: Whether to include deleted records in the result.
550 security:
551 - api_token: []
552 - cookie_auth: []
553 - jwt_token: []
554 x-codeSamples:
555 - lang: JavaScript
556 label: JS SDK
557 source:
558 $ref: ../code_samples/JavaScript/admin_payments/get.js
559 - lang: Shell
560 label: cURL
561 source:
562 $ref: ../code_samples/Shell/admin_payments/get.sh
563 tags:
564 - Payments
565 responses:
566 '200':
567 description: OK
568 content:
569 application/json:
570 schema:
571 allOf:
572 - type: object
573 description: The paginated list of payments.
574 required:
575 - limit
576 - offset
577 - count
578 properties:
579 limit:
580 type: number
581 title: limit
582 description: The maximum number of returned items.
583 offset:
584 type: number
585 title: offset
586 description: The number of items skipped before the returned items.
587 count:
588 type: number
589 title: count
590 description: The total number of payments.
591 - type: object
592 description: The paginated list of payments.
593 required:
594 - payments
595 properties:
596 payments:
597 type: array
598 description: The list of payments.
599 items:
600 $ref: ../components/schemas/AdminPayment.yaml
601 '400':
602 $ref: ../components/responses/400_error.yaml
603 '401':
604 $ref: ../components/responses/unauthorized.yaml
605 '404':
606 $ref: ../components/responses/not_found_error.yaml
607 '409':
608 $ref: ../components/responses/invalid_state_error.yaml
609 '422':
610 $ref: ../components/responses/invalid_request_error.yaml
611 '500':
612 $ref: ../components/responses/500_error.yaml