Skip to content

Commit 5422ff2

Browse files
committed
docs(orders: DEVDOCS-6459 imrpove dev docs for sideloading order consignments
1 parent ec61997 commit 5422ff2

File tree

1 file changed

+35
-16
lines changed

1 file changed

+35
-16
lines changed

reference/orders.v2.oas2.yml

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,8 +1446,8 @@ components:
14461446
name: include
14471447
in: query
14481448
description: |-
1449-
* `consignments` - include the response returned from the request to the `/orders/{order_id}/consignments` endpoint. You should also specify `consignment_structure=object` as a request parameter when including consignments. The default array structure provided is legacy and may not be supported in the future.
1450-
* `consignments.line_items` - include the response returned from the request to the `/orders/{order_id}/products` endpoint in consignments. This implies `include=consignments`. You should also specify `consignment_structure=object` as a request parameter when including consignments. The default array structure provided is legacy and will be removed in the future.
1449+
* `consignments` - include the response returned from the request to the `/orders/{order_id}/consignments` endpoint. Current default array structure is legacy and will be deprecated from **1 Feb 2026**. Specify `consignment_structure=object` as a request parameter when including consignments.
1450+
* `consignments.line_items` - include the response returned from the request to the `/orders/{order_id}/products` endpoint in consignments. This will also includes the resources associated with `include=consignments`. Current default array structure is legacy and will be deprecated from **1 Feb 2026**. Specify `consignment_structure=object` as a request parameter when including consignments.
14511451
* `fees` - include the response returned from the request to the `/orders/{order_id}/fees` endpoint.
14521452
style: form
14531453
explode: false
@@ -1966,7 +1966,7 @@ components:
19661966
staff_notes: BIN-45
19671967
customer_message: Custom Journal Added
19681968
discount_amount: '0'
1969-
coupon_discount": 0
1969+
coupon_discount: 0
19701970
shipping_address_count: 1
19711971
ebay_order_id: '0'
19721972
cart_id: 8b84f622-faf1-4c10-887b-f5dff2f9eaf4
@@ -2981,6 +2981,7 @@ components:
29812981
type: object
29822982
description: ''
29832983
x-internal: false
2984+
additionalProperties: false
29842985
properties:
29852986
id:
29862987
description: Numeric ID of this product within this order.
@@ -4407,7 +4408,9 @@ components:
44074408
Allowed values: `www` (Desktop) | `iphone` (Iphone) | `ipad` (Ipad) | `android` (Android) | `mobile` (Mobile) | `manual` (manual order) | `external` (Orders API) | `checkout_api` (Checkout API) | `buybutton` (Buy Button) | `amazon` (Amazon) | `ebay` (Ebay) | `facebookshop` (Facebook Shop) | `facebookcheckout` (Facebook Checkout) | `facebookmarketplace` (Facebook Marketplace) | `pinterest` (Pinterest) | `socialshop` (Social Shop)
44084409
type: string
44094410
consignments:
4410-
$ref: '#/components/schemas/orderConsignments_Resource'
4411+
oneOf:
4412+
- $ref: '#/components/schemas/orderConsignments_Resource'
4413+
- $ref: '#/components/schemas/orderConsignment_Get'
44114414
products:
44124415
$ref: '#/components/schemas/products_Resource'
44134416
shipping_addresses:
@@ -5388,9 +5391,13 @@ components:
53885391
53895392
description: The recipient email of the gift certificate.
53905393
line_items:
5391-
type: array
5392-
items:
5393-
$ref: '#/components/schemas/products_Resource'
5394+
oneOf:
5395+
- type: array
5396+
items:
5397+
$ref: '#/components/schemas/products_Resource'
5398+
- type: array
5399+
items:
5400+
$ref: '#/components/schemas/orderProducts'
53945401
pickupConsignment_Get:
53955402
allOf:
53965403
- type: object
@@ -5409,9 +5416,13 @@ components:
54095416
location:
54105417
$ref: '#/components/schemas/pickupConsignmentLocation_Get'
54115418
line_items:
5412-
type: array
5413-
items:
5414-
$ref: '#/components/schemas/products_Resource'
5419+
oneOf:
5420+
- type: array
5421+
items:
5422+
$ref: '#/components/schemas/products_Resource'
5423+
- type: array
5424+
items:
5425+
$ref: '#/components/schemas/orderProducts'
54155426
x-examples:
54165427
example-1:
54175428
id: 99
@@ -5470,9 +5481,13 @@ components:
54705481
- type: object
54715482
properties:
54725483
line_items:
5473-
type: array
5474-
items:
5475-
$ref: '#/components/schemas/products_Resource'
5484+
oneOf:
5485+
- type: array
5486+
items:
5487+
$ref: '#/components/schemas/products_Resource'
5488+
- type: array
5489+
items:
5490+
$ref: '#/components/schemas/orderProducts'
54765491
items_total:
54775492
type: number
54785493
example: 1
@@ -5645,9 +5660,13 @@ components:
56455660
56465661
description: The recipient email of the digital consignment.
56475662
line_items:
5648-
type: array
5649-
items:
5650-
$ref: '#/components/schemas/products_Resource'
5663+
oneOf:
5664+
- type: array
5665+
items:
5666+
$ref: '#/components/schemas/products_Resource'
5667+
- type: array
5668+
items:
5669+
$ref: '#/components/schemas/orderProducts'
56515670
x-examples:
56525671
example-1:
56535672
recipient_email: [email protected]

0 commit comments

Comments
 (0)