Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
DEVDOCS-5140: [update] add consignment examples (#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-traciporter authored Nov 6, 2023
1 parent ece6d5e commit ce5b699
Showing 1 changed file with 30 additions and 9 deletions.
39 changes: 30 additions & 9 deletions reference/checkouts.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,6 @@ paths:
AllowDynamicQueryParameters: false
AllowDynamicFormParameters: false
IsMultiContentStreaming: false
x-codegen-request-body-name: body
'/checkouts/{checkoutId}/discounts':
post:
tags:
Expand Down Expand Up @@ -2383,7 +2382,6 @@ paths:
- homepage
- cartpage
text: Some text
x-codegen-request-body-name: body
'/checkouts/{checkoutId}/billing-address':
post:
tags:
Expand Down Expand Up @@ -3154,7 +3152,6 @@ paths:
AllowDynamicQueryParameters: false
AllowDynamicFormParameters: false
IsMultiContentStreaming: false
x-codegen-request-body-name: body
'/checkouts/{checkoutId}/billing-address/{addressId}':
put:
tags:
Expand Down Expand Up @@ -3925,7 +3922,6 @@ paths:
AllowDynamicQueryParameters: false
AllowDynamicFormParameters: false
IsMultiContentStreaming: false
x-codegen-request-body-name: body
'/checkouts/{checkoutId}/consignments':
post:
tags:
Expand Down Expand Up @@ -3967,8 +3963,36 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateConsignmentRequest'
required: true
$ref: '#/components/schemas/CreateConsignmentRequest'
examples:
Shipping Consignment:
value:
- address:
first_name: "Jane"
last_name: "Doe"
email: "[email protected]"
company: "BigCommerce"
address1: "100 Main Street"
address2: "string"
city: "Austin"
state_or_province: "Texas"
state_or_province_code: "string"
country_code: "US"
postal_code: "78701"
phone: "555-555-5555"
custom_fields:
- field_id: "string"
field_value: "string"
line_items:
item_id: "118f8774-387c-485e-a095-6ef76d5f1bbd"
quantity: 1
Pickup Consignment:
value:
- line_items:
- item_id: "118f8774-387c-485e-a095-6ef76d5f1bbd"
quantity: 1
pickup_option:
pickup_method_id: 1
responses:
'200':
description: ''
Expand Down Expand Up @@ -4717,7 +4741,6 @@ paths:
AllowDynamicQueryParameters: false
AllowDynamicFormParameters: false
IsMultiContentStreaming: false
x-codegen-request-body-name: body
'/checkouts/{checkoutId}/consignments/{consignmentId}':
parameters:

Expand Down Expand Up @@ -5509,7 +5532,6 @@ paths:
- homepage
- cartpage
text: Some text
x-codegen-request-body-name: body
delete:
tags:
- Checkout Consignments
Expand Down Expand Up @@ -7033,7 +7055,6 @@ paths:
AllowDynamicQueryParameters: false
AllowDynamicFormParameters: false
IsMultiContentStreaming: false
x-codegen-request-body-name: body
'/checkouts/{checkoutId}/coupons/{couponCode}':
delete:
tags:
Expand Down

0 comments on commit ce5b699

Please sign in to comment.