chore(docs): Updated API Reference (v2) (#8345)

Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
This commit is contained in:
github-actions[bot] authored and GitHub committed 2024-07-30 07:30:58 +00:00
1 parent 5389f7ca63
commit a2a377c8ca
48 files changed
+769 -586

No files matched your search

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/claims/{id}/request' \
-H 'x-medusa-access-token: {api_token}'
@@ -20,6 +20,13 @@ properties:
type: number type: number
title: quantity title: quantity
description: The item's quantity. description: The item's quantity.
reason:
type: string
enum:
- missing_item
- wrong_item
- production_failure
- other
description: description:
type: string type: string
title: description title: description
@@ -28,6 +35,3 @@ properties:
type: string type: string
title: internal_note title: internal_note
description: The item's internal note. description: The item's internal note.
metadata:
type: object
description: The item's metadata.
@@ -6,6 +6,13 @@ properties:
type: number type: number
title: quantity title: quantity
description: The claim's quantity. description: The claim's quantity.
reason:
type: string
enum:
- missing_item
- wrong_item
- production_failure
- other
internal_note: internal_note:
type: string type: string
title: internal_note title: internal_note
@@ -1253,18 +1253,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -1302,8 +1296,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -1332,18 +1324,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -1392,8 +1378,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -1429,18 +1413,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -1483,8 +1461,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -1526,18 +1502,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -1580,8 +1550,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -1622,18 +1590,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -1671,8 +1633,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -1708,18 +1668,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -1762,8 +1716,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -1805,18 +1757,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -1859,8 +1805,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -1901,18 +1845,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -1950,8 +1888,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -1987,18 +1923,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -2045,8 +1975,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -2088,18 +2016,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -2142,8 +2064,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -2184,18 +2104,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -2233,8 +2147,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -2270,18 +2182,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -2324,8 +2230,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -2367,18 +2271,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -2421,8 +2319,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -2463,18 +2359,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -2512,8 +2402,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -2549,18 +2437,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -2607,8 +2489,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -2650,18 +2530,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -2704,8 +2578,6 @@ paths:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -2744,6 +2616,84 @@ paths:
type: string type: string
title: expand title: expand
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields
in: query
description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
required: false
schema:
type: string
title: fields
description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
- name: offset
in: query
description: The number of items to skip when retrieving a list.
required: false
schema:
type: number
title: offset
description: The number of items to skip when retrieving a list.
- name: limit
in: query
description: Limit the number of items returned in the list.
required: false
schema:
type: number
title: limit
description: Limit the number of items returned in the list.
- name: order
in: query
description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
required: false
schema:
type: string
title: order
description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
security:
- api_token: []
- cookie_auth: []
- jwt_token: []
x-codeSamples:
- lang: Shell
label: cURL
source: |-
curl -X DELETE '{backend_url}/admin/claims/{id}/outbound/shipping-method/{action_id}' \
-H 'x-medusa-access-token: {api_token}'
tags:
- Claims
responses:
'400':
$ref: '#/components/responses/400_error'
'401':
$ref: '#/components/responses/unauthorized'
'404':
$ref: '#/components/responses/not_found_error'
'409':
$ref: '#/components/responses/invalid_state_error'
'422':
$ref: '#/components/responses/invalid_request_error'
'500':
$ref: '#/components/responses/500_error'
/admin/claims/{id}/request:
post:
operationId: PostClaimsIdRequest
summary: Add Requests to Claim
description: Add a list of requests to a claim.
x-authenticated: true
parameters:
- name: id
in: path
description: The claim's ID.
required: true
schema:
type: string
- name: expand
in: query
description: Comma-separated relations that should be expanded in the returned data.
required: false
schema:
type: string
title: expand
description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: |-
@@ -2790,7 +2740,7 @@ paths:
- lang: Shell - lang: Shell
label: cURL label: cURL
source: |- source: |-
curl -X DELETE '{backend_url}/admin/claims/{id}/outbound/shipping-method/{action_id}' \ curl -X POST '{backend_url}/admin/claims/{id}/request' \
-H 'x-medusa-access-token: {api_token}' -H 'x-medusa-access-token: {api_token}'
tags: tags:
- Claims - Claims
@@ -5463,6 +5413,20 @@ paths:
type: string type: string
title: q title: q
description: The fulfillment provider's q. description: The fulfillment provider's q.
- name: stock_location_id
in: query
required: false
schema:
oneOf:
- type: string
title: stock_location_id
description: The fulfillment provider's stock location id.
- type: array
description: The fulfillment provider's stock location id.
items:
type: string
title: stock_location_id
description: The stock location id's details.
security: security:
- api_token: [] - api_token: []
- cookie_auth: [] - cookie_auth: []
@@ -27425,18 +27389,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -27474,8 +27432,6 @@ paths:
tags: tags:
- Products - Products
responses: responses:
'202':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -27488,6 +27444,10 @@ paths:
$ref: '#/components/responses/invalid_request_error' $ref: '#/components/responses/invalid_request_error'
'500': '500':
$ref: '#/components/responses/500_error' $ref: '#/components/responses/500_error'
requestBody:
content:
application/json:
schema: {}
/admin/products/{id}: /admin/products/{id}:
get: get:
operationId: GetProductsId operationId: GetProductsId
@@ -34125,18 +34085,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -34183,8 +34137,6 @@ paths:
tags: tags:
- Returns - Returns
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -38635,18 +38587,12 @@ paths:
description: Comma-separated relations that should be expanded in the returned data. description: Comma-separated relations that should be expanded in the returned data.
- name: fields - name: fields
in: query in: query
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -38705,8 +38651,6 @@ paths:
tags: tags:
- Stock Locations - Stock Locations
responses: responses:
'200':
description: OK
'400': '400':
$ref: '#/components/responses/400_error' $ref: '#/components/responses/400_error'
'401': '401':
@@ -43626,6 +43570,13 @@ components:
type: number type: number
title: quantity title: quantity
description: The item's quantity. description: The item's quantity.
reason:
type: string
enum:
- missing_item
- wrong_item
- production_failure
- other
description: description:
type: string type: string
title: description title: description
@@ -43634,9 +43585,6 @@ components:
type: string type: string
title: internal_note title: internal_note
description: The item's internal note. description: The item's internal note.
metadata:
type: object
description: The item's metadata.
AdminPostClaimsAddItemsReqSchema: AdminPostClaimsAddItemsReqSchema:
type: object type: object
description: SUMMARY description: SUMMARY
@@ -43680,6 +43628,13 @@ components:
type: number type: number
title: quantity title: quantity
description: The claim's quantity. description: The claim's quantity.
reason:
type: string
enum:
- missing_item
- wrong_item
- production_failure
- other
internal_note: internal_note:
type: string type: string
title: internal_note title: internal_note
@@ -144,6 +144,8 @@ paths:
$ref: paths/admin_claims_{id}_outbound_shipping-method.yaml $ref: paths/admin_claims_{id}_outbound_shipping-method.yaml
/admin/claims/{id}/outbound/shipping-method/{action_id}: /admin/claims/{id}/outbound/shipping-method/{action_id}:
$ref: paths/admin_claims_{id}_outbound_shipping-method_{action_id}.yaml $ref: paths/admin_claims_{id}_outbound_shipping-method_{action_id}.yaml
/admin/claims/{id}/request:
$ref: paths/admin_claims_{id}_request.yaml
/admin/collections: /admin/collections:
$ref: paths/admin_collections.yaml $ref: paths/admin_collections.yaml
/admin/collections/{id}: /admin/collections/{id}:
@@ -18,18 +18,20 @@ get:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -71,8 +73,6 @@ get:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -103,18 +103,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -161,8 +163,6 @@ post:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -22,18 +22,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -80,8 +82,6 @@ post:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -28,18 +28,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -87,8 +89,6 @@ post:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -133,18 +133,20 @@ delete:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -187,8 +189,6 @@ delete:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -22,18 +22,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -80,8 +82,6 @@ post:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -28,18 +28,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -88,8 +90,6 @@ post:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -134,18 +134,20 @@ delete:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -188,8 +190,6 @@ delete:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -22,18 +22,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -81,8 +83,6 @@ post:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -28,18 +28,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -87,8 +89,6 @@ post:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -134,18 +134,20 @@ delete:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -188,8 +190,6 @@ delete:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -22,18 +22,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -80,8 +82,6 @@ post:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -28,18 +28,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -87,8 +89,6 @@ post:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -133,18 +133,20 @@ delete:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -187,8 +189,6 @@ delete:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -22,18 +22,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -81,8 +83,6 @@ post:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -28,18 +28,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -87,8 +89,6 @@ post:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -134,18 +134,20 @@ delete:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -188,8 +190,6 @@ delete:
tags: tags:
- Claims - Claims
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -0,0 +1,91 @@
post:
operationId: PostClaimsIdRequest
summary: Add Requests to Claim
description: Add a list of requests to a claim.
x-authenticated: true
parameters:
- name: id
in: path
description: The claim's ID.
required: true
schema:
type: string
- name: expand
in: query
description: Comma-separated relations that should be expanded in the returned data.
required: false
schema:
type: string
title: expand
description: >-
Comma-separated relations that should be expanded in the returned
data.
- name: fields
in: query
description: |-
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
required: false
schema:
type: string
title: fields
description: |-
Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* without prefix it will replace the entire default fields.
- name: offset
in: query
description: The number of items to skip when retrieving a list.
required: false
schema:
type: number
title: offset
description: The number of items to skip when retrieving a list.
- name: limit
in: query
description: Limit the number of items returned in the list.
required: false
schema:
type: number
title: limit
description: Limit the number of items returned in the list.
- name: order
in: query
description: >-
The field to sort the data by. By default, the sort order is ascending.
To change the order to descending, prefix the field name with `-`.
required: false
schema:
type: string
title: order
description: >-
The field to sort the data by. By default, the sort order is
ascending. To change the order to descending, prefix the field name
with `-`.
security:
- api_token: []
- cookie_auth: []
- jwt_token: []
x-codeSamples:
- lang: Shell
label: cURL
source:
$ref: ../code_samples/Shell/admin_claims_{id}_request/post.sh
tags:
- Claims
responses:
'200':
description: OK
'400':
$ref: ../components/responses/400_error.yaml
'401':
$ref: ../components/responses/unauthorized.yaml
'404':
$ref: ../components/responses/not_found_error.yaml
'409':
$ref: ../components/responses/invalid_state_error.yaml
'422':
$ref: ../components/responses/invalid_request_error.yaml
'500':
$ref: ../components/responses/500_error.yaml
@@ -92,6 +92,20 @@ get:
type: string type: string
title: q title: q
description: The fulfillment provider's q. description: The fulfillment provider's q.
- name: stock_location_id
in: query
required: false
schema:
oneOf:
- type: string
title: stock_location_id
description: The fulfillment provider's stock location id.
- type: array
description: The fulfillment provider's stock location id.
items:
type: string
title: stock_location_id
description: The stock location id's details.
security: security:
- api_token: [] - api_token: []
- cookie_auth: [] - cookie_auth: []
@@ -22,18 +22,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -76,8 +78,6 @@ post:
tags: tags:
- Products - Products
responses: responses:
'202':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -90,3 +90,7 @@ post:
$ref: ../components/responses/invalid_request_error.yaml $ref: ../components/responses/invalid_request_error.yaml
'500': '500':
$ref: ../components/responses/500_error.yaml $ref: ../components/responses/500_error.yaml
requestBody:
content:
application/json:
schema: {}
@@ -115,18 +115,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -173,8 +175,6 @@ post:
tags: tags:
- Returns - Returns
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -22,18 +22,20 @@ post:
data. data.
- name: fields - name: fields
in: query in: query
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data. if
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. a field is prefixed with `+` it will be added to the default fields,
* without prefix it will replace the entire default fields. using `-` will remove it from the default fields. without prefix it will
replace the entire default fields.
required: false required: false
schema: schema:
type: string type: string
title: fields title: fields
description: |- description: >-
Comma-separated fields that should be included in the returned data. Comma-separated fields that should be included in the returned data.
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. if a field is prefixed with `+` it will be added to the default
* without prefix it will replace the entire default fields. fields, using `-` will remove it from the default fields. without
prefix it will replace the entire default fields.
- name: offset - name: offset
in: query in: query
description: The number of items to skip when retrieving a list. description: The number of items to skip when retrieving a list.
@@ -97,8 +99,6 @@ post:
tags: tags:
- Stock Locations - Stock Locations
responses: responses:
'200':
description: OK
'400': '400':
$ref: ../components/responses/400_error.yaml $ref: ../components/responses/400_error.yaml
'401': '401':
@@ -20,6 +20,13 @@ properties:
type: number type: number
title: quantity title: quantity
description: The item's quantity. description: The item's quantity.
reason:
type: string
enum:
- missing_item
- wrong_item
- production_failure
- other
description: description:
type: string type: string
title: description title: description
@@ -28,6 +35,3 @@ properties:
type: string type: string
title: internal_note title: internal_note
description: The item's internal note. description: The item's internal note.
metadata:
type: object
description: The item's metadata.
@@ -6,6 +6,13 @@ properties:
type: number type: number
title: quantity title: quantity
description: The claim's quantity. description: The claim's quantity.
reason:
type: string
enum:
- missing_item
- wrong_item
- production_failure
- other
internal_note: internal_note:
type: string type: string
title: internal_note title: internal_note
@@ -5655,6 +5655,13 @@ components:
type: number type: number
title: quantity title: quantity
description: The item's quantity. description: The item's quantity.
reason:
type: string
enum:
- missing_item
- wrong_item
- production_failure
- other
description: description:
type: string type: string
title: description title: description
@@ -5663,9 +5670,6 @@ components:
type: string type: string
title: internal_note title: internal_note
description: The item's internal note. description: The item's internal note.
metadata:
type: object
description: The item's metadata.
AdminPostClaimsAddItemsReqSchema: AdminPostClaimsAddItemsReqSchema:
type: object type: object
description: SUMMARY description: SUMMARY
@@ -5709,6 +5713,13 @@ components:
type: number type: number
title: quantity title: quantity
description: The claim's quantity. description: The claim's quantity.
reason:
type: string
enum:
- missing_item
- wrong_item
- production_failure
- other
internal_note: internal_note:
type: string type: string
title: internal_note title: internal_note
@@ -28,18 +28,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -81,8 +81,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -28,18 +28,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -83,8 +83,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -29,18 +29,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -84,8 +84,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -28,18 +28,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -83,8 +83,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -29,18 +29,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -84,8 +84,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -16,18 +16,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -69,8 +69,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -87,6 +87,20 @@
* type: string * type: string
* title: q * title: q
* description: The fulfillment provider's q. * description: The fulfillment provider's q.
* - name: stock_location_id
* in: query
* required: false
* schema:
* oneOf:
* - type: string
* title: stock_location_id
* description: The fulfillment provider's stock location id.
* - type: array
* description: The fulfillment provider's stock location id.
* items:
* type: string
* title: stock_location_id
* description: The stock location id's details.
* security: * security:
* - api_token: [] * - api_token: []
* - cookie_auth: [] * - cookie_auth: []
@@ -15,18 +15,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -79,8 +79,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -21,18 +21,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -79,8 +79,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -27,18 +27,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -85,8 +85,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -21,18 +21,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -79,8 +79,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -27,18 +27,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -85,8 +85,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -21,18 +21,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -83,8 +83,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -27,18 +27,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -87,8 +87,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -21,18 +21,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -79,8 +79,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -27,18 +27,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -87,8 +87,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -21,18 +21,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -83,8 +83,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -27,18 +27,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -87,8 +87,6 @@
* tags: * tags:
* - Claims * - Claims
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -0,0 +1,93 @@
/**
* @oas [post] /admin/claims/{id}/request
* operationId: PostClaimsIdRequest
* summary: Add Requests to Claim
* description: Add a list of requests to a claim.
* x-authenticated: true
* parameters:
* - name: id
* in: path
* description: The claim's ID.
* required: true
* schema:
* type: string
* - name: expand
* in: query
* description: Comma-separated relations that should be expanded in the returned data.
* required: false
* schema:
* type: string
* title: expand
* description: Comma-separated relations that should be expanded in the returned data.
* - name: fields
* in: query
* description: >-
* Comma-separated fields that should be included in the returned data.
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* * without prefix it will replace the entire default fields.
* required: false
* schema:
* type: string
* title: fields
* description: >-
* Comma-separated fields that should be included in the returned data.
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
* * without prefix it will replace the entire default fields.
* - name: offset
* in: query
* description: The number of items to skip when retrieving a list.
* required: false
* schema:
* type: number
* title: offset
* description: The number of items to skip when retrieving a list.
* - name: limit
* in: query
* description: Limit the number of items returned in the list.
* required: false
* schema:
* type: number
* title: limit
* description: Limit the number of items returned in the list.
* - name: order
* in: query
* description: The field to sort the data by. By default, the sort order is
* ascending. To change the order to descending, prefix the field name with
* `-`.
* required: false
* schema:
* type: string
* title: order
* description: The field to sort the data by. By default, the sort order is
* ascending. To change the order to descending, prefix the field name with
* `-`.
* security:
* - api_token: []
* - cookie_auth: []
* - jwt_token: []
* x-codeSamples:
* - lang: Shell
* label: cURL
* source: |-
* curl -X POST '{backend_url}/admin/claims/{id}/request' \
* -H 'x-medusa-access-token: {api_token}'
* tags:
* - Claims
* responses:
* "200":
* description: OK
* "400":
* $ref: "#/components/responses/400_error"
* "401":
* $ref: "#/components/responses/unauthorized"
* "404":
* $ref: "#/components/responses/not_found_error"
* "409":
* $ref: "#/components/responses/invalid_state_error"
* "422":
* $ref: "#/components/responses/invalid_request_error"
* "500":
* $ref: "#/components/responses/500_error"
*
*/
@@ -21,18 +21,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -76,8 +76,6 @@
* tags: * tags:
* - Products * - Products
* responses: * responses:
* "202":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -90,6 +88,10 @@
* $ref: "#/components/responses/invalid_request_error" * $ref: "#/components/responses/invalid_request_error"
* "500": * "500":
* $ref: "#/components/responses/500_error" * $ref: "#/components/responses/500_error"
* requestBody:
* content:
* application/json:
* schema: {}
* *
*/ */
@@ -21,18 +21,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -83,8 +83,6 @@
* tags: * tags:
* - Returns * - Returns
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -21,18 +21,18 @@
* description: Comma-separated relations that should be expanded in the returned data. * description: Comma-separated relations that should be expanded in the returned data.
* - name: fields * - name: fields
* in: query * in: query
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* required: false * required: false
* schema: * schema:
* type: string * type: string
* title: fields * title: fields
* description: >- * description: Comma-separated fields that should be included in the returned
* Comma-separated fields that should be included in the returned data. * data. if a field is prefixed with `+` it will be added to the default
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. * fields, using `-` will remove it from the default fields. without prefix
* * without prefix it will replace the entire default fields. * it will replace the entire default fields.
* - name: offset * - name: offset
* in: query * in: query
* description: The number of items to skip when retrieving a list. * description: The number of items to skip when retrieving a list.
@@ -97,8 +97,6 @@
* tags: * tags:
* - Stock Locations * - Stock Locations
* responses: * responses:
* "200":
* description: OK
* "400": * "400":
* $ref: "#/components/responses/400_error" * $ref: "#/components/responses/400_error"
* "401": * "401":
@@ -22,6 +22,13 @@
* type: number * type: number
* title: quantity * title: quantity
* description: The item's quantity. * description: The item's quantity.
* reason:
* type: string
* enum:
* - missing_item
* - wrong_item
* - production_failure
* - other
* description: * description:
* type: string * type: string
* title: description * title: description
@@ -30,9 +37,6 @@
* type: string * type: string
* title: internal_note * title: internal_note
* description: The item's internal note. * description: The item's internal note.
* metadata:
* type: object
* description: The item's metadata.
* *
*/ */
@@ -8,6 +8,13 @@
* type: number * type: number
* title: quantity * title: quantity
* description: The claim's quantity. * description: The claim's quantity.
* reason:
* type: string
* enum:
* - missing_item
* - wrong_item
* - production_failure
* - other
* internal_note: * internal_note:
* type: string * type: string
* title: internal_note * title: internal_note