docs-util: add publishable api key header parameter to store routes OAS (#10747)
* docs-util: add publishable api key header parameter to store routes OAS * fix oas
This commit is contained in:
1 parent
b9e7090842
commit
91ebf6d61c
92 files changed
+1268
-76
No files matched your search
+21
@@ -18,6 +18,11 @@ const TagsOperationDescriptionSectionParameters = ({
|
|||||||
required: [],
|
required: [],
|
||||||
properties: {},
|
properties: {},
|
||||||
}
|
}
|
||||||
|
const headerParameters: SchemaObject = {
|
||||||
|
type: "object",
|
||||||
|
required: [],
|
||||||
|
properties: {},
|
||||||
|
}
|
||||||
|
|
||||||
parameters.forEach((parameter) => {
|
parameters.forEach((parameter) => {
|
||||||
const parameterObject = {
|
const parameterObject = {
|
||||||
@@ -37,11 +42,27 @@ const TagsOperationDescriptionSectionParameters = ({
|
|||||||
queryParameters.required?.push(parameter.name)
|
queryParameters.required?.push(parameter.name)
|
||||||
}
|
}
|
||||||
queryParameters.properties[parameter.name] = parameterObject
|
queryParameters.properties[parameter.name] = parameterObject
|
||||||
|
} else if (parameter.in === "header") {
|
||||||
|
if (parameter.required) {
|
||||||
|
headerParameters.required?.push(parameter.name)
|
||||||
|
}
|
||||||
|
headerParameters.properties[parameter.name] = parameterObject
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{Object.values(headerParameters.properties).length > 0 && (
|
||||||
|
<>
|
||||||
|
<h3 className="border-medusa-border-base border-b py-1.5">
|
||||||
|
Header Parameters
|
||||||
|
</h3>
|
||||||
|
<TagOperationParameters
|
||||||
|
schemaObject={headerParameters}
|
||||||
|
topLevel={true}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
{Object.values(pathParameters.properties).length > 0 && (
|
{Object.values(pathParameters.properties).length > 0 && (
|
||||||
<>
|
<>
|
||||||
<h3 className="border-medusa-border-base border-b py-1.5">
|
<h3 className="border-medusa-border-base border-b py-1.5">
|
||||||
|
|||||||
+7
-2
@@ -17,8 +17,13 @@ properties:
|
|||||||
title: id
|
title: id
|
||||||
description: The price rule's ID.
|
description: The price rule's ID.
|
||||||
value:
|
value:
|
||||||
type: string
|
oneOf:
|
||||||
title: value
|
- type: string
|
||||||
|
title: value
|
||||||
|
description: The price rule's value.
|
||||||
|
- type: number
|
||||||
|
title: value
|
||||||
|
description: The price rule's value.
|
||||||
description: The price rule's value.
|
description: The price rule's value.
|
||||||
operator:
|
operator:
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -26,18 +26,8 @@ properties:
|
|||||||
description: The shipping option rule's operator.
|
description: The shipping option rule's operator.
|
||||||
example: eq
|
example: eq
|
||||||
value:
|
value:
|
||||||
oneOf:
|
type: string
|
||||||
- type: string
|
title: value
|
||||||
title: value
|
|
||||||
description: The rule's value.
|
|
||||||
example: '"true"'
|
|
||||||
- type: array
|
|
||||||
description: The rule's values.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: value
|
|
||||||
description: A rule's value
|
|
||||||
example: '"true"'
|
|
||||||
shipping_option_id:
|
shipping_option_id:
|
||||||
type: string
|
type: string
|
||||||
title: shipping_option_id
|
title: shipping_option_id
|
||||||
|
|||||||
@@ -53046,8 +53046,13 @@ components:
|
|||||||
title: id
|
title: id
|
||||||
description: The price rule's ID.
|
description: The price rule's ID.
|
||||||
value:
|
value:
|
||||||
type: string
|
oneOf:
|
||||||
title: value
|
- type: string
|
||||||
|
title: value
|
||||||
|
description: The price rule's value.
|
||||||
|
- type: number
|
||||||
|
title: value
|
||||||
|
description: The price rule's value.
|
||||||
description: The price rule's value.
|
description: The price rule's value.
|
||||||
operator:
|
operator:
|
||||||
type: string
|
type: string
|
||||||
@@ -53126,18 +53131,8 @@ components:
|
|||||||
description: The shipping option rule's operator.
|
description: The shipping option rule's operator.
|
||||||
example: eq
|
example: eq
|
||||||
value:
|
value:
|
||||||
oneOf:
|
type: string
|
||||||
- type: string
|
title: value
|
||||||
title: value
|
|
||||||
description: The rule's value.
|
|
||||||
example: '"true"'
|
|
||||||
- type: array
|
|
||||||
description: The rule's values.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: value
|
|
||||||
description: A rule's value
|
|
||||||
example: '"true"'
|
|
||||||
shipping_option_id:
|
shipping_option_id:
|
||||||
type: string
|
type: string
|
||||||
title: shipping_option_id
|
title: shipping_option_id
|
||||||
|
|||||||
+7
-2
@@ -17,8 +17,13 @@ properties:
|
|||||||
title: id
|
title: id
|
||||||
description: The price rule's ID.
|
description: The price rule's ID.
|
||||||
value:
|
value:
|
||||||
type: string
|
oneOf:
|
||||||
title: value
|
- type: string
|
||||||
|
title: value
|
||||||
|
description: The price rule's value.
|
||||||
|
- type: number
|
||||||
|
title: value
|
||||||
|
description: The price rule's value.
|
||||||
description: The price rule's value.
|
description: The price rule's value.
|
||||||
operator:
|
operator:
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -26,18 +26,8 @@ properties:
|
|||||||
description: The shipping option rule's operator.
|
description: The shipping option rule's operator.
|
||||||
example: eq
|
example: eq
|
||||||
value:
|
value:
|
||||||
oneOf:
|
type: string
|
||||||
- type: string
|
title: value
|
||||||
title: value
|
|
||||||
description: The rule's value.
|
|
||||||
example: '"true"'
|
|
||||||
- type: array
|
|
||||||
description: The rule's values.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: value
|
|
||||||
description: A rule's value
|
|
||||||
example: '"true"'
|
|
||||||
shipping_option_id:
|
shipping_option_id:
|
||||||
type: string
|
type: string
|
||||||
title: shipping_option_id
|
title: shipping_option_id
|
||||||
|
|||||||
@@ -568,6 +568,14 @@ paths:
|
|||||||
description: Create a cart.
|
description: Create a cart.
|
||||||
x-authenticated: false
|
x-authenticated: false
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -632,6 +640,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -681,6 +697,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -754,6 +778,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -857,6 +889,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: |-
|
description: |-
|
||||||
@@ -915,6 +955,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -987,6 +1035,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -1057,6 +1113,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -1136,6 +1200,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -1208,6 +1280,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -1269,6 +1349,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -1344,6 +1432,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -1392,6 +1488,14 @@ paths:
|
|||||||
url: https://docs.medusajs.com/v2/resources/storefront-development/products/collections/list
|
url: https://docs.medusajs.com/v2/resources/storefront-development/products/collections/list
|
||||||
description: 'Storefront guide: How to retrieve a list of collections.'
|
description: 'Storefront guide: How to retrieve a list of collections.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2020,6 +2124,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2064,6 +2176,14 @@ paths:
|
|||||||
description: Retrieve a list of currencies. The currencies can be filtered by fields such as `code`. The currencies can also be sorted or paginated.
|
description: Retrieve a list of currencies. The currencies can be filtered by fields such as `code`. The currencies can also be sorted or paginated.
|
||||||
x-authenticated: false
|
x-authenticated: false
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2184,6 +2304,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2231,6 +2359,14 @@ paths:
|
|||||||
description: 'Storefront guide: How to register a customer.'
|
description: 'Storefront guide: How to register a customer.'
|
||||||
x-authenticated: true
|
x-authenticated: true
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2297,6 +2433,14 @@ paths:
|
|||||||
url: https://docs.medusajs.com/v2/resources/storefront-development/customers/retrieve
|
url: https://docs.medusajs.com/v2/resources/storefront-development/customers/retrieve
|
||||||
description: 'Storefront guide: How to retrieve the logged-in customer.'
|
description: 'Storefront guide: How to retrieve the logged-in customer.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2347,6 +2491,14 @@ paths:
|
|||||||
description: 'Storefront guide: How to edit a customer''s profile.'
|
description: 'Storefront guide: How to edit a customer''s profile.'
|
||||||
x-authenticated: true
|
x-authenticated: true
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2412,6 +2564,14 @@ paths:
|
|||||||
url: https://docs.medusajs.com/v2/resources/storefront-development/customers/addresses#list-customer-addresses
|
url: https://docs.medusajs.com/v2/resources/storefront-development/customers/addresses#list-customer-addresses
|
||||||
description: 'Storefront guide: How to retrieve the logged-in customer''s addresses.'
|
description: 'Storefront guide: How to retrieve the logged-in customer''s addresses.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2544,6 +2704,14 @@ paths:
|
|||||||
description: 'Storefront guide: How to create an address for the logged-in customer.'
|
description: 'Storefront guide: How to create an address for the logged-in customer.'
|
||||||
x-authenticated: true
|
x-authenticated: true
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2677,6 +2845,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2734,6 +2910,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2858,6 +3042,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -2935,6 +3127,14 @@ paths:
|
|||||||
description: Retrieve the orders of the logged-in customer. The orders can be filtered by fields such as `id`. The orders can also be sorted or paginated.
|
description: Retrieve the orders of the logged-in customer. The orders can be filtered by fields such as `id`. The orders can also be sorted or paginated.
|
||||||
x-authenticated: true
|
x-authenticated: true
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -3113,6 +3313,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -3165,6 +3373,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: |-
|
description: |-
|
||||||
@@ -3229,6 +3445,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: |-
|
description: |-
|
||||||
@@ -3287,6 +3511,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: |-
|
description: |-
|
||||||
@@ -3351,6 +3583,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: |-
|
description: |-
|
||||||
@@ -3410,6 +3650,14 @@ paths:
|
|||||||
description: 'Storefront guide: How to implement payment during checkout.'
|
description: 'Storefront guide: How to implement payment during checkout.'
|
||||||
x-authenticated: false
|
x-authenticated: false
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -3474,6 +3722,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -3531,6 +3787,14 @@ paths:
|
|||||||
url: https://docs.medusajs.com/v2/resources/storefront-development/checkout/payment
|
url: https://docs.medusajs.com/v2/resources/storefront-development/checkout/payment
|
||||||
description: 'Storefront guide: How to implement payment during checkout.'
|
description: 'Storefront guide: How to implement payment during checkout.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -3643,6 +3907,14 @@ paths:
|
|||||||
url: https://docs.medusajs.com/v2/resources/storefront-development/products/categories/list
|
url: https://docs.medusajs.com/v2/resources/storefront-development/products/categories/list
|
||||||
description: 'Storefront guide: How to retrieve a list of product categories.'
|
description: 'Storefront guide: How to retrieve a list of product categories.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -4298,6 +4570,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -4361,6 +4641,14 @@ paths:
|
|||||||
url: https://docs.medusajs.com/v2/resources/storefront-development/products/price
|
url: https://docs.medusajs.com/v2/resources/storefront-development/products/price
|
||||||
description: 'Storefront guide: How to retrieve a product variants'' prices.'
|
description: 'Storefront guide: How to retrieve a product variants'' prices.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -5143,6 +5431,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -5188,6 +5484,36 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
title: cart_id
|
title: cart_id
|
||||||
description: The ID of the customer's cart. If set, the cart's region and shipping address's country code and province are used instead of the `region_id`, `country_code`, and `province` properties.
|
description: The ID of the customer's cart. If set, the cart's region and shipping address's country code and province are used instead of the `region_id`, `country_code`, and `province` properties.
|
||||||
|
- 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.
|
||||||
|
externalDocs:
|
||||||
|
url: '#pagination'
|
||||||
|
- 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.
|
||||||
|
externalDocs:
|
||||||
|
url: '#pagination'
|
||||||
|
- 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 `-`.
|
||||||
|
externalDocs:
|
||||||
|
url: '#pagination'
|
||||||
x-codeSamples:
|
x-codeSamples:
|
||||||
- lang: Shell
|
- lang: Shell
|
||||||
label: cURL
|
label: cURL
|
||||||
@@ -5225,6 +5551,14 @@ paths:
|
|||||||
url: https://docs.medusajs.com/v2/resources/storefront-development/regions/list
|
url: https://docs.medusajs.com/v2/resources/storefront-development/regions/list
|
||||||
description: 'Storefront guide: How to retrieve a list of regions.'
|
description: 'Storefront guide: How to retrieve a list of regions.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -5402,6 +5736,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -5500,6 +5842,15 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
$ref: '#/components/responses/500_error'
|
$ref: '#/components/responses/500_error'
|
||||||
x-workflow: createAndCompleteReturnOrderWorkflow
|
x-workflow: createAndCompleteReturnOrderWorkflow
|
||||||
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
/store/return-reasons:
|
/store/return-reasons:
|
||||||
get:
|
get:
|
||||||
operationId: GetReturnReasons
|
operationId: GetReturnReasons
|
||||||
@@ -5507,6 +5858,14 @@ paths:
|
|||||||
description: Retrieve a list of return reasons. The return reasons can be sorted or paginated.
|
description: Retrieve a list of return reasons. The return reasons can be sorted or paginated.
|
||||||
x-authenticated: false
|
x-authenticated: false
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -5614,6 +5973,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -5664,6 +6031,14 @@ paths:
|
|||||||
description: 'Storefront guide: How to implement shipping during checkout.'
|
description: 'Storefront guide: How to implement shipping during checkout.'
|
||||||
x-authenticated: false
|
x-authenticated: false
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
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.
|
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.
|
||||||
@@ -5779,6 +6154,14 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: |-
|
description: |-
|
||||||
@@ -15284,8 +15667,13 @@ components:
|
|||||||
title: id
|
title: id
|
||||||
description: The price rule's ID.
|
description: The price rule's ID.
|
||||||
value:
|
value:
|
||||||
type: string
|
oneOf:
|
||||||
title: value
|
- type: string
|
||||||
|
title: value
|
||||||
|
description: The price rule's value.
|
||||||
|
- type: number
|
||||||
|
title: value
|
||||||
|
description: The price rule's value.
|
||||||
description: The price rule's value.
|
description: The price rule's value.
|
||||||
operator:
|
operator:
|
||||||
type: string
|
type: string
|
||||||
@@ -15364,18 +15752,8 @@ components:
|
|||||||
description: The shipping option rule's operator.
|
description: The shipping option rule's operator.
|
||||||
example: eq
|
example: eq
|
||||||
value:
|
value:
|
||||||
oneOf:
|
type: string
|
||||||
- type: string
|
title: value
|
||||||
title: value
|
|
||||||
description: The rule's value.
|
|
||||||
example: '"true"'
|
|
||||||
- type: array
|
|
||||||
description: The rule's values.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: value
|
|
||||||
description: A rule's value
|
|
||||||
example: '"true"'
|
|
||||||
shipping_option_id:
|
shipping_option_id:
|
||||||
type: string
|
type: string
|
||||||
title: shipping_option_id
|
title: shipping_option_id
|
||||||
|
|||||||
@@ -4,6 +4,14 @@ post:
|
|||||||
description: Create a cart.
|
description: Create a cart.
|
||||||
x-authenticated: false
|
x-authenticated: false
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -12,6 +12,14 @@ get:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
@@ -70,6 +78,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -14,6 +14,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -17,6 +17,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -15,6 +15,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -21,6 +21,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
@@ -94,6 +102,14 @@ delete:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -11,6 +11,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
@@ -84,6 +92,14 @@ delete:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -17,6 +17,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -11,6 +11,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -10,6 +10,14 @@ get:
|
|||||||
https://docs.medusajs.com/v2/resources/storefront-development/products/collections/list
|
https://docs.medusajs.com/v2/resources/storefront-development/products/collections/list
|
||||||
description: 'Storefront guide: How to retrieve a list of collections.'
|
description: 'Storefront guide: How to retrieve a list of collections.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -16,6 +16,14 @@ get:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -6,6 +6,14 @@ get:
|
|||||||
as `code`. The currencies can also be sorted or paginated.
|
as `code`. The currencies can also be sorted or paginated.
|
||||||
x-authenticated: false
|
x-authenticated: false
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -12,6 +12,14 @@ get:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -11,6 +11,14 @@ post:
|
|||||||
description: 'Storefront guide: How to register a customer.'
|
description: 'Storefront guide: How to register a customer.'
|
||||||
x-authenticated: true
|
x-authenticated: true
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -11,6 +11,14 @@ get:
|
|||||||
https://docs.medusajs.com/v2/resources/storefront-development/customers/retrieve
|
https://docs.medusajs.com/v2/resources/storefront-development/customers/retrieve
|
||||||
description: 'Storefront guide: How to retrieve the logged-in customer.'
|
description: 'Storefront guide: How to retrieve the logged-in customer.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
@@ -68,6 +76,14 @@ post:
|
|||||||
description: 'Storefront guide: How to edit a customer''s profile.'
|
description: 'Storefront guide: How to edit a customer''s profile.'
|
||||||
x-authenticated: true
|
x-authenticated: true
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -12,6 +12,14 @@ get:
|
|||||||
https://docs.medusajs.com/v2/resources/storefront-development/customers/addresses#list-customer-addresses
|
https://docs.medusajs.com/v2/resources/storefront-development/customers/addresses#list-customer-addresses
|
||||||
description: 'Storefront guide: How to retrieve the logged-in customer''s addresses.'
|
description: 'Storefront guide: How to retrieve the logged-in customer''s addresses.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
@@ -156,6 +164,14 @@ post:
|
|||||||
description: 'Storefront guide: How to create an address for the logged-in customer.'
|
description: 'Storefront guide: How to create an address for the logged-in customer.'
|
||||||
x-authenticated: true
|
x-authenticated: true
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
+24
@@ -13,6 +13,14 @@ get:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
@@ -77,6 +85,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
@@ -209,6 +225,14 @@ delete:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -7,6 +7,14 @@ get:
|
|||||||
fields such as `id`. The orders can also be sorted or paginated.
|
fields such as `id`. The orders can also be sorted or paginated.
|
||||||
x-authenticated: true
|
x-authenticated: true
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -12,6 +12,14 @@ get:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -18,6 +18,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -15,6 +15,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -14,6 +14,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -15,6 +15,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -10,6 +10,14 @@ post:
|
|||||||
description: 'Storefront guide: How to implement payment during checkout.'
|
description: 'Storefront guide: How to implement payment during checkout.'
|
||||||
x-authenticated: false
|
x-authenticated: false
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
+8
@@ -19,6 +19,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -10,6 +10,14 @@ get:
|
|||||||
https://docs.medusajs.com/v2/resources/storefront-development/checkout/payment
|
https://docs.medusajs.com/v2/resources/storefront-development/checkout/payment
|
||||||
description: 'Storefront guide: How to implement payment during checkout.'
|
description: 'Storefront guide: How to implement payment during checkout.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -11,6 +11,14 @@ get:
|
|||||||
https://docs.medusajs.com/v2/resources/storefront-development/products/categories/list
|
https://docs.medusajs.com/v2/resources/storefront-development/products/categories/list
|
||||||
description: 'Storefront guide: How to retrieve a list of product categories.'
|
description: 'Storefront guide: How to retrieve a list of product categories.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -16,6 +16,14 @@ get:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -10,6 +10,14 @@ get:
|
|||||||
https://docs.medusajs.com/v2/resources/storefront-development/products/price
|
https://docs.medusajs.com/v2/resources/storefront-development/products/price
|
||||||
description: 'Storefront guide: How to retrieve a product variants'' prices.'
|
description: 'Storefront guide: How to retrieve a product variants'' prices.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -16,6 +16,14 @@ get:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
@@ -89,6 +97,41 @@ get:
|
|||||||
The ID of the customer's cart. If set, the cart's region and shipping
|
The ID of the customer's cart. If set, the cart's region and shipping
|
||||||
address's country code and province are used instead of the
|
address's country code and province are used instead of the
|
||||||
`region_id`, `country_code`, and `province` properties.
|
`region_id`, `country_code`, and `province` properties.
|
||||||
|
- 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.
|
||||||
|
externalDocs:
|
||||||
|
url: '#pagination'
|
||||||
|
- 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.
|
||||||
|
externalDocs:
|
||||||
|
url: '#pagination'
|
||||||
|
- 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 `-`.
|
||||||
|
externalDocs:
|
||||||
|
url: '#pagination'
|
||||||
x-codeSamples:
|
x-codeSamples:
|
||||||
- lang: Shell
|
- lang: Shell
|
||||||
label: cURL
|
label: cURL
|
||||||
|
|||||||
@@ -9,6 +9,14 @@ get:
|
|||||||
url: https://docs.medusajs.com/v2/resources/storefront-development/regions/list
|
url: https://docs.medusajs.com/v2/resources/storefront-development/regions/list
|
||||||
description: 'Storefront guide: How to retrieve a list of regions.'
|
description: 'Storefront guide: How to retrieve a list of regions.'
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -12,6 +12,14 @@ get:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -6,6 +6,14 @@ get:
|
|||||||
paginated.
|
paginated.
|
||||||
x-authenticated: false
|
x-authenticated: false
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -12,6 +12,14 @@ get:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -37,3 +37,12 @@ post:
|
|||||||
'500':
|
'500':
|
||||||
$ref: ../components/responses/500_error.yaml
|
$ref: ../components/responses/500_error.yaml
|
||||||
x-workflow: createAndCompleteReturnOrderWorkflow
|
x-workflow: createAndCompleteReturnOrderWorkflow
|
||||||
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
@@ -13,6 +13,14 @@ get:
|
|||||||
description: 'Storefront guide: How to implement shipping during checkout.'
|
description: 'Storefront guide: How to implement shipping during checkout.'
|
||||||
x-authenticated: false
|
x-authenticated: false
|
||||||
parameters:
|
parameters:
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -10,6 +10,14 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- name: x-publishable-api-key
|
||||||
|
in: header
|
||||||
|
description: Publishable API Key created in the Medusa Admin.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
export function capitalize(str: string): string {
|
export function capitalize(str: string): string {
|
||||||
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase()
|
return str.charAt(0).toUpperCase() + str.slice(1)
|
||||||
}
|
}
|
||||||
+8
@@ -21,6 +21,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -11,6 +11,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
+8
@@ -15,6 +15,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -11,6 +11,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -8,6 +8,14 @@
|
|||||||
* url: https://docs.medusajs.com/v2/resources/storefront-development/products/collections/list
|
* url: https://docs.medusajs.com/v2/resources/storefront-development/products/collections/list
|
||||||
* description: "Storefront guide: How to retrieve a list of collections."
|
* description: "Storefront guide: How to retrieve a list of collections."
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -14,6 +14,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -5,6 +5,14 @@
|
|||||||
* description: Retrieve a list of currencies. The currencies can be filtered by fields such as `code`. The currencies can also be sorted or paginated.
|
* description: Retrieve a list of currencies. The currencies can be filtered by fields such as `code`. The currencies can also be sorted or paginated.
|
||||||
* x-authenticated: false
|
* x-authenticated: false
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -11,6 +11,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -9,6 +9,14 @@
|
|||||||
* url: https://docs.medusajs.com/v2/resources/storefront-development/customers/retrieve
|
* url: https://docs.medusajs.com/v2/resources/storefront-development/customers/retrieve
|
||||||
* description: "Storefront guide: How to retrieve the logged-in customer."
|
* description: "Storefront guide: How to retrieve the logged-in customer."
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -9,6 +9,14 @@
|
|||||||
* url: https://docs.medusajs.com/v2/resources/storefront-development/customers/addresses#list-customer-addresses
|
* url: https://docs.medusajs.com/v2/resources/storefront-development/customers/addresses#list-customer-addresses
|
||||||
* description: "Storefront guide: How to retrieve the logged-in customer's addresses."
|
* description: "Storefront guide: How to retrieve the logged-in customer's addresses."
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
+8
@@ -12,6 +12,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -6,6 +6,14 @@
|
|||||||
* description: Retrieve the orders of the logged-in customer. The orders can be filtered by fields such as `id`. The orders can also be sorted or paginated.
|
* description: Retrieve the orders of the logged-in customer. The orders can be filtered by fields such as `id`. The orders can also be sorted or paginated.
|
||||||
* x-authenticated: true
|
* x-authenticated: true
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -11,6 +11,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -8,6 +8,14 @@
|
|||||||
* url: https://docs.medusajs.com/v2/resources/storefront-development/checkout/payment
|
* url: https://docs.medusajs.com/v2/resources/storefront-development/checkout/payment
|
||||||
* description: "Storefront guide: How to implement payment during checkout."
|
* description: "Storefront guide: How to implement payment during checkout."
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -8,6 +8,14 @@
|
|||||||
* url: https://docs.medusajs.com/v2/resources/storefront-development/products/categories/list
|
* url: https://docs.medusajs.com/v2/resources/storefront-development/products/categories/list
|
||||||
* description: "Storefront guide: How to retrieve a list of product categories."
|
* description: "Storefront guide: How to retrieve a list of product categories."
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -14,6 +14,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -8,6 +8,14 @@
|
|||||||
* url: https://docs.medusajs.com/v2/resources/storefront-development/products/price
|
* url: https://docs.medusajs.com/v2/resources/storefront-development/products/price
|
||||||
* description: "Storefront guide: How to retrieve a product variants' prices."
|
* description: "Storefront guide: How to retrieve a product variants' prices."
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -14,6 +14,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
@@ -61,6 +69,36 @@
|
|||||||
* type: string
|
* type: string
|
||||||
* title: cart_id
|
* title: cart_id
|
||||||
* description: The ID of the customer's cart. If set, the cart's region and shipping address's country code and province are used instead of the `region_id`, `country_code`, and `province` properties.
|
* description: The ID of the customer's cart. If set, the cart's region and shipping address's country code and province are used instead of the `region_id`, `country_code`, and `province` properties.
|
||||||
|
* - 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.
|
||||||
|
* externalDocs:
|
||||||
|
* url: "#pagination"
|
||||||
|
* - 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.
|
||||||
|
* externalDocs:
|
||||||
|
* url: "#pagination"
|
||||||
|
* - 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 `-`.
|
||||||
|
* externalDocs:
|
||||||
|
* url: "#pagination"
|
||||||
* x-codeSamples:
|
* x-codeSamples:
|
||||||
* - lang: Shell
|
* - lang: Shell
|
||||||
* label: cURL
|
* label: cURL
|
||||||
|
|||||||
@@ -8,6 +8,14 @@
|
|||||||
* url: https://docs.medusajs.com/v2/resources/storefront-development/regions/list
|
* url: https://docs.medusajs.com/v2/resources/storefront-development/regions/list
|
||||||
* description: "Storefront guide: How to retrieve a list of regions."
|
* description: "Storefront guide: How to retrieve a list of regions."
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -11,6 +11,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -5,6 +5,14 @@
|
|||||||
* description: Retrieve a list of return reasons. The return reasons can be sorted or paginated.
|
* description: Retrieve a list of return reasons. The return reasons can be sorted or paginated.
|
||||||
* x-authenticated: false
|
* x-authenticated: false
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -11,6 +11,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -11,6 +11,14 @@
|
|||||||
* description: "Storefront guide: How to implement shipping during checkout."
|
* description: "Storefront guide: How to implement shipping during checkout."
|
||||||
* x-authenticated: false
|
* x-authenticated: false
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -5,6 +5,14 @@
|
|||||||
* description: Create a cart.
|
* description: Create a cart.
|
||||||
* x-authenticated: false
|
* x-authenticated: false
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -11,6 +11,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -14,6 +14,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -15,6 +15,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* in: query
|
||||||
* description: |-
|
* description: |-
|
||||||
|
|||||||
@@ -15,6 +15,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
+8
@@ -21,6 +21,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -12,6 +12,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
+8
@@ -15,6 +15,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -12,6 +12,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -8,6 +8,14 @@
|
|||||||
* description: "Storefront guide: How to register a customer."
|
* description: "Storefront guide: How to register a customer."
|
||||||
* x-authenticated: true
|
* x-authenticated: true
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -8,6 +8,14 @@
|
|||||||
* description: "Storefront guide: How to edit a customer's profile."
|
* description: "Storefront guide: How to edit a customer's profile."
|
||||||
* x-authenticated: true
|
* x-authenticated: true
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -9,6 +9,14 @@
|
|||||||
* description: "Storefront guide: How to create an address for the logged-in customer."
|
* description: "Storefront guide: How to create an address for the logged-in customer."
|
||||||
* x-authenticated: true
|
* x-authenticated: true
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
+8
@@ -15,6 +15,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
+8
@@ -14,6 +14,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* in: query
|
||||||
* description: |-
|
* description: |-
|
||||||
|
|||||||
+8
@@ -12,6 +12,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* in: query
|
||||||
* description: |-
|
* description: |-
|
||||||
|
|||||||
+8
@@ -12,6 +12,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* in: query
|
||||||
* description: |-
|
* description: |-
|
||||||
|
|||||||
+8
@@ -13,6 +13,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* in: query
|
||||||
* description: |-
|
* description: |-
|
||||||
|
|||||||
@@ -8,6 +8,14 @@
|
|||||||
* description: "Storefront guide: How to implement payment during checkout."
|
* description: "Storefront guide: How to implement payment during checkout."
|
||||||
* x-authenticated: false
|
* x-authenticated: false
|
||||||
* parameters:
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
+8
@@ -16,6 +16,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* 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
|
* 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
|
||||||
|
|||||||
@@ -55,6 +55,15 @@
|
|||||||
* "500":
|
* "500":
|
||||||
* $ref: "#/components/responses/500_error"
|
* $ref: "#/components/responses/500_error"
|
||||||
* x-workflow: createAndCompleteReturnOrderWorkflow
|
* x-workflow: createAndCompleteReturnOrderWorkflow
|
||||||
|
* parameters:
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
+8
@@ -11,6 +11,14 @@
|
|||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
* - name: x-publishable-api-key
|
||||||
|
* in: header
|
||||||
|
* description: Publishable API Key created in the Medusa Admin.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/api/store#publishable-api-key
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* in: query
|
||||||
* description: |-
|
* description: |-
|
||||||
|
|||||||
@@ -19,8 +19,13 @@
|
|||||||
* title: id
|
* title: id
|
||||||
* description: The price rule's ID.
|
* description: The price rule's ID.
|
||||||
* value:
|
* value:
|
||||||
* type: string
|
* oneOf:
|
||||||
* title: value
|
* - type: string
|
||||||
|
* title: value
|
||||||
|
* description: The price rule's value.
|
||||||
|
* - type: number
|
||||||
|
* title: value
|
||||||
|
* description: The price rule's value.
|
||||||
* description: The price rule's value.
|
* description: The price rule's value.
|
||||||
* operator:
|
* operator:
|
||||||
* type: string
|
* type: string
|
||||||
|
|||||||
@@ -28,18 +28,8 @@
|
|||||||
* description: The shipping option rule's operator.
|
* description: The shipping option rule's operator.
|
||||||
* example: eq
|
* example: eq
|
||||||
* value:
|
* value:
|
||||||
* oneOf:
|
* type: string
|
||||||
* - type: string
|
* title: value
|
||||||
* title: value
|
|
||||||
* description: The rule's value.
|
|
||||||
* example: '"true"'
|
|
||||||
* - type: array
|
|
||||||
* description: The rule's values.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: value
|
|
||||||
* description: A rule's value
|
|
||||||
* example: '"true"'
|
|
||||||
* shipping_option_id:
|
* shipping_option_id:
|
||||||
* type: string
|
* type: string
|
||||||
* title: shipping_option_id
|
* title: shipping_option_id
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ type SchemaDescriptionOptions = {
|
|||||||
|
|
||||||
export type OasArea = "admin" | "store"
|
export type OasArea = "admin" | "store"
|
||||||
|
|
||||||
type ParameterType = "query" | "path"
|
type ParameterType = "query" | "path" | "header"
|
||||||
|
|
||||||
type AuthRequests = {
|
type AuthRequests = {
|
||||||
exact?: string
|
exact?: string
|
||||||
@@ -281,6 +281,10 @@ class OasKindGenerator extends FunctionKindGenerator {
|
|||||||
security: [],
|
security: [],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get header params
|
||||||
|
const headerParams = this.getHeaderParameters(oasPath)
|
||||||
|
oas.parameters?.push(...headerParams)
|
||||||
|
|
||||||
// retreive query and request parameters
|
// retreive query and request parameters
|
||||||
const { queryParameters, requestSchema } = this.getRequestParameters({
|
const { queryParameters, requestSchema } = this.getRequestParameters({
|
||||||
node,
|
node,
|
||||||
@@ -471,6 +475,11 @@ class OasKindGenerator extends FunctionKindGenerator {
|
|||||||
|
|
||||||
// update path parameters
|
// update path parameters
|
||||||
const newPathParameters = this.getPathParameters({ oasPath, tagName })
|
const newPathParameters = this.getPathParameters({ oasPath, tagName })
|
||||||
|
|
||||||
|
// get header params
|
||||||
|
const headerParams = this.getHeaderParameters(oasPath)
|
||||||
|
newPathParameters.push(...headerParams)
|
||||||
|
|
||||||
oas.parameters = this.updateParameters({
|
oas.parameters = this.updateParameters({
|
||||||
oldParameters: oas.parameters as OpenAPIV3.ParameterObject[],
|
oldParameters: oas.parameters as OpenAPIV3.ParameterObject[],
|
||||||
newParameters: newPathParameters,
|
newParameters: newPathParameters,
|
||||||
@@ -902,7 +911,7 @@ class OasKindGenerator extends FunctionKindGenerator {
|
|||||||
/**
|
/**
|
||||||
* The parameter type.
|
* The parameter type.
|
||||||
*/
|
*/
|
||||||
type: "path" | "query"
|
type: ParameterType
|
||||||
/**
|
/**
|
||||||
* The name of the parameter.
|
* The name of the parameter.
|
||||||
*/
|
*/
|
||||||
@@ -1184,6 +1193,33 @@ class OasKindGenerator extends FunctionKindGenerator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve the header parameters of the OAS route.
|
||||||
|
*
|
||||||
|
* @param oasPath - The OAS path.
|
||||||
|
* @returns The header parameters of the route.
|
||||||
|
*/
|
||||||
|
getHeaderParameters(oasPath: string): OpenAPIV3.ParameterObject[] {
|
||||||
|
if (!oasPath.startsWith("store")) {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
|
||||||
|
return [
|
||||||
|
this.getParameterObject({
|
||||||
|
type: "header",
|
||||||
|
name: "x-publishable-api-key",
|
||||||
|
description: "Publishable API Key created in the Medusa Admin.",
|
||||||
|
required: true,
|
||||||
|
schema: {
|
||||||
|
type: "string",
|
||||||
|
externalDocs: {
|
||||||
|
url: "https://docs.medusajs.com/api/store#publishable-api-key",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the response's status.
|
* Retrieve the response's status.
|
||||||
*
|
*
|
||||||
@@ -1895,9 +1931,13 @@ class OasKindGenerator extends FunctionKindGenerator {
|
|||||||
if (!oldParameters) {
|
if (!oldParameters) {
|
||||||
return newParameters || []
|
return newParameters || []
|
||||||
}
|
}
|
||||||
const oppositeParamType = type === "query" ? "path" : "query"
|
const oppositeParamType = ["path", "query", "header"].filter(
|
||||||
|
(item) => item !== type
|
||||||
|
) as ParameterType[]
|
||||||
const oppositeParams: OpenAPIV3.ParameterObject[] =
|
const oppositeParams: OpenAPIV3.ParameterObject[] =
|
||||||
oldParameters?.filter((param) => param.in === oppositeParamType) || []
|
oldParameters?.filter((param) =>
|
||||||
|
oppositeParamType.includes(param.in as ParameterType)
|
||||||
|
) || []
|
||||||
// check and update/add parameters if necessary
|
// check and update/add parameters if necessary
|
||||||
const existingParams: OpenAPIV3.ParameterObject[] =
|
const existingParams: OpenAPIV3.ParameterObject[] =
|
||||||
oldParameters?.filter((param) => param.in === type) || []
|
oldParameters?.filter((param) => param.in === type) || []
|
||||||
@@ -1979,7 +2019,9 @@ class OasKindGenerator extends FunctionKindGenerator {
|
|||||||
...oppositeParams,
|
...oppositeParams,
|
||||||
...(existingParams?.filter(
|
...(existingParams?.filter(
|
||||||
(parameter) =>
|
(parameter) =>
|
||||||
(parameter as OpenAPIV3.ParameterObject).in === oppositeParamType ||
|
oppositeParamType.includes(
|
||||||
|
(parameter as OpenAPIV3.ParameterObject).in as ParameterType
|
||||||
|
) ||
|
||||||
!paramsToRemove.has((parameter as OpenAPIV3.ParameterObject).name)
|
!paramsToRemove.has((parameter as OpenAPIV3.ParameterObject).name)
|
||||||
) || []),
|
) || []),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in new issue
Block a user