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