OrderShipments
Returns shipments and their corresponding orders.
Table Specific Information
Select
The connector uses the BigCommerce API to process WHERE clause conditions built with the following columns and operators:
- Id supports the = comparison.
- OrderId supports the = comparison.
The rest of the filter is executed client-side within the connector.
For example, the following queries are processed server-side:
SELECT * FROM OrderShipments WHERE Id = 1
SELECT * FROM OrderShipments WHERE OrderId = 1428
Insert
To insert a order shipment, at least one shipment item must be attached to the INSERT query. First, populate a temporary ShipmentItems table with the items you want to include in the shipment. Then, use this table as the value for the LinkedProducts pseudo-column during insertion:
INSERT INTO ShipmentItems#TEMP (Id, Quantity) VALUES (2519, 1);
INSERT INTO OrderShipments (OrderId, OrderAddressId, LinkedProducts) VALUES (1106, 1007, ShipmentItems#TEMP);
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
Numeric ID of this shipment within this order. | |
| OrderId [KEY] | Integer | False |
Orders.Id |
Numeric ID of the associated order. |
| DateCreated | Datetime | True |
Creation date for the shipment. | |
| TrackingNumber | String | False |
Tracking number of the shipment. | |
| TrackingCarrier | String | False |
Tracking carrier for the shipment. | |
| TrackingLink | String | True |
Returns a tracking link from the shipping service. | |
| ShippingProvider | String | False |
Enum of the BigCommerce shipping-carrier integration/module. | |
| ShippingMethod | String | False |
Enum of the BigCommerce shipping-carrier integration/module. | |
| Comments | String | False |
Comments the shipper wishes to add. | |
| OrderAddressId | Integer | False |
ID of this shipping address. | |
| CustomerId | String | False |
ID of this order’s customer. | |
| ShippingProviderDisplayName | String | True |
The human-readable name for the shipping_provider. | |
| MerchantShippingCost | Decimal | True |
The shipping merchant cost. | |
| BillingAddressCity | String | True |
The billing address city. | |
| BillingAddressCompany | String | True |
The billing address company. | |
| BillingAddressCountry | String | True |
The billing address country | |
| BillingAddressCountryIso2 | String | True |
The billing address country iso2. | |
| BillingAddressEmail | String | True |
The email of the Addressee. | |
| BillingAddressFirstName | String | True |
Addressee's First Name. | |
| BillingAddressLastName | String | True |
Addressee's Last Name. | |
| BillingAddressPhone | String | True |
Addressee's Phone. | |
| BillingAddressState | String | True |
Addressee's State. | |
| BillingAddressStreet1 | String | True |
Street address (first line). | |
| BillingAddressStreet2 | String | True |
Street address (second line). | |
| BillingAddressZip | String | True |
ZIP or postal code. |
Pseudo-Columns
Pseudo column fields are used to enable the user to INSERT Fields that are non-readable but required during creation of new records.
| Name | Type | Description |
| LinkedProducts | String |
Column for the aggregate table name holding order products. |