-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): Updated API Reference (automated) (#10258)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Oli Juhl <[email protected]> Co-authored-by: Shahed Nasser <[email protected]>
- Loading branch information
1 parent
3ab056e
commit 7865909
Showing
73 changed files
with
2,939 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
www/apps/api-reference/specs/admin/code_samples/Shell/admin_orders_{id}/post.sh
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
www/apps/api-reference/specs/admin/code_samples/Shell/admin_orders_{id}_transfer/post.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
curl -X POST '{backend_url}/admin/orders/{id}/transfer' \ | ||
-H 'Authorization: Bearer {access_token}' \ | ||
-H 'Content-Type: application/json' \ | ||
--data-raw '{ | ||
"customer_id": "cus_123" | ||
}' |
2 changes: 2 additions & 0 deletions
2
...ps/api-reference/specs/admin/code_samples/Shell/admin_orders_{id}_transfer_cancel/post.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
curl -X POST '{backend_url}/admin/orders/{id}/transfer/cancel' \ | ||
-H 'Authorization: Bearer {access_token}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
159 changes: 159 additions & 0 deletions
159
www/apps/api-reference/specs/admin/components/schemas/AdminBatchUpdateProduct.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
type: object | ||
description: The product's details. | ||
x-schemaName: AdminBatchUpdateProduct | ||
properties: | ||
title: | ||
type: string | ||
title: title | ||
description: The product's title. | ||
subtitle: | ||
type: string | ||
title: subtitle | ||
description: The product's subtitle. | ||
description: | ||
type: string | ||
title: description | ||
description: The product's description. | ||
is_giftcard: | ||
type: boolean | ||
title: is_giftcard | ||
description: Whether the product is a gift card. | ||
discountable: | ||
type: boolean | ||
title: discountable | ||
description: Whether discounts can be applied on the product. | ||
images: | ||
type: array | ||
description: The product's images. | ||
items: | ||
type: object | ||
description: The image's details. | ||
required: | ||
- url | ||
properties: | ||
url: | ||
type: string | ||
title: url | ||
description: The image's URL. | ||
thumbnail: | ||
type: string | ||
title: thumbnail | ||
description: The product's thumbnail URL. | ||
handle: | ||
type: string | ||
title: handle | ||
description: The product's unique handle. | ||
status: | ||
type: string | ||
description: The product's status. | ||
enum: | ||
- draft | ||
- proposed | ||
- published | ||
- rejected | ||
type_id: | ||
type: string | ||
title: type_id | ||
description: The ID of the product's type. | ||
collection_id: | ||
type: string | ||
title: collection_id | ||
description: The ID of the product's collection. | ||
categories: | ||
type: array | ||
description: The product's categories. | ||
items: | ||
type: object | ||
description: The product's category. | ||
required: | ||
- id | ||
properties: | ||
id: | ||
type: string | ||
title: id | ||
description: The category's ID. | ||
tags: | ||
type: array | ||
description: The product's tags. | ||
items: | ||
type: object | ||
description: The product's tag. | ||
required: | ||
- id | ||
properties: | ||
id: | ||
type: string | ||
title: id | ||
description: The tag's ID. | ||
options: | ||
type: array | ||
description: The product's options. | ||
items: | ||
$ref: ./AdminUpdateProductOption.yaml | ||
variants: | ||
type: array | ||
description: >- | ||
The product's variants. You can add new variants or update existing ones, | ||
passing their IDs in the object. | ||
items: | ||
oneOf: | ||
- $ref: ./AdminCreateProductVariant.yaml | ||
- $ref: ./AdminUpdateProductVariant.yaml | ||
sales_channels: | ||
type: array | ||
description: The sales channels that the product is available in. | ||
items: | ||
type: object | ||
description: The sales channel's details. | ||
required: | ||
- id | ||
properties: | ||
id: | ||
type: string | ||
title: id | ||
description: The sales channel's ID. | ||
weight: | ||
type: number | ||
title: weight | ||
description: The product's weight. | ||
length: | ||
type: number | ||
title: length | ||
description: The product's length. | ||
height: | ||
type: number | ||
title: height | ||
description: The product's height. | ||
width: | ||
type: number | ||
title: width | ||
description: The product's width. | ||
hs_code: | ||
type: string | ||
title: hs_code | ||
description: The product's HS code. | ||
mid_code: | ||
type: string | ||
title: mid_code | ||
description: The product's MID code. | ||
origin_country: | ||
type: string | ||
title: origin_country | ||
description: The product's origin country. | ||
material: | ||
type: string | ||
title: material | ||
description: The product's material. | ||
metadata: | ||
type: object | ||
description: The product's metadata, can hold custom key-value pairs. | ||
external_id: | ||
type: string | ||
title: external_id | ||
description: The ID of the product in an external or third-party system. | ||
id: | ||
type: string | ||
title: id | ||
description: The product's ID. | ||
required: | ||
- id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
www/apps/api-reference/specs/admin/components/schemas/AdminTransferOrder.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
type: object | ||
description: The details of the request to transfer the order. | ||
x-schemaName: AdminTransferOrder | ||
required: | ||
- customer_id | ||
properties: | ||
customer_id: | ||
type: string | ||
title: customer_id | ||
description: The ID of the customer to transfer the order to. | ||
description: | ||
type: string | ||
title: description | ||
description: >- | ||
The description of the order transfer, which can be shown to the customer | ||
receiving the order transfer request. | ||
internal_note: | ||
type: string | ||
title: internal_note | ||
description: An internal note viewable only by admin users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.