Order Shipping Address - Hands-on Lab
Lesson 22 of 26 · 30 min
In this lab, you will:
- Create an order with multiple shipping addresses
- Update a shipping address
- GET a Shipping Address
- GET All Shipping Quotes
Prerequisites
- BigCommerce store (sandbox or live)
- Basic knowledge of APIs
- REST client (Postman)
Create an Order with Multiple Shipping Addresses
- Copy and paste the request below into Postman:
- Copy and paste the code below into the Body section of Postman
- Replace
{product_id}with the ID of a product in the store - Select POST next to the request url
- Click the Send button
- Observe response
GET a Shipping Address
- Copy and paste the request below into Postman
- Replace {order_id} with the ID of an order
- Select GET next to the request url
- Click the Send button
- Observe response and note shipping address ID
Update an Existing Shipping Address
- Copy and paste the request below into Postman
- Replace
{order_id}with the ID of the order created in the previous steps - Copy and paste the code below into the Body section of Postman
- Select PUT next to the request url
- Click the Send button
- Observe response and address updated
GET All Shipping Quotes
- Copy and paste the request below into Postman
- Replace
{order_id}with the ID of an order - Replace
{shipping_address_id}with the ID of the orders shipping address - Select GET next to the request url
- Click the Send button
- Observe response