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