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