CData Cloud offers access to ShipStation across several standard services and protocols, in a cloud-hosted solution. Any application that can connect to a MySQL or SQL Server database can connect to ShipStation through CData Cloud.
CData Cloud allows you to standardize and configure connections to ShipStation as though it were any other OData endpoint, or standard SQL Server/MySQL database.
This page provides a guide to Establishing a Connection to ShipStation in CData Cloud, as well as information on the available resources, and a reference to the available connection properties.
Establishing a Connection shows how to authenticate to ShipStation and configure any necessary connection properties to create a database in CData Cloud
Accessing data from ShipStation through the available standard services and CData Cloud administration is documented in further details in the CData Cloud Documentation.
Connect to ShipStation by selecting the corresponding icon in the Database tab. Required properties are listed under Settings. The Advanced tab lists connection properties that are not typically required.
Use the BASIC Authentication standard to connect to ShipStation.
By default, the Cloud attempts to negotiate SSL/TLS by checking the server's certificate against the system's trusted certificate store.
To specify another certificate, see the SSLServerCert property for the available formats to do so.
To connect through the Windows system proxy, you do not need to set any additional connection properties. To connect to other proxies, set ProxyAutoDetect to false.
In addition, to authenticate to an HTTP proxy, set ProxyAuthScheme, ProxyUser, and ProxyPassword, in addition to ProxyServer and ProxyPort.
Set the following properties:
This section shows the available API objects and provides more information on executing SQL to ShipStation APIs.
Views describes the available views. Views are statically defined to model Customers, Products, Orders, and more.
Stored Procedures are function-like interfaces to ShipStation. Stored procedures allow you to execute operations to ShipStation, including creating labels for orders and assigning users to orders.
Views are similar to tables in the way that data is represented; however, views are read-only.
Queries can be executed against a view as if it were a normal table.
Name | Description |
CarrierPackages | Retrieves the list of packages for the specified carrier. |
Carriers | Lists all shipping providers connected to this account. |
CarrierServices | Lists all the available shipping services. |
Customers | Lists customers. |
CustomerTags | Lists customer tags. |
Fulfillments | List all the fulfillments. |
Marketplaces | Lists marketplaces. |
MarketplaceUsernames | List all the marketplace usernames of the customers. |
OrderCustomsItems | Customs Items of the Orders. |
OrderItems | Items of the orders. |
Orders | Lists all orders. |
Products | Lists all the products. |
ProductTags | Lists product tags. |
ShipmentItems | Lists shipment items. |
Shipments | Retrieves the list of shipments. |
StoreRefreshStatus | Lists status of the store refresh. |
Stores | Lists all stores. |
Tags | Lists all the tags defined for this account. |
Users | Lists ShipStation users. |
Warehouses | Lists warehouses. |
Retrieves the list of packages for the specified carrier.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM CarrierPackages WHERE CarrierCode = 'hermes'
Name | Type | References | Description |
CarrierCode [KEY] | String |
Carriers.CarrierCode | The carrier's code. |
Code | String | Unique code for the carrier Carrier Packages. | |
Name | String | Name of the package. | |
Domestic | Boolean | True or false for domestic. | |
International | Boolean | True or false for International. |
Lists all shipping providers connected to this account.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM Carriers WHERE CarrierCode = 'hermes'
Name | Type | References | Description |
Id [KEY] | Integer | Shipment provider Id unique for the carriers. | |
CarrierCode | String | Unique code of the carrier. | |
AccountNumber | String | Carrier Account Number. | |
Balance | Double | Account balance of the carrier. | |
Name | String | Carrier name. | |
Nickname | String | Nick Name of the carrier. | |
Primary | Boolean | True or false for making carrier as primary. | |
RequiresFundedAccount | Boolean | True or false for requires Funded Account. |
Lists all the available shipping services.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM CarrierServices WHERE CarrierCode = 'hermes'
Name | Type | References | Description |
CarrierCode [KEY] | String |
Carriers.CarrierCode | Code of the carrier. |
Code | String | Unique carrier service code. | |
Name | String | Name of the carrier service. | |
Domestic | Boolean | True or False for domestic. | |
International | Boolean | True or False for International. |
Lists customers.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM Customers WHERE CountryCode = 'US'
Name | Type | References | Description |
Id [KEY] | Long | Unique customer Id. | |
AddressVerified | String | Address verified or not for the customer. | |
City | String | City of the customer. | |
Company | String | Company of the customer. | |
CountryCode | String | Country code of the customer. | |
CreateDate | Datetime | Customer create date. | |
String | Email id of the customer. | ||
ModifyDate | Datetime | Date of the Modified details of customer. | |
Name | String | Name of the customer. | |
Phone | String | Contact number of the customer. | |
PostalCode | String | Postal code of the customer. | |
State | String | Customer residence date. | |
Street1 | String | Customer street1. | |
Street2 | String | Customer street2. | |
StateCode | String | Customers that reside in the specified stateCode. | |
MarketplaceId | Long | Customers that purchased items from the specified marketplaceId. | |
TagId | String |
CustomerTags.Id | Customers that have been tagged with the specified tagId. |
Lists customer tags.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM CustomerTags WHERE CustomerId = 1368175
Name | Type | References | Description |
CustomerId | Long |
Customers.Id | Id of the customer. |
Id | Integer |
Tags.Id | TagId of the customer. |
Name | String | Name of the tag. |
List all the fulfillments.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM Fulfillments WHERE Id = 122224
Name | Type | References | Description |
Id [KEY] | Integer | Fulfillment Id of the order. | |
CarrierCode | String | Carrier Code for the order. | |
CreateDate | Datetime | Fulfillment create Date date. | |
CustomerEmail | String | Email Id of the customer. | |
DeliveryDate | Date | Delivery date of the product. | |
FulfillmentFee | Integer | Fulfillment date of the product. | |
FulfillmentProviderCod | String | Provider code of the fulfillment. | |
FulfillmentServiceCode | String | Service code of the fulfillment. | |
MarketplaceNotified | Boolean | Marketplace is notified or not. | |
NotifyErrorMessage | String | Error message of the notification. | |
OrderId | Integer |
Orders.Id | Order Id of the product. |
OrderNumber | String | Order number of the product. | |
ShipDate | Datetime | Shipping date of the product. | |
ShipToAddressVerified | String | Shipping address verification status. | |
ShipToCity | String | Shipping to city. | |
ShipToCompany | String | Shipping to company. | |
ShipToCountry | String | Shipping to country. | |
ShipToName | String | Shipping to name. | |
ShipToPhone | String | Shipping to phone number. | |
ShipToPostalCode | String | Shipping to postal code. | |
ShipToResidential | Boolean | Shipping to residential. | |
ShipToState | String | Shipping to State. | |
ShipToStreet1 | String | Shipping to street1. | |
ShipToStreet2 | String | Shipping to street2. | |
ShipToStreet3 | String | Shipping to street3. | |
TrackingNumber | String | Tracking number of the product. | |
UserId | String |
Users.Id | UserId of order. |
VoidDate | Datetime | Void date of order. | |
Voided | Boolean | Whether or not the order is voided. | |
VoidRequested | Boolean | Void. |
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description | |
RecipientName | String | Name of the recipient. |
Lists marketplaces.
The Cloud will use the ShipStation All the filter are executed in the client side within the Cloud.
Name | Type | References | Description |
Id [KEY] | Integer | Id of the marketplace. | |
CanConfirmShipments | Boolean | Can confirm shipments or not. | |
CanRefresh | Boolean | Whether or not the marketplace can refresh. | |
Name | String | Name of the Marketplace. | |
SupportsCustomMappings | Boolean | Marketplace will able to support custom mapping or not. | |
SupportsCustomStatuses | Boolean | Marketplace will able to support custom statuses or not. |
List all the marketplace usernames of the customers.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM MarketplaceUserNames WHERE CustomerId = 1368175
Name | Type | References | Description |
Id [KEY] | Long | Marketplace customer user Id. | |
CustomerId [KEY] | Long |
Customers.Id | Id of the customer. |
CreateDate | Datetime | Create date of this record. | |
Marketplace | String | Name of the marketplace. | |
MarketplaceId | Integer | Id of the marketplace. | |
ModifyDate | Datetime | Modify date of this record. | |
Username | String | Username of the customers. |
Customs Items of the Orders.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM OrderCustomsItems WHERE OrderId = 2810333
Name | Type | References | Description |
CustomsItemId [KEY] | Long | Id of the customs Item. | |
CountryOfOrigin | String | Origin country of the customs Item. | |
Description | String | Description of the customs Item. | |
HarmonizedTariffCode | String | Harmonized tariff code of the customers Item. | |
Quantity | Integer | Quantity of the customs Item. | |
Value | Double | Value of the customs Item. | |
OrderId [KEY] | Long | Id of the Order. |
Items of the orders.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM OrderItems WHERE OrderId = 2810333
Name | Type | References | Description |
OrderItemId [KEY] | Integer | Id of the Ordered Item. | |
ImageUrl | String | URL of the ordered Item Image. | |
LineItemKey | String | Key of the line Item. | |
Name | String | Name of the ordered Item. | |
Options | String | List of options associated with this order item. | |
Quantity | Integer | Quantity of the ordered Item. | |
ShippingAmount | Double | Shipping amount for the ordered Item. | |
SKU | String | SKU of the ordered Item. | |
TaxAmount | Double | Tax amount for the ordered Item. | |
UnitPrice | Double | Unite price of the Ordered Item. | |
WarehouseLocation | String | Ordered Item warehouse location. | |
ProductId | Integer |
Products.Id | Product Id of the ordered Id. |
FulfillmentSKU | String | Fulfillment SKU for the ordered Item. | |
Adjustment | Boolean | Adjustment is there are not for ordered Item. | |
Upc | String | UPC of the ordered Item. | |
CreateDate | Datetime | Create date of this record. | |
ModifyDate | Datetime | Modify date of this record. | |
WeightUnits | String | Weight unit of the ordered Item. | |
WeightValue | Double | Weight value of the ordered Item. | |
WeightWtUnits | Integer | A numeric value that is equivalent to the units field. | |
OrderId [KEY] | Long |
Orders.Id | Id of the Order. |
Lists all orders.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM Orders WHERE Id = 2810333
Name | Type | References | Description |
Id [KEY] | Integer | The system generated identifier for the order. | |
AdvancedOptionsBillToAccount | String | Account number of billToParty. | |
AdvancedOptionsBillToCountryCode | String | Country Code of billToParty. | |
AdvancedOptionsBillToParty | String | Identifies which party to bill. | |
AdvancedOptionsBillToPostalCode | String | Postal code of billToParty. | |
AdvancedOptionsContainsAlcohol | Boolean | Specifies whether the order contains alcohol. | |
AdvancedOptionsCustomField1 | String | Field that allows for custom data to be associated with an order. | |
AdvancedOptionsCustomField2 | String | Field that allows for custom data to be associated with an order. | |
AdvancedOptionsCustomField3 | String | Field that allows for custom data to be associated with an order. | |
AdvancedOptionsMergedIds | String | Array of orderIds. Each orderId identifies an order that was merged with the associated order. | |
AdvancedOptionsMergedOrSplit | Boolean | Returns whether or not an order has been merged or split with another order. | |
AdvancedOptionsNonMachinable | Boolean | Specifies whether the order is non-machinable. | |
AdvancedOptionsParentId | Integer | If an order has been split, it will return the Parent ID of the order with which it has been split. | |
AdvancedOptionsSaturdayDelivery | Boolean | Specifies whether the order is to be delivered on a Saturday. | |
AdvancedOptionsSource | String | Identifies the original source/marketplace of the order. | |
AdvancedOptionsStoreId | Integer | ID of store that is associated with the order. | |
AdvancedOptionsWarehouseId | Integer | Specifies the warehouse where to the order is to ship from. | |
AmountPaid | Double | The total amount paid for the Order. | |
BillToAddressVerified | String | Billing to address Verified Status. | |
BillToCity | String | Billing to city. | |
BillToCompany | String | Billing to company. | |
BillToCountry | String | Billing to country. | |
BillToName | String | Billing to Name. | |
BillToPhone | String | Billing to phone. | |
BillToPostalCode | String | Billing to postal code. | |
BillToResidential | Boolean | Billing to residential. | |
BillToState | String | Billing to state. | |
BillToStreet1 | String | Billing to street1. | |
BillToStreet2 | String | Billing to street2. | |
BillToStreet3 | String | Billing to shipToStreet3. | |
CarrierCode | String | The code for the carrier that is to be used(or was used) when this order is shipped(was shipped). | |
Confirmation | String | The type of delivery confirmation that is to be used(or was used) when this order is shipped(was shipped). | |
CreateDate | Datetime | The timestamp the order was created in ShipStation's database. Read-Only. | |
CustomerEmail | String | The customer's email address. | |
CustomerId | Integer |
Customers.Id | Unique identifier for the customer. Generated by ShipStation the first time the customer record is created. |
CustomerNotes | String | Notes left by the customer when placing the order. | |
CustomerUsername | String | Identifier for the customer in the originating system. This is typically a username or email address. | |
DimensionsHeight | Double | Height of the order. | |
DimensionsLength | Double | Length of the order. | |
DimensionsUnits | String | Units of the order. | |
DimensionsWidth | Double | Width of the order. | |
ExternallyFulfilled | Boolean | States whether the order has is current marked as externally fulfilled by the marketplace. | |
ExternallyFulfilledBy | String | If externally Fulfilled is true then this string will return how the order is being fulfilled by the marketplace. | |
Gift | Boolean | Specifies whether or not this Order is a gift. | |
GiftMessage | String | Gift message left by the customer when placing the order. | |
HoldUntilDate | String | If placed on hold, this date is the expiration date for this order's hold status. | |
InsuranceOptionsInsuredValue | Double | The shipping insurance information associated with this order.(insured Value). | |
InsuranceOptionsInsureShipment | Boolean | The shipping insurance information associated with this order.(insured Shipment). | |
InsuranceOptionsProvider | String | The shipping insurance information associated with this order.(insurance provider). | |
InternalNotes | String | Private notes that are only visible to the seller. | |
InternationalOptionsContents | String | Customs information that can be used to generate customs documents for international orders(contents). | |
InternationalOptionsNonDelivery | String | Customs information that can be used to generate customs documents for international orders(non Delivery). | |
LabelMessages | String | Label messages of the order. | |
ModifyDate | Datetime | The timestamp the order was modified in ShipStation. modify Date will equal create Date until a modification is made. | |
OrderDate | Datetime | The date the order was placed. | |
OrderKey | String | A user-provided key that should be unique to each order. Can only be initalized during order creation. If the orderkey isn't specified during creation, a unique value will be generated and assigned. | |
OrderNumber | String | A user-defined order number used to identify an order. | |
OrderStatus | String | The order's status. Possible values: 'awaiting_payment', 'awaiting_shipment', 'shipped', 'on_hold', 'cancelled' | |
OrderTotal | Double | The order total. | |
PackageCode | String | The code for the package type that is to be used(or was used) when this order is shipped(was shipped). | |
PaymentDate | Datetime | The date the order was paid for. | |
PaymentMethod | String | Method of payment used by the customer. | |
RequestedShippingService | String | Identifies the shipping service selected by the customer when placing this order. This value is given to ShipStation by the marketplace/cart. | |
ServiceCode | String | The code for the shipping service that is to be used(or was used) when this order is shipped(was shipped). | |
ShipByDate | Date | The date the order is to be shipped before or on. | |
ShipDate | Date | The date the order was shipped. | |
ShippingAmount | Double | Shipping amount paid by the customer, if any. | |
ShipToAddressVerified | String | The recipients shipping address Verified or not. | |
ShipToCity | String | The recipients shipping city. | |
ShipToCompany | String | The recipients shipping company. | |
ShipToCountry | String | The recipients shipping country. | |
ShipToName | String | The recipients shipping name. | |
ShipToPhone | String | The recipients shipping phone. | |
ShipToPostalCode | String | The recipients shipping postal code. | |
ShipToResidential | Boolean | The recipients shipping residential. | |
ShipToState | String | The recipients shipping state. | |
ShipToStreet1 | String | The recipients shipping street1. | |
ShipToStreet2 | String | The recipients shipping street2. | |
ShipToStreet3 | String | The recipients shipping street3. | |
TagIds | String | Array of tagIds associated with this order. | |
TaxAmount | Double | The total tax amount for the Order. | |
UserId | String | User assigned to Order/Shipment in the GUID. Read-Only. | |
WeightUnits | String | Weight of the order units. | |
WeightValue | Double | Weight of the order value. | |
WeightWtUnits | Integer | A numeric value that is equivalent to the units field. | |
CustomerName | String | Name of the customer. | |
ItemKeyword | String | Returns orders that contain items that match the specified keyword. Fields searched are Sku, Description, and Options. |
Lists all the products.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM Products WHERE Id = 1381428
Name | Type | References | Description |
Id [KEY] | Integer | Id of product. | |
Active | Boolean | Product active or not status. | |
Aliases | String | Aliases for the product. | |
CreateDate | Datetime | Create date of this record. | |
CustomsCountryCode | String | Customs country code of the product. | |
CustomsDescription | String | Customs description of the product. | |
CustomsTariffNo | String | Customs traffic number of the product. | |
CustomsValue | Double | Customs value of the product. | |
DefaultCarrierCode | String | Default carrier code for the product. | |
DefaultConfirmation | String | Default confirmation of the product. | |
DefaultCost | Double | Default cost for the product. | |
DefaultIntlCarrierCode | String | Default international carrier code of the product. | |
DefaultIntlConfirmation | String | Default international confirmation code of the product. | |
DefaultIntlPackageCode | String | Default international package code. | |
DefaultIntlServiceCode | String | Default international service code. | |
DefaultPackageCode | String | The default domestic packageType for this product. | |
DefaultServiceCode | String | The default domestic shipping service for this product. | |
FulfillmentSKU | String | Stock keeping Unit for the fulfillment of that product by a 3rd party. | |
Height | Double | The height of the product. Unit of measurement is UI dependent. No conversions will be made from one UOM to another. See our knowledge base here for more details. | |
InternalNotes | String | Seller's private notes for the product. | |
Length | Double | The length of the product. Unit of measurement is UI dependent. No conversions will be made from one UOM to another. See our knowledge base here for more details. | |
ModifyDate | Datetime | The timestamp the product record was modified in ShipStation. Read-Only. | |
Name | String | Name or description of the product. | |
NoCustoms | Boolean | If true, this product will not be included on international customs forms. | |
Price | Double | The unit price of the product. | |
ProductCategoryId | Long | The system generated identifier for the product category. | |
ProductCategoryName | String | Name or description for the product category. | |
ProductTypeCustomsCountryCode | String | Customs Country Code of the Product Type. | |
ProductTypeCustomsDescription | String | Customs Description of the Product Type. | |
ProductTypeCustomsTariffNo | String | Customs Tariff No of the Product Type. | |
ProductTypeCustomsValue | Double | Customs Value of the Product Type. | |
ProductTypeHeight | Double | Height of the Product Type. | |
ProductTypeDefaultCarrierCode | String | Default Carrier Code of the Product Type. | |
ProductTypeDefaultIntlCarrierCode | String | Default International Carrier Code of the Product Type. | |
ProductTypeDefaultIntlPackageCode | String | Default International Package Code of the Product Type. | |
ProductTypeDefaultIntlServiceCode | String | Default International Service Code of the Product Type. | |
ProductTypeDefaultPackageCode | String | Default Package Code of the Product Type. | |
ProductTypeDefaultServiceCode | String | Default Service Code of the Product Type. | |
ProductTypeId | Long | Specifies the product type Id. | |
ProductTypeLength | Double | Length of the Product Type. | |
ProductTypeName | String | Name of the Product Type. | |
ProductTypeNoCustoms | Boolean | If true, this product type will not nbe included on international customs forum. | |
ProductTypeWeightOz | Double | Weight of the Product Type. | |
ProductTypeWidth | Double | Width of the Product Type. | |
SKU | String | Stock keeping Unit. A user-defined value for a product to help identify the product. It is suggested that each product should contain a unique SKU. | |
WarehouseLocation | String | The warehouse location associated with the product record. | |
WeightOz | Double | The weight of a single item in ounces. | |
Width | Double | The width of the product. Unit of measurement is UI dependent. No conversions will be made from one UOM to another. See our knowledge base here for more details. | |
ShowInactive | Boolean | Whether the list should include inactive products. | |
TagId | Integer |
Tags.Id | Tag Id of the product |
Lists product tags.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM ProductTags WHERE ProductId = 1381428
Name | Type | References | Description |
Id | Integer |
Tags.Id | The system generated identifier for the product tag. |
Name | String | Name or description for the product tag. | |
ProductId | Long |
Products.Id | Id of the product. |
Lists shipment items.
The Cloud will use the ShipStation All the filter is executed client side within the Cloud.
Name | Type | References | Description |
Id [KEY] | Integer | Id of the ordered Item. | |
ShipmentId | Long | Id of the Shipment. | |
FulfillmentSKU | String | The fulfillment SKU associated with this OrderItem if the fulfillment provider requires an identifier other then the SKU. | |
ImageUrl | String | The public URL to the product image. | |
LineItemKey | String | An identifier for the OrderItem in the originating system. | |
Name | String | The name of the product associated with this line item. Cannot be null. | |
OptionsName | String | Options of the Item. | |
OptionsValue | String | Options of the Item. | |
ProductId | Integer | Id of the product. | |
Quantity | Integer | The quantity of product ordered. | |
SKU | String | The SKU (stock keeping unit) identifier for the product associated with this line item. | |
UnitPrice | Double | The sell price of a single item specified by the order source. | |
WarehouseLocation | String | The location of the product within the seller's warehouse (e.g. Aisle 3, Shelf A, Bin 5). | |
WeightValue | Double | The weight value of a single item. | |
WeightUnits | String | The units of weight. | |
WeightWtUnits | Integer | A numeric value that is equivalent to the units field. |
Retrieves the list of shipments.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM Shipments WHERE CarrierCode = 'hermes'
Name | Type | References | Description |
Id [KEY] | Integer | Id of the Shipment. | |
AdvancedOptionsBillToAccount | String | Bill to Account of the shipment. | |
AdvancedOptionsBillToCountryCode | String | Bill to country code of the shipment. | |
AdvancedOptionsBillToMyOtherAccount | String | Bill to other account of the shipment. | |
AdvancedOptionsBillToParty | String | Bill to party of the shipment. | |
AdvancedOptionsBillToPostalCode | String | Bill to postal code of the shipment. | |
AdvancedOptionsContainsAlcohol | Boolean | Whether the shipment contains alcohol or not. | |
AdvancedOptionsCustomField1 | String | Custom field for shipment description. | |
AdvancedOptionsCustomField2 | String | Custom field for shipment description. | |
AdvancedOptionsCustomField3 | String | Custom field for shipment description. | |
AdvancedOptionsMergedIds | String | Merge id of the shipment. | |
AdvancedOptionsMergedOrSplit | Boolean | Merge or split the shipment. | |
AdvancedOptionsNonMachinable | Boolean | None machinable or not. | |
AdvancedOptionsParentId | Integer | Parent Id of the shipment. | |
AdvancedOptionsSaturdayDelivery | Boolean | Available for Saturday delivery or not. | |
AdvancedOptionsSource | String | Source of the shipment. | |
AdvancedOptionsStoreId | Integer | Store Id of the shipment. | |
AdvancedOptionsWarehouseId | Integer | Warehouse Id of the shipment. | |
BatchNumber | String | Batch Number of the shipment. | |
CarrierCode | String | Carrier code of the shipment. | |
Confirmation | String | Confirmation of the shipment. | |
CreateDate | Datetime | Create date of this record. | |
DimensionsHeight | Double | Height of the shipment. | |
DimensionsLength | Double | Length of the shipment. | |
DimensionsUnits | String | Units of the shipment. | |
DimensionsWidth | Double | Width of the shipment. | |
FormData | String | Form data for the shipment. | |
InsuranceCost | Double | Insurance cost of the shipment. | |
InsuranceOptionsInsuredValue | Double | Insured value of the shipment. | |
InsuranceOptionsInsureShipment | Boolean | Shipment is insured or not. | |
InsuranceOptionsProvider | String | Insurance provider of the shipment. | |
IsReturnLabel | Boolean | Shipment is return label is there or not. | |
LabelData | String | Label data of the shipment. | |
MarketplaceNotified | Boolean | Marketplace is notified or not. | |
NotifyErrorMessage | String | Error message of the notification. | |
OrderId | Integer | Order Id of the shipment. | |
OrderKey | String | Order Item key of the shipment. | |
OrderNumber | String | Order Number of the shipment. | |
PackageCode | String | Package code of the shipment. | |
ServiceCode | String | Service code of the shipment. | |
ShipDate | Date | Ship date of the shipment. | |
ShipmentCost | Double | Shipment cost. | |
ShipToCity | String | Ship to city. | |
ShipToCompany | String | Ship to company. | |
ShipToCountry | String | Ship to country. | |
ShipToName | String | Ship to Name. | |
ShipToPhone | String | Ship to phone. | |
ShipToPostalCode | String | Ship to postal code. | |
ShipToResidential | Boolean | Ship to residential. | |
ShipToState | String | Ship to state. | |
ShipToStreet1 | String | Ship to street. | |
ShipToStreet2 | String | Ship to street. | |
ShipToStreet3 | String | Ship to street. | |
TrackingNumber | String | Shipment tracking Number. | |
UserId | String | Shipment user Id. | |
VoidDate | Datetime | Void date of the shipment. | |
Voided | Boolean | Voided date of the shipment. | |
WarehouseId | Integer | Warehouse Id of the shipment. | |
WeightUnits | String | Weight units of the shipment. | |
WeightValue | Double | Weight value of the shipment. | |
WeightWtUnits | Integer | A numeric value that is equivalent to the units field. | |
RecipientCountryCode | String | Country code of the shipment recipient. | |
StoreId | Integer | Store Id of the shipment. |
Lists status of the store refresh.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM StoreRefreshStatus WHERE StoreId = 5603
Name | Type | References | Description |
StoreId [KEY] | Integer |
Stores.Id | Id of the store. |
Id | Integer | Store refresh status id. | |
LastRefreshAttempt | Date | Last date of the refresh attempt for store. | |
RefreshDate | Date | Refresh date of the store. | |
RefreshStatus | String | Refresh status of the store. |
Lists all stores.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM Stores WHERE Id = 5603
Name | Type | References | Description |
Id [KEY] | Integer | Id of the store. | |
AccountName | String | Account name of the store. | |
Active | Boolean | Whether store is active or not. | |
AutoRefresh | Boolean | Whether refresh is available or not. | |
CompanyName | String | Company name of the store. | |
CreateDate | Datetime | Create date of this record. | |
String | Email id of the store. | ||
IntegrationUrl | String | Integration URL of the store. | |
LastRefreshAttempt | Datetime | Last refresh attempt of the store. | |
MarketplaceId | Integer | Marketplace Id of the store. | |
MarketplaceName | String | Marketplace Name of the store. | |
ModifyDate | Datetime | Modify date of the store. | |
Phone | String | Phone number of the store. | |
PublicEmail | String | Public email of the store. | |
RefreshDate | Datetime | Refresh date of the store. | |
StatusMappings | String | ||
StoreName | String | Name of the store. | |
Website | String | Website of the store. | |
ShowInactive | Boolean | Specifies whether inactive stores will be shown. |
Lists all the tags defined for this account.
The Cloud will use the ShipStation All the filter are executed client side within the Cloud.
Name | Type | References | Description |
Id [KEY] | Integer | Globally unique ID for the tag. | |
Color | String | Color associated with this tag. | |
Name | String | Name of the tag. |
Lists ShipStation users.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM Users WHERE ShowInactive = 'true'
Name | Type | References | Description |
Id [KEY] | String | Id of the User. | |
Name | String | Name of the User. | |
UserName | String | User name of the User. | |
ShowInactive | Boolean | Specifies whether inactive stores will be shown. |
Lists warehouses.
The Cloud will use the ShipStation API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the Cloud.
SELECT * FROM Warehouses WHERE Id = 8688
Name | Type | References | Description |
Id [KEY] | Integer | Id of the warehouses. | |
WarehouseName | String | Name of the warehouse. | |
CreateDate | Datetime | Create date of the record. | |
ExtInventoryIdentity | String | Inventory Identity. | |
IsDefault | Boolean | Whether it is default warehouse or not. | |
OriginAddressAddressVerified | String | Origin address is verified or not. | |
OriginAddressCity | String | Origin city of the warehouse. | |
OriginAddressCompany | String | Origin country of the warehouse. | |
OriginAddressCountry | String | Origin name of the warehouse. | |
OriginAddressName | String | Origin phone of the warehouse. | |
OriginAddressPhone | String | Origin phone of the warehouse. | |
OriginAddressPostalCode | String | Origin postal code of the warehouse. | |
OriginAddressResidential | Boolean | Origin residential of the warehouse. | |
OriginAddressState | String | Origin state of the warehouse. | |
OriginAddressStreet1 | String | Origin street of the warehouse. | |
OriginAddressStreet2 | String | Origin street of the warehouse. | |
OriginAddressStreet3 | String | Origin street of the warehouse. | |
RegisterFedexMeter | String | Register Fedex Meter. | |
ReturnAddressAddressVerified | String | Return address is verified or not. | |
ReturnAddressCity | String | Return city of the warehouse. | |
ReturnAddressCompany | String | Return company of the warehouse. | |
ReturnAddressCountry | String | Return country of the warehouse. | |
ReturnAddressName | String | Return Name of the warehouse. | |
ReturnAddressPhone | String | Return phone of the warehouse. | |
ReturnAddressPostalCode | String | Return postal code of the warehouse. | |
ReturnAddressResidential | String | Return residential of the warehouse. | |
ReturnAddressState | String | Return state of the warehouse. | |
ReturnAddressStreet1 | String | Return street of the warehouse. | |
ReturnAddressStreet2 | String | Return street of the warehouse. | |
ReturnAddressStreet3 | String | Return street of the warehouse. | |
SellerIntegrationId | String | Seller Integration Id. |
Stored procedures are function-like interfaces that extend the functionality of the Cloud beyond simple SELECT operations with ShipStation.
Stored procedures accept a list of parameters, perform their intended function, and then return any relevant response data from ShipStation, along with an indication of whether the procedure succeeded or failed.
Name | Description |
AddTagToOrder | Adds a tag to an order |
AssignUserToOrder | Assigns a user to an order |
CreateLabelForOrder | Creates a label for an Order |
CreateLabelForShipment | Creates a label for a shipment |
DeactivateStore | Deactivates a specified store |
HoldOrder | This method will change the status of the given order to On Hold until the date specified or will change the status of the given order from On Hold to Awaiting Shipment |
ReactivateStore | Reactivates the specified store. Note: stores are active by default |
RefreshStore | Refreshes the specified store |
RemoveTagFromOrder | Removes tag from an Order |
RestoreOrder | This method will change the status of the given order from On Hold to Awaiting Shipment. This endpoint is used when a HoldUntil Date is attached to an order. |
UnassignUserFromOrder | Unassigns a user from an order. |
VoidShipmentLabel | Voids the specified label by shipmentId. |
Adds a tag to an order
Name | Type | Required | Description |
OrderId | Integer | True | Identifies the order that will be tagged. |
TagId | Integer | True | Identifies the tag that will be applied to the order. |
Name | Type | Description |
Status | String | The status of the operation. |
Assigns a user to an order
Name | Type | Required | Description |
OrderIds | Integer | True | Identifies set of orders that will be assigned the user. Please note that if ANY of the orders within the array are not found, no orders will have a user assigned to them (Multiple OrderIds can be passed as comma separated). |
UserId | String | True | Identifies the user that will be applied to the orders. It should contain a GUID of the user to be assigned to the array of orders. |
Name | Type | Description |
Status | String | The status of the operation. |
Creates a label for an Order
Name | Type | Required | Description |
DownloadLocation | String | False | The location on the disk where to download the label. |
OrderId | Integer | True | Identifies the order that will be shipped. |
CarrierCode | String | True | The code for the carrier that is to be used for the label. |
ServiceCode | String | True | The code for the shipping service that is to be used for the label. |
Confirmation | String | True | The type of delivery confirmation that is to be used once the shipment is created. Possible values: none, delivery, signature, adult_signature, and direct_signature. direct_signature is available for FedEx only. |
ShipDate | String | True | The date the order should be shipped. |
WeightValue | Integer | True | Weight_value of the order. |
WeightUnits | String | True | Weight_units of the order. |
WeightWeightUnits | Integer | False | Weight_WeightUnits of the order. |
DimensionsLength | String | False | Length of package. |
DimensionsWidth | String | False | Width of package. |
DimensionsHeight | String | False | Height of package. |
DimensionsUnits | String | False | Units of measurement. Allowed units are: 'inches', or 'centimeters'. |
InsuranceOptionsProvider | String | False | Preferred Insurance provider. Available options: shipsurance, carrier, or provider. The provider option is used to indicate that a shipment was insured by a third party other than ShipSurance or the carrier. The insurance is handled outside of ShipStation, and will not affect the cost of processing the label. |
InsuranceOptionsInsureShipment | String | False | Indicates whether shipment should be insured. |
InsuranceOptionsInsuredValue | String | False | Value to insure. |
InternationalOptionsContents | String | False | Contents of international shipment. Available options are: merchandise, documents, gift, returned_goods, or sample. |
InternationalOptionsCustomsItemsCustomsItemId | String | False | If this field is included when submitting an order through Order/CreateOrder, then it will look for the corresponding customs line and update any values.(Multiple values can be given as input with comma separator like: '121221,21211,12121') |
InternationalOptionsCustomsItemsDescription | String | False | A short description of the CustomsItem(Multiple Description for the corresponding CustomsItemId can be given as input with comma separator like: 'desc1,desc2,desc3'). |
InternationalOptionsCustomsItemsQuantity | String | False | The quantity for this line item(Multiple Quantity for the corresponding CustomsItemId can be given as input with comma separator like: '5,1,4'). |
InternationalOptionsCustomsItemsValue | String | False | The value (in USD) of the line item(Multiple Value for the corresponding CustomsItemId can be given as input with comma separator like: '10,50,100'). |
InternationalOptionsCustomsItemsHarmonizedTariffCode | String | False | The Harmonized Commodity Code for this line item(Multiple HarmonizedTariffCode for the corresponding CustomsItemId can be given as input with comma separator like: '12312,12312,12312'). |
InternationalOptionsCustomsItemsCountryOfOrigin | String | False | The 2-character ISO country code where the item originated(Multiple CountryOfOrigin for the corresponding CustomsItemId can be given as input with comma separator like: 'US,US,US'). |
InternationalOptionsNonDelivery | String | False | Non-Delivery option for international shipment. Available options are: return_to_sender or treat_as_abandoned. Please note: If the shipment is created through the Orders/CreateLabelForOrder endpoint and the nonDelivery field is not specified then value defaults based on the International Setting in the UI. If the call is being made to the Shipments/CreateLabel endpoint and the nonDelivery field is not specified then the value will default to return_to_sender. |
AdvancedOptionsWarehouseId | Integer | False | Specifies the warehouse where to the order is to ship from. If the order was fulfilled using a fill provider, no warehouse is attached to these orders and will result in a null value being returned. *Please see note below |
AdvancedOptionsNonMachinable | Boolean | False | Specifies whether the order is non-machinable. |
AdvancedOptionsSaturdayDelivery | Boolean | False | Specifies whether the order is to be delivered on a Saturday. |
AdvancedOptionsContainsAlcohol | Boolean | False | Specifies whether the order contains alcohol. |
AdvancedOptionsStoreId | Integer | False | ID of store that is associated with the order. If not specified in the CreateOrder call either to create or update an order, ShipStation will default to the first manual store on the account. Can only be specified during order creation. |
AdvancedOptionsCustomField1 | String | False | Field that allows for custom data to be associated with an order. *Please see note below |
AdvancedOptionsCustomField2 | String | False | Field that allows for custom data to be associated with an order. *Please see note below |
AdvancedOptionsCustomField3 | String | False | Field that allows for custom data to be associated with an order. *Please see note below |
AdvancedOptionsSource | String | False | Identifies the original source/marketplace of the order. *Please see note below |
AdvancedOptionsMergedOrSplit | Boolean | False | Returns whether or not an order has been merged or split with another order. Read Only |
AdvancedOptionsMergedIds | Integer | False | Array of orderIds. Each orderId identifies an order that was merged with the associated order. Read Only |
AdvancedOptionsParentId | Integer | False | If an order has been split, it will return the Parent ID of the order with which it has been split. If the order has not been split, this field will return null. Read Only |
AdvancedOptionsBillToParty | String | False | Identifies which party to bill. Possible values: my_account, my_other_account (see note below), recipient, third_party. billTo values can only be used when creating/updating orders. |
AdvancedOptionsBillToAccount | String | False | Account number of billToParty. billTo values can only be used when creating/updating orders. |
AdvancedOptionsBillToPostalCode | String | False | Postal Code of billToParty. billTo values can only be used when creating/updating orders. |
AdvancedOptionsBillToCountryCode | String | False | Country Code of billToParty. billTo values can only be used when creating/updating orders. |
AdvancedOptionsBillToMyOtherAccount | String | False | When using my_other_account billToParty value, the shippingProviderId value associated with the desired account. Make a List Carriers call to obtain shippingProviderId values. |
TestLabel | Boolean | False | Specifies whether a test label should be created.
The default value is false. |
Encoding | String | False | The FileData input encoding type.
The allowed values are NONE, BASE64. The default value is BASE64. |
Name | Type | Description |
Status | String | The status of the operation. |
FileData | String | If the DownloadLocation and FileStream are not provided, this contains the content of the file. |
Creates a label for a shipment
Name | Type | Required | Description |
DownloadLocation | String | False | The location on the disk where to download the label. |
CarrierCode | String | True | The code for the carrier that is to be used for the label. |
ServiceCode | String | True | The code for the shipping service that is to be used for the label. |
PackageCode | String | True | Identifies the packing type that should be used for this label. |
Confirmation | String | False | The type of delivery confirmation that is to be used once the shipment is created. Possible values: none, delivery, signature, adult_signature, and direct_signature. direct_signature is available for FedEx only. |
ShipDate | String | True | The date the order should be shipped. |
WeightValue | Integer | True | Weight_value of the order. |
WeightUnits | String | True | Weight_units of the order. |
WeightWeightUnits | Integer | False | Weight_WeightUnits of the order. |
DimensionsLength | String | False | Length of package. |
DimensionsWidth | String | False | Width of package. |
DimensionsHeight | String | False | Height of package |
DimensionsUnits | String | False | Units of measurement. Allowed units are: 'inches', or 'centimeters' |
ShipFromName | String | True | Name of person. |
ShipFromCompany | String | True | Name of company. |
ShipFromStreet1 | String | True | First line of address. |
ShipFromStreet2 | String | False | Second line of address. |
ShipFromStreet3 | String | False | Third line of address. |
ShipFromCity | String | True | City. |
ShipFromState | String | True | State. |
ShipFromPostalCode | String | True | Postal Code. |
ShipFromCountry | String | True | Country Code. The two-character ISO country code is required. |
ShipFromPhone | String | False | Telephone number. |
ShipFromResidential | Boolean | True | Residential. |
ShipFromAddressVerified | String | False | Identifies whether the address has been verified by ShipStation (read only). Possible values: Address not yet validated, Address validated successfully, Address validation warning, Address validation failed. |
ShipToName | String | True | Name of person. |
ShipToCompany | String | True | Name of company. |
ShipToStreet1 | String | True | First line of address. |
ShipToStreet2 | String | False | Second line of address. |
ShipToStreet3 | String | False | Third line of address. |
ShipToCity | String | True | City. |
ShipToState | String | True | State. |
ShipToPostalCode | String | True | Postal Code. |
ShipToCountry | String | True | Country Code. The two-character ISO country code is required. |
ShipToPhone | String | False | Telephone number. |
ShipToResidential | Boolean | True | Residential. |
ShipToAddressVerified | String | False | Identifies whether the address has been verified by ShipStation (read only). Possible values: Address not yet validated, Address validated successfully, Address validation warning, Address validation failed. |
InsuranceOptionsProvider | String | False | Preferred Insurance provider. Available options: shipsurance, carrier, or provider. The provider option is used to indicate that a shipment was insured by a third party other than ShipSurance or the carrier. The insurance is handled outside of ShipStation, and will not affect the cost of processing the label. |
InsuranceOptionsInsureShipment | String | False | Indicates whether shipment should be insured. |
InsuranceOptionsProvider | String | False | Value to insure. |
InternationalOptionsContents | String | False | Contents of international shipment. Available options are: merchandise, documents, gift, returned_goods, or sample |
InternationalOptionsCustomsItemsCustomsItemId | String | False | If this field is included when submitting an order through Order/CreateOrder, then it will look for the corresponding customs line and update any values.(Multiple values can be given as input with comma separator like: '121221,21211,12121'). |
InternationalOptionsCustomsItemsDescription | String | False | A short description of the CustomsItem(Multiple Description for the corresponding CustomsItemId can be given as input with comma separator like: 'desc1,desc2,desc3'). |
InternationalOptionsCustomsItemsQuantity | String | False | The quantity for this line item(Multiple Quantity for the corresponding CustomsItemId can be given as input with comma separator like: '5,1,4'). |
InternationalOptionsCustomsItemsValue | String | False | The value (in USD) of the line item(Multiple Value for the corresponding CustomsItemId can be given as input with comma separator like: '10,50,100'). |
InternationalOptionsCustomsItemsHarmonizedTariffCode | String | False | The Harmonized Commodity Code for this line item(Multiple HarmonizedTariffCode for the corresponding CustomsItemId can be given as input with comma separator like: '12312,12312,12312'). |
InternationalOptionsCustomsItemsCountryOfOrigin | String | False | The 2-character ISO country code where the item originated(Multiple CountryOfOrigin for the corresponding CustomsItemId can be given as input with comma separator like: 'US,US,US'). |
InternationalOptionsNonDelivery | String | False | Non-Delivery option for international shipment. Available options are: return_to_sender or treat_as_abandoned. Please note: If the shipment is created through the Orders/CreateLabelForOrder endpoint and the nonDelivery field is not specified then value defaults based on the International Setting in the UI. If the call is being made to the Shipments/CreateLabel endpoint and the nonDelivery field is not specified then the value will default to return_to_sender. |
AdvancedOptionsWarehouseId | Integer | False | Specifies the warehouse where to the order is to ship from. If the order was fulfilled using a fill provider, no warehouse is attached to these orders and will result in a null value being returned. *Please see note below |
AdvancedOptionsNonMachinable | Boolean | False | Specifies whether the order is non-machinable. |
AdvancedOptionsSaturdayDelivery | Boolean | False | Specifies whether the order is to be delivered on a Saturday. |
AdvancedOptionsContainsAlcohol | Boolean | False | Specifies whether the order contains alcohol. |
AdvancedOptionsStoreId | Integer | False | ID of store that is associated with the order. If not specified in the CreateOrder call either to create or update an order, ShipStation will default to the first manual store on the account. Can only be specified during order creation. |
AdvancedOptionsCustomField1 | String | False | Field that allows for custom data to be associated with an order. *Please see note below |
AdvancedOptionsCustomField2 | String | False | Field that allows for custom data to be associated with an order. *Please see note below |
AdvancedOptionsCustomField3 | String | False | Field that allows for custom data to be associated with an order. *Please see note below |
AdvancedOptionsSource | String | False | Identifies the original source/marketplace of the order. *Please see note below |
AdvancedOptionsMergedOrSplit | Boolean | False | Read-Only: Returns whether or not an order has been merged or split with another order. Read Only |
AdvancedOptionsMergedIds | Integer | False | Read-Only: Array of orderIds. Each orderId identifies an order that was merged with the associated order. Read Only |
AdvancedOptionsParentId | Integer | False | Read-Only: If an order has been split, it will return the Parent ID of the order with which it has been split. If the order has not been split, this field will return null. Read Only |
AdvancedOptionsBillToParty | String | False | Identifies which party to bill. Possible values: my_account, my_other_account (see note below), recipient, third_party. billTo values can only be used when creating/updating orders.. |
AdvancedOptionsBillToAccount | String | False | Account number of billToParty. billTo values can only be used when creating/updating orders.. |
AdvancedOptionsBillToPostalCode | String | False | Postal Code of billToParty. billTo values can only be used when creating/updating orders. |
AdvancedOptionsBillToCountryCode | String | False | Country Code of billToParty. billTo values can only be used when creating/updating orders. |
AdvancedOptionsBillToMyOtherAccount | String | False | When using my_other_account billToParty value, the shippingProviderId value associated with the desired account. Make a List Carriers call to obtain shippingProviderId values. |
TestLabel | Boolean | False | Specifies Whether A Test Label Should Be Created.
The default value is false. |
Encoding | String | False | The FileData input encoding type.
The allowed values are NONE, BASE64. The default value is BASE64. |
Name | Type | Description |
Status | String | The status of the operation. |
FileData | String | If the DownloadLocation and FileStream are not provided, this contains the content of the file. |
Deactivates a specified store
Name | Type | Required | Description |
StoreId | Integer | True | ID of the store to deactivate. |
Name | Type | Description |
Status | String | The status of the operation. |
This method will change the status of the given order to On Hold until the date specified or will change the status of the given order from On Hold to Awaiting Shipment
Name | Type | Required | Description |
OrderId | Integer | True | Identifies the order that will be held. |
HoldUntilDate | String | True | Date when order is moved from on_hold status to awaiting_shipment. |
Name | Type | Description |
Status | String | The status of the operation. |
Reactivates the specified store. Note: stores are active by default
Name | Type | Required | Description |
StoreId | Integer | True | ID of the store to reactivate. |
Name | Type | Description |
Status | String | The status of the operation. |
Refreshes the specified store
Name | Type | Required | Description |
StoreId | Integer | False | Specifies the store which will get refreshed. If the storeId is not specified, a store refresh will be initiated for all refreshable stores on that account. |
RefreshDate | String | False | Specifies the starting date for new order imports. If the refreshDate is not specified, ShipStation will use the last recorded refreshDate for that store. |
Name | Type | Description |
Status | String | The status of the operation. |
Removes tag from an Order
Name | Type | Required | Description |
OrderId | Integer | True | Identifies the order whose tag will be removed. |
TagId | Integer | True | Identifies the tag to remove. |
Name | Type | Description |
Status | String | The status of the operation. |
This method will change the status of the given order from On Hold to Awaiting Shipment. This endpoint is used when a HoldUntil Date is attached to an order.
Name | Type | Required | Description |
OrderId | Integer | True | Identifies the order that will be restored to awaiting_shipment from on_hold. |
Name | Type | Description |
Status | String | The status of the operation. |
Unassigns a user from an order.
Name | Type | Required | Description |
OrderIds | Integer | True | Identifies set of orders that will have the user unassigned. Please note that if ANY of the orders within the array are not found, then no orders will have their users unassigned (Multiple Ids can be given as comma separated input). |
Name | Type | Description |
Status | String | The status of the operation. |
Voids the specified label by shipmentId.
Name | Type | Required | Description |
ShipmentId | Integer | True | ID of the shipment to void. |
Name | Type | Description |
Status | String | The status of the operation. |
You can query the system tables described in this section to access schema information, information on data source functionality, and batch operation statistics.
The following tables return database metadata for ShipStation:
The following tables return information about how to connect to and query the data source:
The following table returns query statistics for data modification queries:
Lists the available databases.
The following query retrieves all databases determined by the connection string:
SELECT * FROM sys_catalogs
Name | Type | Description |
CatalogName | String | The database name. |
Lists the available schemas.
The following query retrieves all available schemas:
SELECT * FROM sys_schemas
Name | Type | Description |
CatalogName | String | The database name. |
SchemaName | String | The schema name. |
Lists the available tables.
The following query retrieves the available tables and views:
SELECT * FROM sys_tables
Name | Type | Description |
CatalogName | String | The database containing the table or view. |
SchemaName | String | The schema containing the table or view. |
TableName | String | The name of the table or view. |
TableType | String | The table type (table or view). |
Description | String | A description of the table or view. |
IsUpdateable | Boolean | Whether the table can be updated. |
Describes the columns of the available tables and views.
The following query returns the columns and data types for the Tags table:
SELECT ColumnName, DataTypeName FROM sys_tablecolumns WHERE TableName='Tags'
Name | Type | Description |
CatalogName | String | The name of the database containing the table or view. |
SchemaName | String | The schema containing the table or view. |
TableName | String | The name of the table or view containing the column. |
ColumnName | String | The column name. |
DataTypeName | String | The data type name. |
DataType | Int32 | An integer indicating the data type. This value is determined at run time based on the environment. |
Length | Int32 | The storage size of the column. |
DisplaySize | Int32 | The designated column's normal maximum width in characters. |
NumericPrecision | Int32 | The maximum number of digits in numeric data. The column length in characters for character and date-time data. |
NumericScale | Int32 | The column scale or number of digits to the right of the decimal point. |
IsNullable | Boolean | Whether the column can contain null. |
Description | String | A brief description of the column. |
Ordinal | Int32 | The sequence number of the column. |
IsAutoIncrement | String | Whether the column value is assigned in fixed increments. |
IsGeneratedColumn | String | Whether the column is generated. |
IsHidden | Boolean | Whether the column is hidden. |
IsArray | Boolean | Whether the column is an array. |
IsReadOnly | Boolean | Whether the column is read-only. |
IsKey | Boolean | Indicates whether a field returned from sys_tablecolumns is the primary key of the table. |
Lists the available stored procedures.
The following query retrieves the available stored procedures:
SELECT * FROM sys_procedures
Name | Type | Description |
CatalogName | String | The database containing the stored procedure. |
SchemaName | String | The schema containing the stored procedure. |
ProcedureName | String | The name of the stored procedure. |
Description | String | A description of the stored procedure. |
ProcedureType | String | The type of the procedure, such as PROCEDURE or FUNCTION. |
Describes stored procedure parameters.
The following query returns information about all of the input parameters for the RestoreOrder stored procedure:
SELECT * FROM sys_procedureparameters WHERE ProcedureName='RestoreOrder' AND Direction=1 OR Direction=2
Name | Type | Description |
CatalogName | String | The name of the database containing the stored procedure. |
SchemaName | String | The name of the schema containing the stored procedure. |
ProcedureName | String | The name of the stored procedure containing the parameter. |
ColumnName | String | The name of the stored procedure parameter. |
Direction | Int32 | An integer corresponding to the type of the parameter: input (1), input/output (2), or output(4). input/output type parameters can be both input and output parameters. |
DataTypeName | String | The name of the data type. |
DataType | Int32 | An integer indicating the data type. This value is determined at run time based on the environment. |
Length | Int32 | The number of characters allowed for character data. The number of digits allowed for numeric data. |
NumericPrecision | Int32 | The maximum precision for numeric data. The column length in characters for character and date-time data. |
NumericScale | Int32 | The number of digits to the right of the decimal point in numeric data. |
IsNullable | Boolean | Whether the parameter can contain null. |
IsRequired | Boolean | Whether the parameter is required for execution of the procedure. |
IsArray | Boolean | Whether the parameter is an array. |
Description | String | The description of the parameter. |
Ordinal | Int32 | The index of the parameter. |
Describes the primary and foreign keys.
The following query retrieves the primary key for the Tags table:
SELECT * FROM sys_keycolumns WHERE IsKey='True' AND TableName='Tags'
Name | Type | Description |
CatalogName | String | The name of the database containing the key. |
SchemaName | String | The name of the schema containing the key. |
TableName | String | The name of the table containing the key. |
ColumnName | String | The name of the key column. |
IsKey | Boolean | Whether the column is a primary key in the table referenced in the TableName field. |
IsForeignKey | Boolean | Whether the column is a foreign key referenced in the TableName field. |
PrimaryKeyName | String | The name of the primary key. |
ForeignKeyName | String | The name of the foreign key. |
ReferencedCatalogName | String | The database containing the primary key. |
ReferencedSchemaName | String | The schema containing the primary key. |
ReferencedTableName | String | The table containing the primary key. |
ReferencedColumnName | String | The column name of the primary key. |
Describes the foreign keys.
The following query retrieves all foreign keys which refer to other tables:
SELECT * FROM sys_foreignkeys WHERE ForeignKeyType = 'FOREIGNKEY_TYPE_IMPORT'
Name | Type | Description |
CatalogName | String | The name of the database containing the key. |
SchemaName | String | The name of the schema containing the key. |
TableName | String | The name of the table containing the key. |
ColumnName | String | The name of the key column. |
PrimaryKeyName | String | The name of the primary key. |
ForeignKeyName | String | The name of the foreign key. |
ReferencedCatalogName | String | The database containing the primary key. |
ReferencedSchemaName | String | The schema containing the primary key. |
ReferencedTableName | String | The table containing the primary key. |
ReferencedColumnName | String | The column name of the primary key. |
ForeignKeyType | String | Designates whether the foreign key is an import (points to other tables) or export (referenced from other tables) key. |
Describes the primary keys.
The following query retrieves the primary keys from all tables and views:
SELECT * FROM sys_primarykeys
Name | Type | Description |
CatalogName | String | The name of the database containing the key. |
SchemaName | String | The name of the schema containing the key. |
TableName | String | The name of the table containing the key. |
ColumnName | String | The name of the key column. |
KeySeq | String | The sequence number of the primary key. |
KeyName | String | The name of the primary key. |
Describes the available indexes. By filtering on indexes, you can write more selective queries with faster query response times.
The following query retrieves all indexes that are not primary keys:
SELECT * FROM sys_indexes WHERE IsPrimary='false'
Name | Type | Description |
CatalogName | String | The name of the database containing the index. |
SchemaName | String | The name of the schema containing the index. |
TableName | String | The name of the table containing the index. |
IndexName | String | The index name. |
ColumnName | String | The name of the column associated with the index. |
IsUnique | Boolean | True if the index is unique. False otherwise. |
IsPrimary | Boolean | True if the index is a primary key. False otherwise. |
Type | Int16 | An integer value corresponding to the index type: statistic (0), clustered (1), hashed (2), or other (3). |
SortOrder | String | The sort order: A for ascending or D for descending. |
OrdinalPosition | Int16 | The sequence number of the column in the index. |
Returns information on the available connection properties and those set in the connection string.
When querying this table, the config connection string should be used:
jdbc:cdata:shipstation:config:
This connection string enables you to query this table without a valid connection.
The following query retrieves all connection properties that have been set in the connection string or set through a default value:
SELECT * FROM sys_connection_props WHERE Value <> ''
Name | Type | Description |
Name | String | The name of the connection property. |
ShortDescription | String | A brief description. |
Type | String | The data type of the connection property. |
Default | String | The default value if one is not explicitly set. |
Values | String | A comma-separated list of possible values. A validation error is thrown if another value is specified. |
Value | String | The value you set or a preconfigured default. |
Required | Boolean | Whether the property is required to connect. |
Category | String | The category of the connection property. |
IsSessionProperty | String | Whether the property is a session property, used to save information about the current connection. |
Sensitivity | String | The sensitivity level of the property. This informs whether the property is obfuscated in logging and authentication forms. |
PropertyName | String | A camel-cased truncated form of the connection property name. |
Ordinal | Int32 | The index of the parameter. |
CatOrdinal | Int32 | The index of the parameter category. |
Hierarchy | String | Shows dependent properties associated that need to be set alongside this one. |
Visible | Boolean | Informs whether the property is visible in the connection UI. |
ETC | String | Various miscellaneous information about the property. |
Describes the SELECT query processing that the Cloud can offload to the data source.
See SQL Compliance for SQL syntax details.
Below is an example data set of SQL capabilities. Some aspects of SELECT functionality are returned in a comma-separated list if supported; otherwise, the column contains NO.
Name | Description | Possible Values |
AGGREGATE_FUNCTIONS | Supported aggregation functions. | AVG, COUNT, MAX, MIN, SUM, DISTINCT |
COUNT | Whether COUNT function is supported. | YES, NO |
IDENTIFIER_QUOTE_OPEN_CHAR | The opening character used to escape an identifier. | [ |
IDENTIFIER_QUOTE_CLOSE_CHAR | The closing character used to escape an identifier. | ] |
SUPPORTED_OPERATORS | A list of supported SQL operators. | =, >, <, >=, <=, <>, !=, LIKE, NOT LIKE, IN, NOT IN, IS NULL, IS NOT NULL, AND, OR |
GROUP_BY | Whether GROUP BY is supported, and, if so, the degree of support. | NO, NO_RELATION, EQUALS_SELECT, SQL_GB_COLLATE |
OJ_CAPABILITIES | The supported varieties of outer joins supported. | NO, LEFT, RIGHT, FULL, INNER, NOT_ORDERED, ALL_COMPARISON_OPS |
OUTER_JOINS | Whether outer joins are supported. | YES, NO |
SUBQUERIES | Whether subqueries are supported, and, if so, the degree of support. | NO, COMPARISON, EXISTS, IN, CORRELATED_SUBQUERIES, QUANTIFIED |
STRING_FUNCTIONS | Supported string functions. | LENGTH, CHAR, LOCATE, REPLACE, SUBSTRING, RTRIM, LTRIM, RIGHT, LEFT, UCASE, SPACE, SOUNDEX, LCASE, CONCAT, ASCII, REPEAT, OCTET, BIT, POSITION, INSERT, TRIM, UPPER, REGEXP, LOWER, DIFFERENCE, CHARACTER, SUBSTR, STR, REVERSE, PLAN, UUIDTOSTR, TRANSLATE, TRAILING, TO, STUFF, STRTOUUID, STRING, SPLIT, SORTKEY, SIMILAR, REPLICATE, PATINDEX, LPAD, LEN, LEADING, KEY, INSTR, INSERTSTR, HTML, GRAPHICAL, CONVERT, COLLATION, CHARINDEX, BYTE |
NUMERIC_FUNCTIONS | Supported numeric functions. | ABS, ACOS, ASIN, ATAN, ATAN2, CEILING, COS, COT, EXP, FLOOR, LOG, MOD, SIGN, SIN, SQRT, TAN, PI, RAND, DEGREES, LOG10, POWER, RADIANS, ROUND, TRUNCATE |
TIMEDATE_FUNCTIONS | Supported date/time functions. | NOW, CURDATE, DAYOFMONTH, DAYOFWEEK, DAYOFYEAR, MONTH, QUARTER, WEEK, YEAR, CURTIME, HOUR, MINUTE, SECOND, TIMESTAMPADD, TIMESTAMPDIFF, DAYNAME, MONTHNAME, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, EXTRACT |
REPLICATION_SKIP_TABLES | Indicates tables skipped during replication. | |
REPLICATION_TIMECHECK_COLUMNS | A string array containing a list of columns which will be used to check for (in the given order) to use as a modified column during replication. | |
IDENTIFIER_PATTERN | String value indicating what string is valid for an identifier. | |
SUPPORT_TRANSACTION | Indicates if the provider supports transactions such as commit and rollback. | YES, NO |
DIALECT | Indicates the SQL dialect to use. | |
KEY_PROPERTIES | Indicates the properties which identify the uniform database. | |
SUPPORTS_MULTIPLE_SCHEMAS | Indicates if multiple schemas may exist for the provider. | YES, NO |
SUPPORTS_MULTIPLE_CATALOGS | Indicates if multiple catalogs may exist for the provider. | YES, NO |
DATASYNCVERSION | The CData Data Sync version needed to access this driver. | Standard, Starter, Professional, Enterprise |
DATASYNCCATEGORY | The CData Data Sync category of this driver. | Source, Destination, Cloud Destination |
SUPPORTSENHANCEDSQL | Whether enhanced SQL functionality beyond what is offered by the API is supported. | TRUE, FALSE |
SUPPORTS_BATCH_OPERATIONS | Whether batch operations are supported. | YES, NO |
SQL_CAP | All supported SQL capabilities for this driver. | SELECT, INSERT, DELETE, UPDATE, TRANSACTIONS, ORDERBY, OAUTH, ASSIGNEDID, LIMIT, LIKE, BULKINSERT, COUNT, BULKDELETE, BULKUPDATE, GROUPBY, HAVING, AGGS, OFFSET, REPLICATE, COUNTDISTINCT, JOINS, DROP, CREATE, DISTINCT, INNERJOINS, SUBQUERIES, ALTER, MULTIPLESCHEMAS, GROUPBYNORELATION, OUTERJOINS, UNIONALL, UNION, UPSERT, GETDELETED, CROSSJOINS, GROUPBYCOLLATE, MULTIPLECATS, FULLOUTERJOIN, MERGE, JSONEXTRACT, BULKUPSERT, SUM, SUBQUERIESFULL, MIN, MAX, JOINSFULL, XMLEXTRACT, AVG, MULTISTATEMENTS, FOREIGNKEYS, CASE, LEFTJOINS, COMMAJOINS, WITH, LITERALS, RENAME, NESTEDTABLES, EXECUTE, BATCH, BASIC, INDEX |
PREFERRED_CACHE_OPTIONS | A string value specifies the preferred cacheOptions. | |
ENABLE_EF_ADVANCED_QUERY | Indicates if the driver directly supports advanced queries coming from Entity Framework. If not, queries will be handled client side. | YES, NO |
PSEUDO_COLUMNS | A string array indicating the available pseudo columns. | |
MERGE_ALWAYS | If the value is true, The Merge Mode is forcibly executed in Data Sync. | TRUE, FALSE |
REPLICATION_MIN_DATE_QUERY | A select query to return the replicate start datetime. | |
REPLICATION_MIN_FUNCTION | Allows a provider to specify the formula name to use for executing a server side min. | |
REPLICATION_START_DATE | Allows a provider to specify a replicate startdate. | |
REPLICATION_MAX_DATE_QUERY | A select query to return the replicate end datetime. | |
REPLICATION_MAX_FUNCTION | Allows a provider to specify the formula name to use for executing a server side max. | |
IGNORE_INTERVALS_ON_INITIAL_REPLICATE | A list of tables which will skip dividing the replicate into chunks on the initial replicate. | |
CHECKCACHE_USE_PARENTID | Indicates whether the CheckCache statement should be done against the parent key column. | TRUE, FALSE |
CREATE_SCHEMA_PROCEDURES | Indicates stored procedures that can be used for generating schema files. |
The following query retrieves the operators that can be used in the WHERE clause:
SELECT * FROM sys_sqlinfo WHERE Name = 'SUPPORTED_OPERATORS'
Note that individual tables may have different limitations or requirements on the WHERE clause; refer to the Data Model section for more information.
Name | Type | Description |
NAME | String | A component of SQL syntax, or a capability that can be processed on the server. |
VALUE | String | Detail on the supported SQL or SQL syntax. |
Returns information about attempted modifications.
The following query retrieves the Ids of the modified rows in a batch operation:
SELECT * FROM sys_identity
Name | Type | Description |
Id | String | The database-generated Id returned from a data modification operation. |
Batch | String | An identifier for the batch. 1 for a single operation. |
Operation | String | The result of the operation in the batch: INSERTED, UPDATED, or DELETED. |
Message | String | SUCCESS or an error message if the update in the batch failed. |
The connection string properties are the various options that can be used to establish a connection. This section provides a complete list of the options you can configure in the connection string for this provider. Click the links for further details.
For more information on establishing a connection, see Establishing a Connection.
Property | Description |
APIKey | The API key used for accessing your ShipStation account. |
APISecret | The API secret used for accessing your ShipStation account. |
Property | Description |
SSLServerCert | The certificate to be accepted from the server when connecting using TLS/SSL. |
Property | Description |
Verbosity | The verbosity level that determines the amount of detail included in the log file. |
Property | Description |
BrowsableSchemas | This property restricts the schemas reported to a subset of the available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC. |
Property | Description |
MaxRows | Limits the number of rows returned when no aggregation or GROUP BY is used in the query. This takes precedence over LIMIT clauses. |
PseudoColumns | This property indicates whether or not to include pseudo columns as columns to the table. |
Timeout | The value in seconds until the timeout error is thrown, canceling the operation. |
The API key used for accessing your ShipStation account.
string
""
The API key can be found by navigating to Account -> API Settings -> API Keys.
The API secret used for accessing your ShipStation account.
string
""
The API secret can be found by navigating to Account -> API Settings -> API Secret.
This section provides a complete list of the SSL properties you can configure in the connection string for this provider.
Property | Description |
SSLServerCert | The certificate to be accepted from the server when connecting using TLS/SSL. |
The certificate to be accepted from the server when connecting using TLS/SSL.
string
""
If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine is rejected.
This property can take the following forms:
Description | Example |
A full PEM Certificate (example shortened for brevity) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
A path to a local file containing the certificate | C:\cert.cer |
The public key (example shortened for brevity) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
The MD5 Thumbprint (hex values can also be either space or colon separated) | ecadbdda5a1529c58a1e9e09828d70e4 |
The SHA1 Thumbprint (hex values can also be either space or colon separated) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
If not specified, any certificate trusted by the machine is accepted.
Use '*' to signify to accept all certificates. Note that this is not recommended due to security concerns.
This section provides a complete list of the Logging properties you can configure in the connection string for this provider.
Property | Description |
Verbosity | The verbosity level that determines the amount of detail included in the log file. |
The verbosity level that determines the amount of detail included in the log file.
string
"1"
The verbosity level determines the amount of detail that the Cloud reports to the Logfile. Verbosity levels from 1 to 5 are supported. These are detailed in the Logging page.
This section provides a complete list of the Schema properties you can configure in the connection string for this provider.
Property | Description |
BrowsableSchemas | This property restricts the schemas reported to a subset of the available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC. |
This property restricts the schemas reported to a subset of the available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC.
string
""
Listing the schemas from databases can be expensive. Providing a list of schemas in the connection string improves the performance.
This section provides a complete list of the Miscellaneous properties you can configure in the connection string for this provider.
Property | Description |
MaxRows | Limits the number of rows returned when no aggregation or GROUP BY is used in the query. This takes precedence over LIMIT clauses. |
PseudoColumns | This property indicates whether or not to include pseudo columns as columns to the table. |
Timeout | The value in seconds until the timeout error is thrown, canceling the operation. |
Limits the number of rows returned when no aggregation or GROUP BY is used in the query. This takes precedence over LIMIT clauses.
int
-1
Limits the number of rows returned when no aggregation or GROUP BY is used in the query. This takes precedence over LIMIT clauses.
This property indicates whether or not to include pseudo columns as columns to the table.
string
""
This setting is particularly helpful in Entity Framework, which does not allow you to set a value for a pseudo column unless it is a table column. The value of this connection setting is of the format "Table1=Column1, Table1=Column2, Table2=Column3". You can use the "*" character to include all tables and all columns; for example, "*=*".
The value in seconds until the timeout error is thrown, canceling the operation.
int
60
If Timeout = 0, operations do not time out. The operations run until they complete successfully or until they encounter an error condition.
If Timeout expires and the operation is not yet complete, the Cloud throws an exception.