1 get:
2 operationId: GetCurrencies
3 summary: List Currencies
4 description: >-
5 Retrieve a list of currencies. The currencies can be filtered by fields such
6 as `id`. The currencies 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: The search term to filter the currency's searchable properties by.
63 required: false
64 schema:
65 type: string
66 title: q
67 description: The search term to filter the currency's searchable properties by.
68 - name: code
69 in: query
70 required: false
71 schema:
72 oneOf:
73 - type: string
74 title: code
75 description: Filter by a currency code.
76 - type: array
77 description: Filter by currency codes.
78 items:
79 type: string
80 title: code
81 description: A currency code.
82 - name: $and
83 in: query
84 description: >-
85 Join query parameters with an AND condition. Each object's content is
86 the same type as the expected query parameters.
87 required: false
88 schema:
89 type: array
90 description: >-
91 Join query parameters with an AND condition. Each object's content is
92 the same type as the expected query parameters.
93 items:
94 type: object
95 title: $and
96 - name: $or
97 in: query
98 description: >-
99 Join query parameters with an OR condition. Each object's content is the
100 same type as the expected query parameters.
101 required: false
102 schema:
103 type: array
104 description: >-
105 Join query parameters with an OR condition. Each object's content is
106 the same type as the expected query parameters.
107 items:
108 type: object
109 title: $or
110 - name: with_deleted
111 in: query
112 description: Whether to include deleted records in the result.
113 required: false
114 schema:
115 type: boolean
116 title: with_deleted
117 description: Whether to include deleted records in the result.
118 security:
119 - api_token: []
120 - cookie_auth: []
121 - jwt_token: []
122 x-codeSamples:
123 - lang: JavaScript
124 label: JS SDK
125 source:
126 $ref: ../code_samples/JavaScript/admin_currencies/get.js
127 - lang: Shell
128 label: cURL
129 source:
130 $ref: ../code_samples/Shell/admin_currencies/get.sh
131 tags:
132 - Currencies
133 responses:
134 '200':
135 description: OK
136 content:
137 application/json:
138 schema:
139 $ref: ../components/schemas/AdminCurrencyListResponse.yaml
140 '400':
141 $ref: ../components/responses/400_error.yaml
142 '401':
143 $ref: ../components/responses/unauthorized.yaml
144 '404':
145 $ref: ../components/responses/not_found_error.yaml
146 '409':
147 $ref: ../components/responses/invalid_state_error.yaml
148 '422':
149 $ref: ../components/responses/invalid_request_error.yaml
150 '500':
151 $ref: ../components/responses/500_error.yaml