For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
    • Overview
  • Learning Plans
    • Developer Foundations
    • Composable Developer
    • Stencil Developer
    • B2B Developer
  • Courses
        • Orders - Hands-on Lab
        • Order Status and Order Taxes - Hands-on Lab
        • Order Shipping Address - Hands-on Lab
        • Order Products - Hands-on Lab
        • Order Shipments - Hands-on Lab
        • Order Transactions API - Hands-on Lab
      • Conclusion
    • Learning Changelog
Dev Portal
LogoLogo
On this page
  • Orders API Lab
  • In this lab, you will:
  • Prerequisites
  • Create a New Order Shipment
  • GET a List of Order Shipments
  • Update a Shipment
  • Get a Count of Shipments
CoursesCheckout and Orders APIModule 7: Order Labs

Order Shipments - Hands-on Lab

Was this page helpful?
Previous

Order Products - Hands-on Lab

Next

Order Transactions API - Hands-on Lab

Built with
Lesson 24 of 26 · 30 min

Orders API Lab

In this lab, you will:

  • Create a new order shipment
  • GET a list of order shipments
  • Update a shipment
  • GET a count of shipments

Prerequisites

  • BigCommerce store (sandbox or live)
  • Basic knowledge of APIs
  • REST client (Postman)

Create a New Order Shipment

  1. Copy and paste the request below into Postman
https://api.bigcommerce.com/stores/{{store_hash}}/v2/orders/{order_id}/shipments
  1. Copy and paste the code below into the Body section of Postman
{
"tracking_number": "EJ958083578UK",
"comments": "Janes Order",
"order_address_id": "128",
"shipping_provider": "",
"items": [
{
"order_product_id": 194,
"quantity": 1
},
{
"order_product_id": 195,
"quantity": 1
}
]
}
  1. Select POST next to the request url
  2. Click the Send button
  3. Observe response

GET a List of Order Shipments

  1. Copy and paste the request below into Postman
https://api.bigcommerce.com/stores/{{store_hash}}/v2/orders/{order_id}/shipments
  1. Select GET next to the request url
  2. Click the Send button
  3. Observe response

Update a Shipment

  1. Copy and paste the request below into Postman
https://api.bigcommerce.com/stores/{{store_hash}}/v2/orders/{order_id}/shipments/{shipment_id}
  1. Copy and paste the code below into the Body section of Postman
{
"tracking_number": "EJ958083578US"
}
  1. Select PUT next to the request url
  2. Click the Send button
  3. Observe response

Get a Count of Shipments

  1. Copy and paste the request below into Postman
https://api.bigcommerce.com/stores/{{store_hash}}/v2/orders/{order_id}/shipments/count
  1. Replace {order_id} with the ID of an order
  2. Select GET next to the request url
  3. Click the Send button
  4. Observe response