CData Cloud は、クラウドホスト型のソリューションで、複数の標準サービスやプロトコルにまたがるBigCommerce へのアクセスを実現します。MySQL またはSQL Server データベースに接続できるアプリケーションであれば、CData Cloud を介してBigCommerce に接続できます。
CData Cloud により、他のOData エンドポイントや標準SQL Server / MySQL データベースと同じように、BigCommerce への接続を標準化し、構成することができます。
このページでは、CData Cloud でのBigCommerce への接続の確立 のガイド、利用可能なリソースに関する情報、および使用可能な接続プロパティのリファレンスについて説明します。
接続の確立 は、CData Cloud にデータベースを作成するためのBigCommerce への認証方法と必要な接続プロパティの設定方法について示します。
利用可能な標準サービスを経由してBigCommerce からデータにアクセスする方法と、CData Cloud の管理については、CData Cloud ドキュメント で詳しく説明します。
Database タブで対応するアイコンを選択して、BigCommerce に接続します。必須プロパティはSettings にリストされています。Advanced タブには、通常は必要ない接続プロパティが表示されます。
BigCommerce 認証は標準のOAuth フローに基づいています。
BigCommerce Store に接続するには、StoreId が必要です。Store Id を確認するには、以下の手順に従ってください。
加えて、自分のデータをテストおよびアクセスするには、個人用トークンを取得する必要があります。個人用トークンを取得する方法は次のとおりです。
アクセストークンの生成
BigCommerce アカウントのUI から直接OAuthAccessToken を取得する場合は:
新しく作成したアプリのアクセストークン、およびStore Id が画面に表示されます。 これらの資格情報にアクセスできるのはこの時だけなので、必ずコピーしてください。 これらの資格情報を使用し、以下の接続プロパティを設定してBigCommerce に接続できます。
BigCommerce のStore Id の確認方法について、詳しくは「接続の確立」を参照してください。
これらのすべてのケースでAuthScheme をOAUTH に設定する必要があります。以下のセクションは、すでに設定済みであることを前提として書かれています。
アプリの作成は単一のOAuthAccess トークンを生成するより複雑ですが、複数のクライアントに接続またはアクセスを許可する設計のクライアント統合や、複数のユーザーによって個別に承認されるアプリを作成する管理シナリオでは、より望ましい場合があります。
下記の手順に従って、カスタムOAuth アプリの資格情報を使用して認証します。詳しくは前述の「アクセストークンの生成」を参照してください。
OAuth アクセストークンの取得
次のプロパティを設定して、接続してください。
ヘッドレスマシンのユーザーアカウントでOAuth を使用するようにドライバーを設定するには、インターネットブラウザに対応した別の端末で認証する必要があります。
オプション1:Verifier code を取得および交換
Verifier code を取得するには、OAuth Authorization URL で認証する必要があります。
インターネットブラウザに対応したマシンから認証してOAuthVerifier 接続プロパティを取得する方法は次のとおりです。
ヘッドレスマシンでは、次の接続プロパティを設定してOAuth 認証値を取得します。
OAuth 設定ファイルが生成されたら、以下のように接続プロパティをリセットする必要があります。
オプション2:OAuth 設定を転送
ヘッドレスマシンでの接続に先立ち、インターネットブラウザに対応したデバイスでドライバーとの接続を作成し、インストールする必要があります。上述の「デスクトップアプリケーション」の説明に従って、接続プロパティを設定します。
「デスクトップアプリケーション」の手順が完了すると、生成された認証値は、OAuthSettingsLocation で指定された場所に暗号化されて書き込まれます。デフォルトのファイル名はOAuthSettings.txt です。
接続が正常にテストされたら、OAuth 設定ファイルをヘッドレスマシンにコピーします。
ヘッドレスマシンで、次の接続プロパティを設定し、データに接続します。
デフォルトでは、Cloud はサーバーとのTLS のネゴシエーションを試みます。サーバー証明書は、デフォルトのシステム信頼済み証明書ストアで検証されます。SSLServerCert 接続プロパティを使用して、証明書の検証方法をオーバーライドできます。
別の証明書を指定するには、SSLServerCert 接続プロパティを参照してください。
HTTP プロキシへの認証には、以下のように設定します。
次のプロパティを設定します。
このセクションでは、利用可能なAPI オブジェクトを示し、BigCommerce API へのSQL の実行について詳しく説明します。
BigCommerce からのデータへの読み取りまたは書き込みアクセスには、事前定義されたテーブル およびビュー を使用できます。
Cloud を使用すると、BigCommerce オブジェクトをリストし、ストアドプロシージャ を介してデータをダウンロード/アップロードできます。
システムテーブル には、データベースに属するオブジェクトとリソースに関する情報が含まれています。
Cloud はBigCommerce のデータを、標準のSQL ステートメントを使用してクエリできるリレーショナルデータベースのテーブルのリストとしてモデル化します。
| Name | Description |
| Brands | Gets the collection of brands. |
| Categories | Returns Product Categories. |
| ChannelListings | Returns a list of all Channel Listings for a specific channel |
| Channels | GET,CREATE,UPDATE Channels |
| Coupons | Create,list,update or delete coupons. |
| Currencies | Returns data from Currencies table. |
| CustomerAddresses | Returns a list of Customer Addresses. Returns the addresses belonging to a customer. |
| Customers | Returns data from Customers table. |
| OrderItems | Returns Items ordered for every order. |
| Orders | Returns data from Orders table. |
| OrderShipments | Returns shipments and their corresponding orders. |
| PriceListRecords | Returns a collection of price List records |
| PriceLists | Returns a collection of price records |
| ProductImages | Returns images registered for products. |
| ProductMetafields | Returns a list of Product Metafields. |
| ProductOptions | Returns data from Products table. |
| ProductOptionValues | Returns data from Products table. |
| ProductReviews | Returns reviews registered for products. |
| Products | Returns data from products table. |
| ProductVariants | Returns data from Products table. |
| ShippingMethods | Lists all shipping methods. |
| ShippingZones | Lists all shipping zones. |
Gets the collection of brands.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM Brands WHERE Id = 1 SELECT * FROM Brands WHERE Id >= 1 AND Id <= 5
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
The id of the brand. | |
| Name | String | False |
The name of the brand. Must be unique. | |
| PageTitle | String | False |
The title shown in the browser while viewing the brand. | |
| MetaKeywords | String | False |
Comma-separated list of meta keywords to include in the HTML. | |
| MetaDescription | String | False |
A meta description to include. | |
| ImageFile | String | False |
A valid image. | |
| SearchKeywords | String | False |
A comma-separated list of keywords that can be used to locate this brand. |
Returns Product Categories.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM Categories WHERE Id = 18 SELECT * FROM Categories WHERE Id >= 18 AND Id <= 25 SELECT * FROM Categories WHERE Name = "test"
To insert a new Categories, you need to specify at least the following columns: ParentId,Name, and Description.
INSERT INTO Categories (ParentId,Name,Description) VALUES (27,'Car Interior121', 'Accessories for testing car.')
UPDATE Categories SET Description='Testing123' where id=18
DELETE FROM Categories WHERE Id = 18
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
The Id of this product category. | |
| ParentId | Integer | False |
Categories.Id |
The Id of the category. |
| Name | String | False |
Name of the this category. | |
| Description | String | False |
System name of the type of order status. | |
| Views | Integer | False |
Number of views the category has on the storefront. | |
| SortOrder | Integer | False |
Priority this category will be given when included in the menu and category pages. | |
| PageTitle | String | False |
Custom title for the category page. | |
| MetaKeywords | String | False |
Custom meta keywords for the category page. | |
| MetaDescription | String | False |
Custom meta description for the category page. | |
| LayoutFile | String | False |
A valid layout file. | |
| ImageUrl | String | False |
Image URL used for this category on the storefront. | |
| IsVisible | Boolean | False |
Flag to determine whether the product should be displayed to customers browsing the store. | |
| SearchKeywords | String | False |
A comma-separated list of keywords that can be used to locate the category when searching the store. | |
| DefaultProductSort | String | False |
Determines how the products are sorted on category page load. | |
| UrlPath | String | False |
URL Path. | |
| IsCustomized | Boolean | False |
Flag to determine whether the url is customized. |
Returns a list of all Channel Listings for a specific channel
The Cloud uses the BigCommerce API to process WHERE clause conditions built with the following columns and operators:
ChannelId or (ChannelId and ListingId) are required for SELECT.
The rest of the filter is executed client-side within the Cloud.
For example, the following queries are processed server-side:
SELECT * FROM ChannelListings WHERE ChannelId = 667159 AND ListingId = 882998595
To insert a new ChannelListings, you need to specify at least the following columns: Productid, State, Variants, ChannelId and Name.
INSERT INTO ChannelListings (Productid, State, Variants, ChannelId) VALUES (12345, 'active', 'test', 667159)
UPDATE ChannelListings SET name = 'Test' WHERE ChannelId = 667159
| Name | Type | ReadOnly | References | Description |
| Listingid [KEY] | Long | True |
The ID of the channel listing that has been created, returned, or updated | |
| ChannelId [KEY] | Integer | True |
Channels.Id |
The ID of the channel associated with this channel listing |
| Datecreated | Datetime | True |
Date on which the channel listing was first created | |
| Datemodified | Datetime | True |
Date on which the channel listing was most recently changed | |
| Name | String | False |
Name of the product for this channel listing specifically This is an optional field that can be used to override the product name in the catalog | |
| Description | String | True |
Description of the product for this channel listing specifically This is an optional field that can be used to override the product description in the catalog | |
| Productid | Integer | False |
The ID of the product associated with this channel listing | |
| State | String | False |
The state of the product assignment or channel listing | |
| Variants | String | False |
Product variant associated with the channel listing. |
疑似カラムフィールドを使用して、ユーザーは新しいレコードの作成時に必要な読み取り不可のフィールドを挿入できます。
| Name | Type | Description |
| ExternalId | Integer |
GET,CREATE,UPDATE Channels
The Cloud uses the BigCommerce API to process WHERE clause conditions built with Id, which supports the '=' operator.
The rest of the filter is executed client-side within the Cloud.
For example, the following queries are processed server-side:
SELECT * FROM Channels
To insert a new Channel, you need to specify at least the following columns: Name, Type, Platform, and Status.
INSERT INTO Channels (Type, Platform, Status, Name) VALUES ('pos', 'square', 'active', 'tests');
UPDATE Channels SET Name = 'tests' WHERE ID = 123
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
The ID of the channel. | |
| ConfigMetaAppId | Integer | False |
The unique id given to an app registered in DevTools | |
| sections | String | False |
If set, when the app is loaded within the control panel, the navigation sections will be directly embedded in the control panel navigation | |
| Datecreated | Datetime | True |
Date on which the channel was first create | |
| Datemodified | Datetime | True |
Date on which the channel was most recently changed | |
| Externalid | String | False |
Associated ID within a system / platform outside of BC | |
| Iconurl | String | False |
Link to the platform icon | |
| Isenabled | Boolean | False |
Channel with status of prelaunch, active, or connected will have is_enabled set to true. Channel with status of inactive, disconnected, archived, deleted, or terminated will have is_enabled set to false | |
| IslistableFromUi | Boolean | False |
Indicates if a channel can create listings from the BigCommerce UI. Default value for this field is based on the channel type and platform combination if not specified on create | |
| Isvisible | Boolean | False |
Indicates if a channel is visible within the BigCommerce merchant admin UI (control panel). If false, the channel will not show in Channel Manager nor in any channels dropdown throughout the UI. Default value for this field is true if not specified on create | |
| Name | String | False |
Name of the channel as it will appear to merchants in the control panel | |
| Platform | String | False |
The name of the platform for the channel channel platform and type must be a valid combination | |
| Status | String | False |
The status of the channel channel type, platform, and status must be a valid combination. terminated is not valid for Update or Insert requests | |
| Type | String | False |
The type of channel channel platform and type must be a valid combinations |
Create,list,update or delete coupons.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM Coupons WHERE Id = 1 SELECT * FROM Coupons WHERE Id >= 1 AND Id <= 5 SELECT * FROM Coupons WHERE Name = "test"
To insert a new Coupon, you need to specify at least the following columns: Name, Type, Code, Amount, AppliesToEntity and AppliesToIds.
INSERT INTO Coupons (Name, Type, Code, Amount, AppliesToEntity, AppliesToIds) VALUES ('CouponName', 'free_shipping', 'CN100', 500, 'products', '88, 80')
UPDATE Coupons SET Code = 'ABC' WHERE Id = 12
DELETE FROM Coupons WHERE Id = 16
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
The coupons ID. | |
| Name | String | False |
The name of the coupon. | |
| Type | String | False |
Type of the coupon. Must be one of per_item_discount,per_total_discount,shipping_discount,free_shipping or percentage_discount. 使用できる値は次のとおりです。per_item_discount, percentage_discount, per_total_discount, shipping_discount, free_shipping, promotion | |
| Amount | Decimal | False |
The discount to apply to an order, as either an amount or a percentage. | |
| MinPurchase | Decimal | False |
Specifies a minimum value that an order must have before the coupon can be applied to it. | |
| Expires | Datetime | False |
Specifies when a coupon expires. | |
| Enabled | Boolean | False |
If the coupon is enabled, this fields value is true; otherwise, false. | |
| Code | String | False |
The coupon code that customers uses to receive their discounts. | |
| AppliesToEntity | String | False |
What the discount applies to. Can be products or categories. | |
| AppliesToIds | String | False |
IDs of either the products or categories | |
| NumUses | Integer | True |
Number of times this coupon has been used. | |
| MaxUses | Integer | False |
Maximum number of times this coupon can be used. | |
| MaxUsesPerCustomer | Integer | False |
Maximum number of times each customer can use this coupon. | |
| DateCreated | Datetime | False |
Date Created | |
| ShippingMethods | String | False |
List of shipping-method names. | |
| RestrictedToCountries | String | False |
Countries where the coupon is restricted. |
Returns data from Currencies table.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM currencies where Id=1
To insert a new Currencies, you need to specify at least the following columns: Code,Name,ExchangeRate,Token,TokenLocation,DecimalToken,ThousandsToken, and DecimalPlaces.
INSERT INTO Currencies (Code,Name,ExchangeRate,Token,TokenLocation,DecimalToken,ThousandsToken,DecimalPlaces) VALUES ('EUR','Euro', '3.0','$','left','.',',','2')
UPDATE Currencies SET Name='Testing123' where id=2
DELETE FROM Currencies WHERE Id = 3
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
Id of the currency. | |
| IsDefault | Boolean | True |
Specifies whether this is the store's default currency. | |
| Code | String | False |
Three-letter ISO 4217 code for this currency. | |
| Name | String | False |
Name of this currency. | |
| ExchangeRate | Double | False |
Amount of this currency that is equivalent to one U.S. dollar. | |
| CountryIso | String | False |
Two-letter ISO Alpha-2 code. | |
| AutoUpdate | Boolean | False |
Whether to autoupdate currency data. | |
| TokenLocation | String | False |
Symbol for this currency. | |
| Token | String | False |
Name of the currency. | |
| DecimalToken | String | False |
Symbol used as the decimal separator in this currency. | |
| ThousandsToken | String | False |
Symbol used as the thousands separator in this currency. | |
| DecimalPlaces | Integer | False |
Number of decimal places to show for this currency. | |
| Enabled | Boolean | False |
Indicates If the currency is active on the store. | |
| IsTransactional | Boolean | False |
Indicates if the currency is set as transactional or not. False means display only currency. | |
| LastUpdated | Date | True |
Date the currency was last updated, created or modified. |
Returns a list of Customer Addresses. Returns the addresses belonging to a customer.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM CustomerAddresses WHERE Id = 1 SELECT * FROM CustomerAddresses WHERE CustomerId = 5
INSERT INTO CustomerAddresses (FirstName,LastName,Phone,City,PostalCode,Country,Address1,AddressType,StateOrProvince) VALUES ('test','test', '3000','test','12345','test','test','residential','Washington')
UPDATE CustomerAddresses SET FirstName='Testing123' where id=14
DELETE FROM CustomerAddresses WHERE Id = 3
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | False |
ID of this customer address. | |
| CustomerId | Integer | False |
ID of the associated customer. | |
| FirstName | String | False |
The customers first name. | |
| LastName | String | False |
The customers last name. | |
| Company | String | False |
The customers company name. | |
| Address1 | String | False |
The customers street address, line 1. | |
| Address2 | String | False |
The customers street address, line 2. | |
| City | String | False |
The customers city/town/suburb. | |
| StateOrProvince | String | False |
The customers state/province. | |
| PostalCode | String | False |
The customers ZIP or postal code. | |
| Country | String | False |
The customers country. Must be the full country name. | |
| CountryCode | String | False |
2-letter ISO Alpha-2 code for the customers country. | |
| Phone | String | False |
The customers phone number. | |
| AddressType | String | False |
The type of the address. |
Returns data from Customers table.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM Customers WHERE Id = 1 SELECT * FROM Customers where Company = 'DemoFirst' SELECT * FROM Customers where Email = '[email protected]' SELECT * FROM Customers where DateCreated > '2021-09-01 11:25:37.0' SELECT * FROM Customers where DateModified <= '2023-10-12 02:05:43.0'
To insert a new Coupon, you need to specify at least the following columns: FirstName,LastName,Email.
INSERT INTO Customers (FirstName,LastName,Email) VALUES ('Testing4321', 'Test','[email protected]')
UPDATE Customers SET FirstName='testing345' where Id=5075
DELETE FROM Customers WHERE Id = 16
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
Unique numeric ID of this customer. | |
| Company | String | False |
The name of the company for which the customer works. | |
| FirstName | String | False |
First name of the customer. | |
| LastName | String | False |
Last name of the customer. | |
| String | False |
Email address of the customer. | ||
| Phone | String | False |
Phone number of the customer. | |
| DateCreated | Datetime | True |
Date on which the customer registered from the storefront or was created in the control panel. | |
| DateModified | Datetime | True |
The date on which the customer was modified. | |
| CustomerGroup | Integer | False |
The group to which the customer belongs. | |
| Notes | String | False |
Store Owner notes on the customer. | |
| TaxExemptCategory | String | False |
Used to identify customers who fall into special sales-tax categories. | |
| StoreCreditAmounts | String | False |
Amount of Store Credit | |
| RegistrationIpAddress | String | False |
The IP address from which this customer was registered. | |
| AcceptsProductReviewAbandonedCartEmails | Boolean | False |
Whether the customer is signed up to receive product review emails, abandoned cart emails, or both. True if the customer is signed up for any of these. | |
| ForcePasswordReset | Boolean | True |
If true, this customer will be forced to change their password on their next login. | |
| ChannelIds | String | False |
Array of channel ids the Customer has access to. |
Returns Items ordered for every order.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM OrderItems WHERE Id = 1 SELECT * FROM OrderItems where OrderId=100
To insert an existing product to the OrderItems for a specified Order, order options for that table must be specified. For this reason, before inserting an existing product to the OrderItems, you need to populate a temporary OrderItemOptionValues table with the desired options for the selected product and use this table as a value for the LinkedOrderOptions Pseudo-Column during insertion:
INSERT INTO OrderItemOptionValues#TEMP (Id, Value) Values (117, 177); INSERT INTO OrderItemOptionValues#TEMP (Id, Value) Values (116, 176); INSERT INTO OrderItems (OrderId, ProductId, QuantityOrdered, LinkedOrderOptions) VALUES (1104, 960, 3, OrderItemOptionValues#TEMP)");
Note: The OrderItemOptionValue inserted to the temporary table must belong to the product that is being inserted into OrderItems. To verify this, check the ProductOptionValues table.
New, custom products, can be added to the OrderItems table as follows:
INSERT INTO OrderItems (OrderId, Name, CustomSKU, PriceIncTax, PriceExTax, QuantityOrdered) VALUES (1107, 'TSS Phone Case', 'PHC-232453', 6.55, 5.75, 1);
Note: OrderItems does not allow for UPDATEs or Deletes. Once items have been added to an order, they cannot be removed or modified.
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
Numeric ID of this product within this order. | |
| ProductId | Integer | False |
Products.Id |
Numeric ID of the product. |
| CustomSKU | String | False |
User defined product code/stock keeping unit (SKU). | |
| OrderId | Integer | False |
Orders.Id |
Numeric ID of the associated order. |
| Name | String | False |
The product name. | |
| PriceExTax | Decimal | False |
The price of the product, excluding tax. | |
| PriceIncTax | Decimal | False |
The price of the product, including tax. | |
| QuantityOrdered | Integer | False |
Quantity of the product ordered. | |
| QuantityShipped | Integer | True |
Quantity of the product shipped. | |
| TotalExtax | Decimal | True |
Total base price, excluding tax. | |
| TotalIncTax | Decimal | True |
Total base price, including tax. | |
| IsRefunded | Boolean | True |
Whether the product has been refunded. | |
| ExternalId | Integer | False |
ID of the order in another system. | |
| AppliedDiscounts | String | True |
Array of objects containing discounts applied to the product. | |
| BaseCostPrice | Decimal | False |
The product's cost price. | |
| BasePrice | Decimal | False |
The product�s base price. | |
| BaseTotal | Decimal | False |
Total base price. | |
| BaseWrappingCost | Decimal | False |
The value of the base wrapping cost. | |
| BinPickingNumber | Integer | False |
Bin picking number for the physical product. | |
| Brand | String | False |
The product's brand. | |
| ConfigurableFields | String | False |
The price of the product, excluding tax. | |
| CostPriceExTax | Decimal | False |
The product's cost price excluding tax. | |
| CostPriceIncTax | Decimal | False |
The product's cost price including tax. | |
| CostPriceTax | Decimal | False |
Tax applied to the product�s cost price. | |
| Depth | Decimal | False |
Depth of the product. | |
| DiscountedTotalIncTax | Decimal | False |
Represent the correct total amount of the line item after deducting all the discounts and including the tax. | |
| EbayItemId | String | False |
Item ID for this product on eBay. | |
| EbayTransactionId | String | False |
Transaction ID for this product on eBay. | |
| EventDate | String | False |
Date of the promotional event/scheduled delivery. | |
| EventName | String | False |
Name of promotional event/delivery date. | |
| FixedShippingCost | Decimal | False |
Fixed shipping cost for this product. | |
| FulfillmentSource | String | False |
The source of the fulfillment. | |
| GiftCertificateId | String | False |
ID of the associated gift certificate. | |
| Height | Decimal | False |
Height of the product | |
| IsBundledProduct | Boolean | False |
Whether this product is bundled with other products. | |
| NameCustomer | String | False |
The product name that is shown to customer in storefront. | |
| NameMerchant | String | False |
The product name that is shown to merchant in Control Panel. | |
| OptionSetId | Integer | False |
Numeric ID of the option set applied to the product. | |
| OrderAddressId | Integer | False |
Numeric ID of the associated order address. Value is 0 for items that are not fulfilled by a pickup method. | |
| OrderPickupMethodId | Integer | False |
ID of the pickup fulfillment method for this item. Default value is 0 when the item is not fulfilled by pickup method. | |
| ParentOrderProductId | Integer | False |
ID of a parent product. | |
| PriceTax | Decimal | False |
Amount of tax applied to a single product. | |
| RefundAmount | Decimal | False |
The amount to be refunded. | |
| ReturnId | Integer | False |
Numeric ID for the refund. | |
| TotalTax | Decimal | False |
Total tax applied to products. | |
| Type | String | False |
Type of product. 使用できる値は次のとおりです。physical, digital | |
| Upc | String | False |
Universal Product Code. Can be written to for custom products and catalog products. | |
| VariantId | Integer | False |
Products variant_id. | |
| Weight | Decimal | False |
Weight of the product. | |
| Width | Decimal | False |
Width of the product. | |
| WrappingCostExTax | Decimal | False |
The value of the wrapping cost, excluding tax. | |
| WrappingCostIncTax | Decimal | False |
The value of the wrapping cost, including tax. | |
| WrappingCostTax | Decimal | False |
Tax applied to gift-wrapping option. | |
| WrappingId | Integer | False |
The price of the product, excluding tax. | |
| WrappingMessage | String | False |
Message to accompany gift-wrapping option. | |
| WrappingName | String | False |
Name of gift-wrapping option. |
疑似カラムフィールドを使用して、ユーザーは新しいレコードの作成時に必要な読み取り不可のフィールドを挿入できます。
| Name | Type | Description |
| LinkedOrderOptions | String |
Column for the aggregate table name holding option values. |
Returns data from Orders table.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM Orders WHERE Id = 1 SELECT * FROM Orders where Id > 104 SELECT * FROM Orders where Id < 104 SELECT * FROM Orders where Id >= 104 SELECT * FROM Orders where Id <= 104
To insert a new Order, at least one order item is required to be attached to the INSERT query for this order. To do so, you can first populate a temporary OrderItems table with the desired items for the order you are about to create, and later using this table as a value for the LinkedProducts Pseudo-Columns during insertion:
INSERT INTO OrderItems#TEMP (ProductId, QuantityOrdered) VALUES (961, 4); INSERT INTO OrderItems#TEMP (ProductId, QuantityOrdered) VALUES (962, 3); INSERT INTO Orders (CustomerId, LinkedProducts, StatusId, ItemsTotal, ItemsShipped, PaymentMethod, OrderIsDigital, BillingFirstName, BillingLastName, BillingCompany, BillingCountry, BillingZip, BillingState, BillingEmail, BillingPhone) VALUES (1, OrderItems#TEMP, 4, 6, 2, 'cash', 'true', 'TSS', 'Dev', 'London Corp.', 'United Kingdom', 23433, 'London', '[email protected]', '+355534445');
UPDATE Orders SET StaffNotes='Testing123' where id=103
DELETE FROM Orders WHERE Id = 3
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
The Id of the order. | |
| CustomerId | String | False |
Customers.Id |
The Id of the customer assigned to this order. |
| DateCreated | Datetime | True |
The date of creation for the order. | |
| DateModified | Datetime | True |
The last modification date of the order. | |
| DateShipped | Datetime | True |
The date of shipment for the order. | |
| StatusId | String | False |
The Id of the status for this order. | |
| CartId | String | True |
The Id of the cart from which this order is assigned. | |
| Status | String | True |
Order Statuses. | |
| TotalTax | String | True |
The total value of the order. | |
| SubtotalTax | String | True |
The value for subtotal tax. | |
| SubtotalExTax | Decimal | False |
The value for subtotal, excluding tax. | |
| SubtotalIncTax | Decimal | False |
The value for subtotal, including tax. | |
| ShippingCostExTax | Decimal | False |
The value of shipping cost, excluding tax. | |
| ShippingCostIncTax | Decimal | False |
The value of shipping cost, including tax. | |
| HandlingCostExTax | Decimal | False |
The value of handling cost, excluding tax. | |
| HandlingCostIncTax | Decimal | False |
The value of handling cost, including tax. | |
| IpAddress | String | False |
IPv4 Address of the customer, if known. | |
| WrappingCostExTax | Decimal | False |
The value of wrapping cost, excluding tax. | |
| WrappingCostIncTax | Decimal | False |
The value of wrapping cost, including tax. | |
| TotalExTax | Decimal | False |
The total value of the order, excluding tax. | |
| TotalIncTax | Decimal | False |
The total value of the order, including tax. | |
| HandlingCostTax | String | True |
The value of handling cost. | |
| HandlingCostTaxClassId | Integer | True |
The Id of handling cost. | |
| ShippingCostTax | String | True |
The value of shipping cost. | |
| ItemsTotal | Integer | False |
The total number of items in the order. | |
| ItemsShipped | Integer | False |
The total number of items that have been shipped. | |
| PaymentMethod | String | False |
The payment method for this order. | |
| PaymentProviderId | String | False |
The external Transaction ID/Payment ID within this order's payment provider (if a payment provider was used). | |
| PaymentStatus | String | True |
The payment status for this order. | |
| RefundedAmount | Decimal | False |
The amount refunded from this transaction. | |
| GiftCertificateAmount | String | True |
Gift Certificate Amount. | |
| CurrencyId | String | True |
Currencies. Id |
The ID of the currency being used in this transaction. |
| CurrencyCode | String | True |
The currency code of the display currency. | |
| CurrencyExchangeRate | String | True |
The exchange rate between the default currency and display currency of store. | |
| DefaultCurrencyId | String | True |
Currencies.Id |
The ID of the default currency for the store. |
| DefaultCurrencyCode | String | False |
The currency code of the transactional currency the shopper pays in. | |
| StaffNotes | String | False |
Any additional notes for staff. | |
| CustomerMessage | String | False |
Message that the customer entered. | |
| DiscountAmt | Decimal | False |
Amount of discount for this transaction. | |
| EbayOrderId | String | False |
Ebay order number if order is placed through Ebay. | |
| GeoIpCountryIso2 | String | False |
The country where the customer made the purchase, in ISO2 format. | |
| ShippingAddressCount | Integer | True |
The number of shipping addresses associated with this transaction. | |
| CouponDiscount | String | True |
Discount of the coupon. | |
| OrderSource | String | True |
Source of the order. | |
| IsDeleted | Boolean | True |
Indicates whether the order was deleted (archived). | |
| OrderIsDigital | Boolean | False |
Indicates whether this is an order for digital products. | |
| ExternalSource | String | False |
A value identifying the system used to generate the order (for orders submitted or modified via the API). | |
| ExternalId | String | False |
ID of the order in another system. | |
| ExternalMerchantId | String | False |
Id of the external merchant. | |
| ChannelId | String | False |
Shows where the order originated. | |
| TaxProviderId | String | False |
BasicTaxProvider - Tax is set to manual; AvaTaxProvider - This is for when the tax provider has been set to automatic and the order was NOT created by the API; (blank) - When the tax provider is unknown. | |
| ProductsUrl | String | False |
Url of the products. | |
| ProductsResource | String | False |
Resource of the products. | |
| BillingFirstName | String | False |
Addressee first name. | |
| BillingLastName | String | False |
Addressee last name. | |
| BillingCompany | String | False |
Addressee company. | |
| BillingStreet1 | String | False |
Street address (first line). | |
| BillingStreet2 | String | False |
Street address (second line). | |
| BillingCity | String | False |
Addressee city | |
| BillingZip | String | False |
ZIP or postal code | |
| BillingCountry | String | False |
Addressee's country | |
| BillingCountryIso2 | String | False |
Addressee's country code | |
| BillingState | String | False |
The name of the state or province. Should be spelled out in full, for example, California. | |
| BillingEmail | String | False |
Recipient's email address. | |
| BillingPhone | String | False |
Recipient's telephone number. | |
| BaseHandlingCost | String | False |
The value of the base handling cost. | |
| BaseShippingCost | String | False |
The value of the base shipping cost. | |
| BaseWrappingCost | String | False |
The value of the base wrapping cost. |
疑似カラムフィールドを使用して、ユーザーは新しいレコードの作成時に必要な読み取り不可のフィールドを挿入できます。
| Name | Type | Description |
| LinkedProducts | String |
Column for the aggregate table name holding order products. |
Returns shipments and their corresponding orders.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM OrderShipments WHERE Id = 1 SELECT * FROM OrderShipments where OrderId=1428
To insert a new Order Shipment, at least one Shipment Item is required to be attached to the INSERT query. For this reason, you can first populate a temporary ShipmentItems table with the desired items for the shipment you are about to create, and later using this table as a value for the LinkedProducts Pseudo-Columns during insertion:
INSERT INTO ShipmentItems#TEMP (Id, Quantity) VALUES (2519, 1); INSERT INTO OrderShipments (OrderId, OrderAddressId, LinkedProducts) VALUES (1106, 1007, ShipmentItems#TEMP);
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
Numeric ID of this shipment within this order. | |
| OrderId | 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. |
疑似カラムフィールドを使用して、ユーザーは新しいレコードの作成時に必要な読み取り不可のフィールドを挿入できます。
| Name | Type | Description |
| LinkedProducts | String |
Column for the aggregate table name holding order products. |
Returns a collection of price List records
The Cloud uses the BigCommerce API to process WHERE clause conditions built with the following columns and operators:
PriceListId or (PriceListId and VariantId and Currency) are required for select.
The rest of the filter is executed client-side within the Cloud.
For example, the following queries are processed server-side:
SELECT * FROM PriceListRecords WHERE PriceListId IN (SELECT Id FROM PriceLists) SELECT * FROM PriceListRecords WHERE PriceListId = 1 SELECT * FROM PriceListRecords WHERE PriceListId = 1 AND SalePrice = 23 SELECT * FROM PriceListRecords WHERE PriceListId = 1 AND MapPrice = 17.99 SELECT * FROM PriceListRecords WHERE PriceListId = 1 AND VariantId = 361 AND Currency = 'USD'
To Update a new PriceListRecord, you need to specify at least the following columns:VariantId, Currency, Price, PriceListId
INSERT INTO PriceListRecords#TEMP (VariantId, Currency, Price, SalePrice, PriceListId) VALUES (361, 'USD', 27, 23, 1) INSERT INTO PriceListRecords#TEMP (VariantId, Currency, Price, SalePrice, PriceListId) VALUES (362, 'USD', 28, 24, 1) UPDATE PriceListRecords (VariantId, Currency, Price, SalePrice) SELECT VariantId, Currency, Price, SalePrice FROM PriceListRecords#TEMP
Bulk Update Using Aggregates.
INSERT INTO PriceListRecords#TEMP (VariantId, Currency, Price, SalePrice, PriceListId, BulkPricingTiers) VALUES (361, 'USD', 27, 23, 1,
'{
\"quantity_min\": 10,"
\"quantity_max\" : 12,"
\"type\" : \"percent\","
\"amount\": 1
}'
UPDATE PriceListRecords ( VariantId, Currency, Price, SalePrice, BulkPricingTiers) SELECT VariantId, Currency, Price, SalePrice, BulkPricingTiers FROM PriceListRecords#TEMP
| Name | Type | ReadOnly | References | Description |
| CalculatedPrice | Double | True |
The price of the variant as seen on the storefront if a price record is in effect | |
| DateCreated | Datetime | True |
The date of creation for the Price Entry. | |
| DateModified | Datetime | True |
The last modification date of the Price Entry. | |
| ProductId | Integer | True |
The id of the Product this Price Record's variant_id is associated with. | |
| PriceListId [KEY] | Integer | True |
The Price List ID with which this price set is associated | |
| VariantId [KEY] | Integer | False |
The variant with which this price set is associated. | |
| Sku | String | False |
The variant with which this price set is associated | |
| Currency [KEY] | String | False |
The 3-letter currency code with which this price set is associated | |
| Price | Double | False |
The list price for the variant mapped in a Price List | |
| SalePrice | Double | False |
The sale price for the variant mapped in a Price List | |
| RetailPrice | Double | False |
The retail price for the variant mapped in a Price List | |
| MapPrice | Double | False |
The MAP (Manufacturers Advertised Price) for the variant mapped in a Price List | |
| BulkPricingTiers | Integer | False |
The minimum quantity of associated variant in the cart needed to qualify for this tiers pricing | |
| QuantityMin | Integer | False |
The minimum quantity of associated variant in the cart needed to qualify for this tiers pricing | |
| QuantityMax | Integer | False |
The maximum allowed quantity of associated variant in the cart to qualify for this tiers pricing. | |
| QuantityType | String | False |
The type of adjustment that is made. | |
| QuantityAmount | Double | False |
The maximum allowed quantity of associated variant in the cart to qualify for this tiers pricing. |
Returns a collection of price records
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM PriceLists WHERE Id = 1 SELECT * FROM PriceLists WHERE DateCreated = '2021-05-26' SELECT * FROM PriceLists WHERE DateModified = '2021-05-26' SELECT * FROM PriceLists WHERE Name LIKE 'Wholesale group1'
To insert a new PriceList, you need to specify the following columns: Name and Active
INSERT INTO PriceLists (Name, Active) VALUES ('Wholesalegroup', false)
To Update the PriceList, you need to specify the following columns: Name and ID
UPDATE PriceLists SET Name = 'Wholesalegroup' WHERE Id = '4'
To Delete the PriceList, you need to specify the following columns:ID
DELETE From PriceLists WHERE Id = '4'
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
ID of the PriceList. | |
| Active | Boolean | False |
The status of the PriceList. | |
| DateCreated | Datetime | True |
The date of creation for the PriceList. | |
| DateModified | Datetime | True |
The last modification date of the PriceList. | |
| Name | String | False |
The name of the PriceList. |
Returns images registered for products.
SELECT * FROM ProductImages
There are two alternatives to inserting new product images for BigCommerce, ImageFile and ImageUrl.
To insert a new Product Image using ImageFile, you only need the ProductId and the local path of your ImageFile written as a string using forward slashes as directory separators. BigCommerce does not allow for additional parameters when inserting an image using ImageFile. Trying to do so, will return an error.
INSERT INTO ProductImages (ProductId, ImageFile) VALUES (963, 'C:/dev/tests/v19/ProviderBigCommerce/DDHU.jpg');
In addition to using ImageFiles, you can add Product Images by using ImageUrl-s of images on the Web. When inserting by ImageUrl-s, you can add additional fields to your query such as Description, SortOrder, and IsThumbnail..
INSERT INTO ProductImages (ProductId, ImageUrl) VALUES (955, 'http://oi50.tinypic.com/kexbfq.jpg');
UPDATE ProductImages SET Description='Testing123' where Id=265
DELETE FROM ProductImages WHERE Id = 3
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | False |
The Id of the image. | |
| ProductId [KEY] | Integer | False |
Products.Id |
The Id of the corresponding product. |
| ImageFile | String | False |
The local path to the original image file uploaded to BigCommerce. | |
| StandardUrl | String | False |
Standard Image URL for the product. | |
| ThumbnailUrl | String | False |
The thumbnail URL for this image. By default, this is the image size used on the category page and in side panels. | |
| IsThumbnail | Boolean | False |
Flag for identifying whether the image is used as the product's thumbnail. | |
| SortOrder | Integer | False |
The order in which the image will be displayed on the product page. | |
| Description | String | False |
The description for the image. | |
| DateModified | Datetime | True |
The last modification date of the image. | |
| TinyUrl | String | False |
Tiny URL for the product. | |
| ZoomUrl | String | False |
Zoom URL for the product. |
疑似カラムフィールドを使用して、ユーザーは新しいレコードの作成時に必要な読み取り不可のフィールドを挿入できます。
| Name | Type | Description |
| ImageUrl | String |
The local path to the original image file to be uploaded to BigCommerce. |
Returns a list of Product Metafields.
The Cloud uses the BigCommerce API to process WHERE clause conditions built with Id and ProductId, which supports the '=' operator.
The rest of the filter is executed client-side within the Cloud.
For example, the following queries are processed server-side:
SELECT * FROM ProductMetafields where ProductId=77 SELECT * FROM ProductMetafields where ProductId=77 and Id=2
To insert a new ProductMetafields, you need to specify at least the following columns: ProductId, Description, Namespace, Key, Value, and PermissionSet.
Insert Into ProductMetafields(ProductId,Description,Namespace,Key,Value,PermissionSet) Values(88,test,Warehouse,location,88,app_only)
Update ProductMetafields Set Description ='updatedtest' where ProductId=77 and Id=3
Delete FROM ProductMetafields where ProductId=77 and Id=3
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
Unique ID of the Metafield. | |
| ProductId [KEY] | Integer | True |
Products.Id |
The Id of the corresponding product. |
| DateCreated | Datetime | True |
Date and time of the metafield?s creation. | |
| DateModified | Datetime | True |
Date and time when the metafield was last updated. | |
| Description | String | False |
Description for the metafields. | |
| Key | String | False |
The name of the field. | |
| Value | String | False |
The value of the field,must enter a JSON formatted string for ShipperHQ metafields. | |
| Namespace | String | False |
Namespace for the metafield, for organizational purposes. | |
| OwnerClientId | String | True |
ID of metafield's creator. | |
| PermissionSet | String | False |
Determines the visibility and writeability of the field by other API consumers.Must be one of app_only, read, write, read_and_sf_access or write_and_sf_access. 使用できる値は次のとおりです。app_only, read, write, read_and_sf_access, write_and_sf_access | |
| ResourceId | Integer | True |
The ID of the resource with which the metafield is associated. | |
| ResourceType | String | True |
The type of resource with which the metafield is associated. |
Returns data from Products table.
SELECT * FROM ProductOptions
To insert a new ProductOption, a set of OptionValues are required to be inserted along with it. This can be done by populating a temporary ProductOptionValues table with the desired values for the option you are creating, and later using this table as a value for the LinkedOptionValues Pseudo-Columns during insertion:
INSERT INTO ProductOptionValues#TEMP (Label, SortOrder, IsDefault) VALUES ('Classic', 0, true);
INSERT INTO ProductOptionValues#TEMP (Label, SortOrder, IsDefault) VALUES ('Elegance', 1, false);
INSERT INTO ProductOptionValues#TEMP (Label, SortOrder, IsDefault) VALUES ('Avantgarde', 2, false);
INSERT INTO ProductOptions (ProductId, DisplayName, Type, Name, SortOrder, LinkedOptionValues) VALUES (955, 'ModelSeries', 'dropdown', 'Series', 0, ProductOptionValues#TEMP);
UPDATE ProductOptions SET DisplayName='Testing123' where Id=109
DELETE FROM ProductOptions WHERE Id = 3
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
The ID of the option. | |
| ProductId [KEY] | Integer | True |
Products.Id |
The ID of the product. |
| DisplayName | String | False |
The name of the option shown on the storefront. | |
| Name | String | False |
The unique option name, auto-generated from the display name, a timestamp, and the product ID. | |
| Type | String | False |
The type of option, which determines how it will display on the storefront. Acceptable values: radio_buttons, rectangles, dropdown, product_list, product_list_with_images, swatch. | |
| SortOrder | Integer | False |
The order in which the option will be displayed on the product page. | |
| ConfigDefaultValue | String | False |
The default value. Shown on a date option as an ISO-8601�formatted string, or on a text option as a string. | |
| ConfigCheckedByDefault | Boolean | False |
Flag for setting the checkbox to be checked by default. | |
| ConfigCheckboxLabel | String | False |
Label displayed for the checkbox option. | |
| ConfigDateLimited | Boolean | False |
Flag to limit the dates allowed to be entered on a date option. | |
| ConfigDateLimitMode | String | False |
The type of limit that is allowed to be entered on a date option. 使用できる値は次のとおりです。earliest, range, latest | |
| ConfigDateEarliestValue | String | False |
The earliest date allowed to be entered on the date option, as an ISO-8601 formatted string. | |
| ConfigDateLatestValue | String | False |
The latest date allowed to be entered on the date option, as an ISO-8601 formatted string. | |
| ConfigFileTypesMode | String | False |
The kind of restriction on the file types that can be uploaded with a file upload option. Values: specific - restricts uploads to particular file types; all - allows all file types. 使用できる値は次のとおりです。specific, all | |
| ConfigFileTypesSupported | String | False |
The type of files allowed to be uploaded if the file_type_option is set to specific. | |
| ConfigFileTypesOther | String | False |
A list of other file types allowed with the file upload option. | |
| ConfigFileMaxSize | Integer | False |
The maximum size for a file that can be used with the file upload option. This will still be limited by the server. | |
| ConfigTextCharactersLimited | Boolean | False |
Flag to validate the length of a text or multi-line text input. | |
| ConfigTextMinLength | Integer | False |
The minimum length allowed for a text or multi-line text option. | |
| ConfigTextMaxLength | Integer | False |
The maximum length allowed for a text or multi line text option. | |
| ConfigTextLinesLimited | Boolean | False |
Flag to validate the maximum number of lines allowed on a multi-line text input. | |
| ConfigTextMaxLines | Integer | False |
The maximum number of lines allowed on a multi-line text input. | |
| ConfigNumberLimited | Boolean | False |
Flag to limit the value of a number option. | |
| ConfigNumberLimitMode | String | False |
The type of limit on values entered for a number option. 使用できる値は次のとおりです。lowest, highest, range | |
| ConfigNumberLowestValue | Integer | False |
The lowest allowed value for a number option if number_limited is true. | |
| ConfigNumberHighestValue | Integer | False |
The highest allowed value for a number option if number_limited is true. | |
| ConfigNumberIntegersOnly | Boolean | False |
Flag to limit the input on a number option to whole numbers only. | |
| ConfigProductListAdjustsInventory | Boolean | False |
Flag for automatically adjusting inventory on a product included in the list. | |
| ConfigProductListAdjustsPricing | Boolean | False |
Flag to add the optional product's price to the main product's price. | |
| ConfigProductListShippingCalc | String | False |
How to factor the optional product's weight and package dimensions into the shipping quote. 使用できる値は次のとおりです。none, weight, package |
疑似カラムフィールドを使用して、ユーザーは新しいレコードの作成時に必要な読み取り不可のフィールドを挿入できます。
| Name | Type | Description |
| LinkedOptionValues | String |
Column for the aggregate table name holding option values. |
Returns data from Products table.
SELECT * FROM ProductOptionValues
To insert a new ProductOptionValues, you need to specify at least the following columns: ProductId, OptionId, Label, SortOrder, and any one among ValueDataImgUrl and ValueDataColors.
Inserting ProductOptionValues with ValueDataImgUrl.
INSERT INTO ProductOptionValues (OptionId,ProductId,Label, SortOrder,ValueDataImgUrl,ValueDataColors) VALUES ('143','77','testingexceptionfornow','2','https://cdn11.bigcommerce.com/s-dr2j9p39ga/product_images/attribute_value_images/357.preview.jpg?t=1696324267','#e35e22')
Inserting ProductOptionValues with ValueDataColors.
INSERT INTO ProductOptionValues (OptionId,ProductId,Label, SortOrder,ValueDataColors) VALUES ('143','77','toasting123','2','#e35e20')
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
The ID of the option value. | |
| OptionId [KEY] | Integer | True |
The ID of the option. | |
| ProductId [KEY] | Integer | True |
Products.Id |
The ID of the product. |
| Label | String | False |
The label of the option value shown on the storefront. | |
| IsDefault | Boolean | False |
Whether this option value is the default for this option. | |
| SortOrder | Integer | False |
The order in which the option value will be displayed on the product page. | |
| ValueDataColors | String | False |
The colors contained in the value data. | |
| ValueDataImgUrl | String | False |
The image url contained in the value data. |
Returns reviews registered for products.
SELECT * FROM ProductReviews
To insert a new ProductReviews, you need to specify at least the following columns: Title,Status, Id,ProductId,DateReviewed.
INSERT INTO ProductReviews (Title,Status, Id,ProductId,DateReviewed) VALUES ('Car Interior121', 'approved','6','103','2019-08-24T14:15:22Z')
UPDATE ProductReviews SET Title='Testing123' where Id=7
DELETE FROM ProductReviews WHERE Id = 16
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | False |
The Id of the review. | |
| ProductId [KEY] | Integer | True |
Products.Id |
The Id of the corresponding product. |
| Title | String | False |
Title of the review. | |
| Text | String | False |
Text content of the review. | |
| Status | String | False |
The status of the product review. Must be one of approved, disapproved, or pending. | |
| Rating | Integer | False |
The rating of the product review. Must be one of 0, 1, 2, 3, 4, or 5. | |
| String | False |
The email of the reviewer. Must be a valid email, or an empty string. | ||
| Name | String | False |
The name of the reviewer. | |
| DateCreated | Datetime | True |
The date of creation for the review. | |
| DateModified | Datetime | True |
The last modification date of the review. | |
| DateReviewed | Datetime | False |
Date the product was reviewed. |
Returns data from products table.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM Products WHERE Id > 5 AND Id < 10 SELECT * FROM Products WHERE IsVisible = "true" AND DateCreated >= "2020-01-01" AND DateCreated <= "2020-02-01"
To insert a new Product, you need to specify at least the following columns: Name, Type, Description, Price, Categories, Availability and Weight
INSERT INTO Products (Name, Type, Description, Price, Categories, Availability, Weight) VALUES ("Plain T-Shirt", "physical", "This is a test description", 29.99, 18, "available", 0.5)
Inserting Products with more than one Variants using Temp table or Aggregegates.
INSERT INTO ProductVariantValues#TEMP (Label, DisplayName, id) VALUES ('Blue', 'Color', 1)
INSERT INTO ProductVariantValues#TEMP (Label, DisplayName, id) VALUES ('Yellow', 'Color', 2)
INSERT INTO ProductVariants#TEMP (SKU, LinkedOptionValues, id) VALUES ('SKU-AB', 'ProductVariantValues#TEMP', 1)
INSERT INTO ProductVariants#TEMP (SKU, LinkedOptionValues, id) VALUES ('SKU-CD', 'ProductVariantValues#TEMP', 2)
INSERT INTO Products (Name, Type, Weight, Price, ProductVariants) VALUES ('BC-8', 'physical', 60, 5700, 'ProductVariants#TEMP')
INSERT INTO Products (Name, Type, Weight, Price, ProductVariants) VALUES ('BC-95', 'physical', 99, 5800, '[{"sku": "SKU-MM","option_values": [{"option_display_name": "Song","id": "1","label": "Mary"}]}, {"sku": "SKU-DE","option_values": [{"option_display_name": "Song","id": "2","label": "Jane"}]}]')
Inserting Products with one Variant
INSERT INTO ProductVariantValues#TEMP (Label, DisplayName) VALUES ('Blue', 'Color')
INSERT INTO ProductVariants#TEMP (SKU, LinkedOptionValues) VALUES ('SKU-AB', 'ProductVariantValues#TEMP')
INSERT INTO Products (Name, Type, Weight, Price, ProductVariants) VALUES ('BC-8', 'physical', 60, 5700, 'ProductVariants#TEMP')
INSERT INTO Update#TEMP (Description, id, name, sku, categories, RelatedProducts, MetaKeywords, IsCustomized, Url) VALUES ('my_details', '80', 'hello123', 'OTL', '19, 23', '1, 2', '"pqr", "xyz"', false, '/orbit-terrarium-large/'
INSERT INTO Update#TEMP (Description, id, name, sku, categories, RelatedProducts, MetaKeywords, IsCustomized, Url) VALUES ('my_details1', '86', 'example', 'ABS', '23, 21', '3, 4', '"abc", "an"', false, '/able-brewing-system/'
UPDATE products (Description, id, name, sku, categories, RelatedProducts, MetaKeywords, IsCustomized, Url) SELECT Description, id, name, sku, categories, RelatedProducts, MetaKeywords, IsCustomized, Url FROM Update#TEMP
Bulk Update Using Aggregates.
INSERT INTO Update#TEMP (Description, id, name, sku, categories, RelatedProducts, MetaKeywords, CustomUrl) VALUES ('details1', '77', 'name4456', 'SLCTBS', '23, 18', '10', '"abcd", "ab"',
'{
"is_customized": False,
"url" : "/fog-linen-chambray-towel-beige-stripe/"
}')
UPDATE products (Description, id, name, sku, categories, RelatedProducts, CustomUrl) SELECT Description, id, name, sku, categories, RelatedProducts, CustomUrl FROM Update#TEMP
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
The Id of the product. | |
| Name | String | False |
The product name. | |
| Type | String | False |
The product type. | |
| Sku | String | True |
User-defined product code/stock keeping unit (SKU) | |
| Description | String | False |
Product description, which can include HTML formatting. | |
| SearchKeywords | String | False |
A comma-separated list of keywords that can be used to locate the product when searching the store. | |
| AvailabilityDescription | String | False |
Availability text, displayed on the checkout page under the product title, telling the customer how long it will normally take to ship this product. | |
| Price | Decimal | False |
The products price. | |
| CostPrice | Decimal | False |
The products cost price. | |
| RetailPrice | Decimal | False |
The products retail cost. | |
| SalePrice | Decimal | False |
Sale price. | |
| MapPrice | Decimal | False |
Map price. | |
| ProductTaxCode | String | False |
Tax Codes. | |
| CalculatedPrice | Decimal | True |
Price as displayed to guests, adjusted for applicable sales and rules. | |
| SortOrder | Integer | False |
Priority to give this product when included in product lists on category pages and in search results. | |
| IsVisible | Boolean | False |
Flag to determine whether or not the product should be displayed to customers browsing. | |
| IsFeatured | Boolean | False |
Flag to determine whether the product should be included in the featured products panel for shoppers viewing the store. | |
| RelatedProducts | String | False |
Defaults to -1, which causes the store to automatically generate a list of related products. | |
| InventoryLevel | String | False |
Current inventory level of the product. | |
| InventoryWarningLevel | String | False |
Inventory Warning level for the product. | |
| Warranty | String | False |
Warranty information displayed on the product page. | |
| Weight | Decimal | False |
Weight of the product, which can be used when calculating shipping costs. | |
| Width | Decimal | False |
Width of the product, which can be used when calculating shipping costs. | |
| Height | Decimal | False |
Height of the product, which can be used when calculating shipping costs. | |
| Depth | Decimal | False |
Depth of the product, which can be used when calculating shipping costs. | |
| FixedCostShippingPrice | Decimal | False |
A fixed shipping cost for the product. | |
| IsFreeShipping | Boolean | False |
Flag used to indicate whether or not the product has free shipping. | |
| InventoryTracking | String | False |
The type of inventory tracking for the product. | |
| RatingTotal | Integer | False |
The total rating for the product. | |
| RatingCount | Integer | False |
The total number of ratings the product has had. | |
| ReviewsRatingSum | Integer | True |
The total (cumulative) rating for the product. | |
| ReviewsCount | Integer | True |
The number of times the product has been rated. | |
| TotalSold | Integer | False |
Total quantity of this product sold through transactions. | |
| DateCreated | Datetime | False |
The date of which the product was created. | |
| BrandId | Integer | True |
The products brand | |
| ViewCount | Integer | False |
The number of times the product has been viewed. | |
| PageTitle | String | False |
Custom title for the products page. | |
| MetaKeywords | String | False |
Custom meta keywords for the product page. | |
| MetaDescription | String | False |
Custom meta description for the product page. | |
| LayoutFile | String | False |
The layout template file used to render this product category. | |
| IsPriceHidden | Boolean | False |
The default false value indicates that this products price should be shown on the product page. | |
| PriceHiddenLabel | String | False |
By default, an empty string. If is_price_hidden is true, the value of price_hidden_label will be displayed instead of the price. | |
| Categories | Int[] | False |
An array of IDs for the categories this product belongs to. When updating a product, if an array of categories is supplied, then all product categories will be overwritten. | |
| DateModified | Datetime | False |
The date that the product was last modified. | |
| Condition | String | False |
The products condition. | |
| IsConditionShown | Boolean | False |
Flag used to determine whether the products condition will be shown to the customer on the product page. | |
| PreorderReleaseDate | Datetime | False |
Pre-order release date. | |
| IsPreorderOnly | Boolean | False |
If set to false, the product will not change its availability from preorder to available on the release date. | |
| PreorderMessage | String | False |
Custom expected-date message to display on the product page. | |
| OrderQuantityMinimum | Integer | False |
The minimum quantity an order must contain in order to purchase this product. | |
| OrderQuantityMaximum | Integer | False |
The maximum quantity an order can contain when purchasing the product. | |
| OpenGraphType | String | False |
Type of product. | |
| OpenGraphTitle | String | False |
Title of the product. If not specified, the products name will be used instead. | |
| OpenGraphDescription | String | False |
Description to use for the product. | |
| OpenGraphUseMetaDescription | Boolean | False |
Flag to determine if product description or open graph description is used. | |
| OpenGraphUseProductName | Boolean | False |
Flag to determine if product name or open graph name is used. | |
| OpenGraphUseImage | Boolean | False |
Flag to determine if product image or open graph image is used. | |
| IsOpenGraphThumbnail | Boolean | False |
If set to true, the product thumbnail image will be used as the open graph image. | |
| UPC | String | False |
The product UPC code, which is used in feeds for shopping comparison sites. | |
| GTIN | String | False |
Global Trade Item Number. | |
| OptionSetId | Integer | True |
The ID of the option set applied to the product. | |
| TaxClassId | Integer | True |
The ID of the tax class applied to the product. | |
| OptionSetDisplay | String | True |
The position on the product page where options from the option set will be displayed. | |
| BinPickingNumber | String | False |
The BIN picking number for the product. | |
| CustomUrl | String | False |
Custom URL (if set) overriding the structure dictated in the stores settings. | |
| CustomFields | String | False |
200 maximum custom fields per product. 255 maximum characters per custom field. | |
| ManufacturerPartNumber | String | False |
Manufacturer Part Number. | |
| IsCustomized | Boolean | False |
Returns true if the URL has been changed from its default state (the auto-assigned URL that BigCommerce provides. | |
| Url | String | False |
Product URL on the storefront. | |
| Availability | String | False |
Availability of the product. | |
| PrimaryImageId | Integer | True |
Id of the primary image. | |
| PrimaryImageProductId | Integer | True |
ProductId of the primary image. | |
| PrimaryImageIsThumbnail | Boolean | True |
Primary image Is Thumbnail or not. | |
| PrimaryImageSortOrder | String | True |
Sort Order of the primary image. | |
| PrimaryImageDescription | String | True |
Description of the primary image. | |
| PrimaryImageImageFile | String | True |
Image file of the primary image. | |
| PrimaryImageUrlZoom | String | True |
Zoom Url of the primary image. | |
| PrimaryImageStandardUrl | String | True |
Standard url of the primary image. | |
| PrimaryImageUrlThumbnail | String | True |
Thumbnail url of the primary image. | |
| PrimaryImageUrlTiny | String | True |
Tiny url of the primary image. | |
| PrimaryImageDateModified | Datetime | True |
Modified Date of the primary image. | |
| GiftWrappingOptionsType | String | True |
Type of gift-wrapping options. | |
| GiftWrappingOptionsList | String | True |
Type of gift-wrapping option IDs. | |
| BaseVariantId | String | True |
Base Variant Id. |
疑似カラムフィールドを使用して、ユーザーは新しいレコードの作成時に必要な読み取り不可のフィールドを挿入できます。
| Name | Type | Description |
| ProductVariants | String |
Variants of the Products |
Returns data from Products table.
SELECT * FROM ProductVariants
To create a new ProductVariant, a set of OptionValues are required to be inserted along with it. This can be done by populating a temporary ProductVariantValues table with the desired values for the option you are creating, and later using this table as a value for the LinkedOptionValues Pseudo-Columns during insertion:
INSERT INTO ProductVariantValues#TEMP (Id, OptionId, Label, DisplayName) VALUES (181, 118, 'Elegance', 'Series'); INSERT INTO ProductVariants (ProductId, LinkedOptionValues, SKU) VALUES (955, ProductVariantValues#TEMP, 'DSFMGG');
UPDATE ProductVariants SET Weight='23' where Id=64
DELETE FROM ProductVariants WHERE Id = 3
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
The ID of the product variant. | |
| ProductId [KEY] | Integer | True |
Products.Id |
The ID of the product. |
| SKU | String | False |
User defined product code/stock keeping unit (SKU). | |
| SKU_ID | String | False |
The ID for User defined product code/stock keeping unit (SKU). | |
| Price | Decimal | False |
The price of the product variant. The price should include or exclude tax, based on the store settings. | |
| CalculatedPrice | Integer | False |
The variant’s calculated price on the storefront. | |
| SalePrice | Integer | False |
The variant’s sale price on the storefront. | |
| RetailPrice | Integer | False |
The variant’s retail price on the storefront. | |
| MapPrice | Integer | False |
The Minimum Advertised Price. | |
| Weight | String | False |
This variant’s base weight on the storefront. If this value is null, the product’s default weight (set in the Product resource’s weight field) will be used as the base weight. | |
| Calculated_Weight | Integer | False |
The variant’s calculated weight on the storefront. | |
| Width | Long | False |
Width of the variant, which can be used when calculating shipping costs. | |
| Height | Long | False |
The Height of the variant, which can be used when calculating shipping costs. | |
| Depth | Long | False |
The Depth of the variant, which can be used when calculating shipping costs. | |
| Is_Free_Shipping | Boolean | False |
The Flag used to indicate whether the variant has free shipping. If true, the shipping cost for the variant will be zero. | |
| FixedCostShippingPrice | Integer | False |
The fixed shipping cost for the variant. If defined, this value will be used during checkout instead of normal shipping-cost calculation. | |
| Purchasing_Disabled | String | False |
Accepts AvaTax System Tax Codes, which identify products and services that fall into special sales-tax categories. | |
| Purchasing_Disabled_Message | String | False |
Accepts AvaTax System Tax Codes, which identify products and services that fall into special sales-tax categories. | |
| Image_Url | String | False |
The Image url for the variant. | |
| CostPrice | Integer | False |
The cost price of the variant. | |
| Upc | String | False |
The UPC code used in feeds for shopping comparison sites and external channel integrations. | |
| Mpn | String | False |
The Manufacturer Part Number (MPN) for the variant. | |
| Gtin | String | False |
The Global Trade Item Number. | |
| InventoryLevel | Integer | False |
The Inventory level for the variant, which is used when the product’s inventory_tracking is set to variant. | |
| InventoryWarningLevel | Integer | False |
The Inventory warning level for the product | |
| BinPickingNumber | String | False |
Identifies where in a warehouse the variant is located. | |
| LinkedOptionValues | String | False |
The Option Value Id. |
Lists all shipping methods.
The Cloud uses the BigCommerce 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.
For example, the following query is processed server-side:
SELECT * FROM ShippingMethods SELECT * FROM ShippingMethods WHERE ZoneId = 1 SELECT * FROM ShippingMethods WHERE ZoneId = 1 and Id = 1
To insert a new ShippingMethod, Name, Type, Settings and ZoneId are required to be inserted along with it. Settings has to be passed as a JSON Object.
INSERT INTO ShippingMethods (Name, Type, Enabled, ZoneId, HandlingFeesFixedSurcharge, Settings) VALUES ('Flat Rate 2', 'perorder', true, 1, 0, '{ "rate" : 7 }')
UPDATE ShippingMethods Set Name = 'Flat Rate 1', Type = 'perorder', Settings = '{ "rate" : 7 }', HandlingFeesPercentageSurcharge = 1 WHERE Id = 9 and ZoneId = 1
DELETE FROM ShippingMethods WHERE Id = 9 and ZoneId = 1
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
Shipping Method Id. | |
| Name | String | False |
Shipping Method name. | |
| Type | String | False |
Shipping Method type. | |
| Enabled | Boolean | False |
Minimum subtotal of the free shipping. | |
| HandlingFeesPercentageSurcharge | Decimal | False |
Percentage surcharge of the handling fee. | |
| HandlingFeesFixedSurcharge | Decimal | False |
Fixed surcharge of the handling fee. | |
| IsFallback | Boolean | True |
Whether or not this shipping zone is the fallback if all others are not valid for the order. | |
| Settings | String | False |
Shipping method settings. | |
| ZoneId | Integer | True |
The Shipping Zone Id |
Lists all shipping zones.
The Cloud uses the BigCommerce API to process WHERE clause conditions built with Id, which supports the '=' comparison.
The rest of the filter is executed client-side within the Cloud.
For example, the following query is processed server-side:
SELECT * FROM ShippingZones WHERE Id = 1
To insert a new ShippingZone, a set of Locations are required to be inserted along with it. This can be done by populating a temporary ShippingZoneLocations table with the desired values for the option you are creating, and later using this table as a value for the Locations column during insertion:
INSERT INTO ShippingZoneLocations#Temp (CountryIso2, Zip) values ('US', '11103')
INSERT INTO ShippingZones (Name, Type, locations) VALUES ('United States', 'zip', 'ShippingZoneLocations#Temp')
UPDATE ShippingZones SET Enabled=true WHERE Id = 7
DELETE FROM ShippingZones WHERE Id = 7
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
Zone Id. | |
| Name | String | False |
Zone name. | |
| Type | String | False |
Zone type. 使用できる値は次のとおりです。zip, country, state, global | |
| FreeShippingEnabled | Boolean | False |
Indicator if free shipping is enabled. | |
| FreeShippingMinimumSubTotal | Decimal | False |
Minimum subtotal of the free shipping. | |
| FreeShippingExcludeFixedShippingProducts | Boolean | False |
Indicator whether or not to exclude fixed shipping on products. | |
| HandlingFeesDisplaySeparately | Boolean | False |
Indicator whether or not to display the handling fees separately. | |
| HandlingFeesPercentageSurcharge | Decimal | False |
Percentage surcharge of the handling fee. | |
| HandlingFeesFixedSurcharge | Decimal | False |
Fixed surcharge of the handling fee. | |
| Enabled | Boolean | False |
Whether this shipping zone is enabled. | |
| Locations | String | False |
Array of zone locations. |
ビューは、データを示すという点でテーブルに似ていますが、ビューは読み取り専用です。
クエリは、ビューに対して通常のテーブルと同様に実行することができます。
| Name | Description |
| Blogposts | Returns all Blog Posts. |
| BlogTags | Returns a list of Blog Tags. |
| CustomerGroups | Returns a list of Customer Groups. |
| DownloadConsignments | Returns consignments and their corresponding downloads. |
| EmailConsignments | Returns consignments and their corresponding emails. |
| GiftCertificates | Lists all gift certificates. |
| OrderCoupons | Lists all order coupons. |
| OrderItemOptionValues | Returns data from OrderItems table. |
| OrderMessages | Gets the messages associated with an order. |
| OrderRefunds | Returns a list of refunds. |
| OrderRefundsItems | List of Items refunded. |
| OrderRefundsPayments | Refund payments made to payment providers. |
| OrderShippingAddresses | Returns shipping addresses and their corresponding orders. |
| OrderStatuses | Returns order statuses. |
| OrderTaxes | Gets all order taxes related to an order. |
| Pages | Lists all pages. |
| PaymentMethods | Lists all payment methods. |
| PickupConsignments | Returns consignments and their corresponding pickups. |
| PriceListAssignments | Returns an array of Price List Assignments matching a particular Customer Group and Price List and Channel. |
| ProductBulkPricingRules | Returns bulk pricing rules applied to a product. |
| ProductCustomFields | Lists all tax classes. |
| ProductRules | Returns rules that modify the properties of a product, such as weight, price, and product image. |
| ProductSkus | Returns Stock Keeping Unit identifiers associated with products or product options. |
| ProductVariantValues | Returns data from Products table. |
| ProductVideos | Returns Embedded videos displayed on product listings. |
| Redirects | Lists all redirect URLs. |
| ShipmentItems | Returns data from Items within a shipment. |
| ShippingConsignmentQuotes | Gets all shipping quotes persisted on an order for a shipping consignment. |
| ShippingConsignments | Returns consignments and their corresponding shipping orders. |
| Stores | Lists all Stores. |
| TaxClasses | Lists all tax classes. |
| Transactions | Lists all transactions. |
Returns all Blog Posts.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM Blogposts WHERE Id = "1234" SELECT * FROM Blogposts WHERE IsPublished = "true"
| Name | Type | References | Description |
| Id [KEY] | Integer | Id of the blogpost | |
| Title | String | Title of this blog post. | |
| URL | String | URL for the public blog post. | |
| PreviewURL | String | URL to preview the blog post. | |
| Body | String | Text body of the blog post. | |
| Summary | String | Summary of the blog post. | |
| IsPublished | Boolean | Whether the blog post is published. | |
| PublishedDate | Datetime | Date when the blogpost was published. | |
| PublishedTimezone | String | Timezone when the blogpost was published. | |
| PublishedTimezoneType | String | Type of the timezone. | |
| PublishedDateISO | String | Published date in ISO8601 format. | |
| MetaDescription | String | Description text for this blog posts meta element. | |
| MetaKeywords | String | Keywords for this blog posts meta element. | |
| Author | String | Name of the blog posts author. | |
| ThumbnailPath | String | Local path to a thumbnail image within the product_images folder to accompany the blog post. |
Returns a list of Blog Tags.
| Name | Type | References | Description |
| BlogIds [KEY] | String | Id of the blogpost | |
| Tag [KEY] | String | Tag which belongs to the blog. |
Returns a list of Customer Groups.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM CustomerGroups WHERE Id = 1 SELECT * FROM CustomerGroups WHERE IsDefault = "true" SELECT * FROM CustomerGroups WHERE IsGroupForGuests = "true"
| Name | Type | References | Description |
| Id [KEY] | Integer | Id of the customer group | |
| Name | String | Name of the group | |
| IsDefault | Boolean | Determines whether new customers are assigned to this group by default. | |
| CategoryAccessType | String | Type of the category access. | |
| CategoryAccessCategories | String | An array of category IDs. | |
| IsGroupForGuests | Boolean | Describes whether the group is for guests. There can only be one customer group for guests at a time. | |
| DateCreated | Date | Date on which the customer group was created. | |
| DateModified | Date | Date on which the customer group was last modified. | |
| DiscountRulesAmount | String | A collection of discount rules that are automatically applied to customers who are members of the group. |
Returns consignments and their corresponding downloads.
The Cloud uses the BigCommerce API to process WHERE clause conditions built with OrderId, which supports the '=' comparison.
For example, the following queries are processed server-side:
SELECT * FROM DownloadConsignments WHERE OrderId = 123
| Name | Type | References | Description |
| OrderId | Integer |
Orders.Id | Identifier for the BigCommerce Order with which this transaction is associated. |
| RecipientEmail | String | The recipient email of the digital consignment. | |
| DownloadLineItemResources | String | URL where you can use a GET request to get the downloads line items for the order consignment. | |
| DownloadLineItemUrl | String | Path where you can use a GET request to get the downloads line items for the order consignment. |
Returns consignments and their corresponding emails.
The Cloud uses the BigCommerce API to process WHERE clause conditions built with OrderId, which supports the '=' comparison.
For example, the following queries are processed server-side:
SELECT * FROM EmailConsignments WHERE OrderId = 123
| Name | Type | References | Description |
| OrderId | Integer |
Orders.Id | Identifier for the BigCommerce Order with which this transaction is associated. |
| RecipientEmail | String | The recipient email of the gift certificate. | |
| GiftCertificatesLineItemResources | String | URL where you can use a GET request to get the gift certificate line items for the order consignment. | |
| GiftCertificatesLineItemUrl | String | Path where you can use a GET request to get the gift certificate line items for the order consignment. |
Lists all gift certificates.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM GiftCertificates WHERE Id = 1 SELECT * FROM GiftCertificates WHERE IsDefault = "true" SELECT * FROM GiftCertificates WHERE IsGroupForGuests = "true"
| Name | Type | References | Description |
| Id [KEY] | Integer | The ID of the gift certificate. | |
| Code | String | A unique string that the customer can input to redeem the gift certificate. | |
| Amount | Decimal | Value of the gift certificate. | |
| Status | String | Status of the gift certificate. | |
| Balance | Decimal | Remaining value of the gift certificate. | |
| ToName | String | Name of the recipient. | |
| ToEmail | String | Email of the recipient. | |
| OrderId | Integer | The ID of the order. | |
| Template | String | The email theme to use in the message sent to the recipient. | |
| Message | String | Text that will be sent to the recipient, such as Congratulations. | |
| FromName | String | Name of the customer who purchased the gift certificate. | |
| FromEmail | String | Email of the customer who purchased the gift certificate. | |
| CustomerId | Integer | The id of the customer placing the order. | |
| ExpiryDate | Datetime | Date on which the gift certificate is set to expire. | |
| PurchaseDate | Datetime | Date the gift certificate was purchased. | |
| CurrencyCode | String | The currency code. |
Lists all order coupons.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM OrderCoupons WHERE Id = 1 SELECT * FROM OrderCoupons WHERE OrderId = 2
| Name | Type | References | Description |
| Id [KEY] | Integer | Numeric ID of this product within this order. | |
| OrderId | Integer | Numeric ID of the associated order. | |
| CouponId | Integer | The coupon id. | |
| Code | String | The code of the coupon. | |
| Amount | Decimal | The amount of the coupon. | |
| Type | Integer | The type of the coupon. | |
| Discount | Decimal | The discount of the coupon. |
Returns data from OrderItems table.
The ID of the corresponding Order-Item is required to perform a SELECT query on OrderItemOptionValues:
SELECT * FROM [OrderItemOptionValues] WHERE OrderItemId = 2522;
| Name | Type | References | Description |
| Id [KEY] | Integer | The numerical ID of the option value within the group of ordered items. | |
| OptionId | Integer | The ID of the option from Product Options table. | |
| OrderItemId [KEY] | Integer |
OrderItems.Id | The ID of the product. |
| OrderItemOptionId | Integer | The numerical ID of the option within the group of ordered items. | |
| DisplayName | String | The name of the option shown on the storefront. | |
| DisplayValue | String | The value of the option shown on the storefront. | |
| Value | String | The actual value of the option. | |
| Name | String | The unique option name, auto-generated from the display name, a timestamp, and the product ID. | |
| Type | String | The type of option, which determines how it will display on the storefront. Acceptable values: radio_buttons, rectangles, dropdown, product_list, product_list_with_images, swatch. | |
| DisplayStyle | String | The specific style which the order will be displayed as. |
Gets the messages associated with an order.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM OrderMessages WHERE Id = 1 SELECT * FROM OrderMessages WHERE OrderId = 2 SELECT * FROM OrderMessages WHERE IsFlagged = "true" SELECT * FROM OrderMessages WHERE DateCreated >= "2019-01-01" AND DateCreated <= "2020-01-01"
| Name | Type | References | Description |
| Id [KEY] | Integer | Numeric ID of this product within this order. | |
| OrderId | Integer | Numeric ID of the associated order. | |
| StaffId | Integer | The staff id. | |
| CustomerId | Integer | The customer id. | |
| Type | String | Type of the message. | |
| Subject | String | Subject of the message. | |
| Message | String | Message content. | |
| Status | String | Status of the message. | |
| IsFlagged | Boolean | Indicator if the message is flagged. | |
| DateCreated | Datetime | Datetime when the message was first created. |
Returns a list of refunds.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM OrderRefunds WHERE Id = 1 SELECT * FROM OrderRefunds WHERE OrderId = 2
| Name | Type | References | Description |
| Id [KEY] | Integer | Refund resource ID. | |
| Created [KEY] | Datetime | Timestamp of when this refund was created. | |
| OrderId | Integer | Reference to order id. | |
| Reason | String | Reason for refund. | |
| TotalAmount | Decimal | A non-negative 2 decimal place rounded value that represents the amount that can be charged/refunded via payment providers. | |
| TotalTax | Decimal | Total tax amount refunded back to the shopper. Note: order_level_amount does not affect tax liability. | |
| UserId | Integer | Reference to the user's id who create this refund. | |
| UsesMerchantOverrideValues | Boolean | Whether refund amount and tax are provided explicitly by merchant override |
List of Items refunded.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM OrderRefundsItems WHERE OrderRefundId = 2 SELECT * FROM OrderRefundsItems WHERE OrderId = 2
| Name | Type | References | Description |
| ItemId [KEY] | Integer | order_product.id corresponding to the item_types of PRODUCT, GIFT_WRAPPING. order_address.id corresponding to the item_types of SHIPPING, HANDLING. order.id corresponding to the item_type of ORDER. | |
| OrderRefundId [KEY] | Integer |
OrderRefunds.Id | The ID of the order refund. |
| OrderId | Integer |
OrderRefunds.OrderId | Reference to order id. |
| ItemType | String | Type of item that was refunded. | |
| Quantity | Integer | Quantity of item refunded. Note: this will only be populated for item_type PRODUCT | |
| Reason | String | Reason for refunding an item. | |
| RequestedAmount | Decimal | A non-negative 2 decimal place rounded value that represents the amount that can be charged/refunded via payment providers.. |
Refund payments made to payment providers.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM OrderRefundsItems WHERE OrderRefundId = 2 SELECT * FROM OrderRefundsPayments WHERE OrderId = 2
| Name | Type | References | Description |
| Id [KEY] | Integer | The ID of the refund payment. | |
| OrderRefundId | Integer |
OrderRefunds.Id | The ID of the order refund. |
| OrderId | Integer |
OrderRefunds.OrderId | Reference to order id. |
| ProviderId | String | Reference to payment provider. | |
| Amount | Decimal | A non-negative 2 decimal place rounded value that represents the amount that can be charged/refunded via payment providers. | |
| Offline | Boolean | Indicate whether payment was offline. | |
| IsDeclined | Boolean | Indicate if this payment has been declined by payment provider. | |
| DeclinedMessage | String | Message indicate why payment was declined. |
Returns shipping addresses and their corresponding orders.
| Name | Type | References | Description |
| Id [KEY] | Integer | ID of this shipping address. | |
| OrderId | Integer | ID of the order. | |
| FirstName | String | Addressee first name. | |
| LastName | String | Addressee last name. | |
| Company | String | Addressee company. | |
| Street1 | String | Street address (first line). | |
| Street2 | String | Street address (second line). | |
| City | String | Addressee city. | |
| Zip | String | ZIP or postal code. | |
| Country | String | Addressee's country. | |
| State | String | The name of the state or province. Should be spelled out in full, for example, California. | |
| String | Recipient's email address. | ||
| Phone | String | Recipient's telephone number. | |
| BaseCost | Decimal | The base value of the order's items. | |
| BaseHandlingCost | Decimal | The base handling charge. | |
| CostExTax | Decimal | The value of the order's items, excluding tax. | |
| CostIncTax | Decimal | The value of the order's items, including tax. | |
| CostTax | Decimal | The tax amount on the order. | |
| CostTaxClassId | String | The ID of the tax class applied to the product. | |
| CountryIso2 | String | 2-letter ISO Alpha-2 code for the country. | |
| HandlingCostExTax | Decimal | The handling charge, excluding tax. | |
| HandlingCostIncTax | Decimal | The handling charge, including tax. | |
| HandlingCostTax | Decimal | The handling charge. | |
| HandlingCostTaxClassId | String | A read-only value. Do not attempt to set or modify this value in a POST or PUT operation. | |
| ItemsShipped | Integer | The number of items that have been shipped. | |
| ItemsTotal | Integer | The total number of items in the order. | |
| ShippingMethod | String | Text code identifying the BigCommerce shipping module selected by the customer. | |
| ShippingZoneId | Integer | Numeric ID of the shipping zone. | |
| ShippingZoneName | String | Name of the shipping zone. |
Returns order statuses.
| Name | Type | References | Description |
| Id [KEY] | Integer | The Id of the type of order status | |
| Name | String | Name of the type of order status. | |
| Systemlabel | String | System name of the type of order status. | |
| CustomLabel | String | Custom order status label given in the Control Panel. | |
| SystemDescription | String | System description of the order status. |
Gets all order taxes related to an order.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM OrderTaxes WHERE Id = 1 SELECT * FROM OrderTaxes WHERE OrderId = 2
| Name | Type | References | Description |
| Id [KEY] | Integer | Numeric ID of this product within this order. | |
| OrderId | Integer | Numeric ID of the associated order. | |
| OrderAddressId | Integer | The unique numeric identifier of the order address object associated with the order. | |
| TaxRateId | Integer | The unique numeric identifier of the tax rate. | |
| TaxClassId | Integer | The unique numeric identifier of the tax class object. | |
| Name | String | The name of the tax class object. | |
| Class | String | The name of the type of tax that was applied. | |
| Rate | Decimal | The tax rate. | |
| Priority | Integer | The order in which the tax is applied. | |
| PriorityAmount | Decimal | The amount of tax calculated on the order. | |
| LineAmount | Decimal | The line amount. | |
| OrderProductId | String | If the line_item_type is item or handling then this field will be the order product id. Otherwise the field will return as null. | |
| LineItemType | String | Type of tax on item. |
Lists all pages.
The Cloud uses the BigCommerce API to process WHERE clause conditions built with Id, which supports the '=' comparison.
The rest of the filter is executed client-side within the Cloud.
For example, the following query is processed server-side:
SELECT * FROM Pages WHERE Id = 1
| Name | Type | References | Description |
| Id [KEY] | Integer | Id of the page. | |
| ChannelId | Integer |
Channels.Id | Channel Id of the page. |
| Name | String | Name of the page. | |
| String | Email of the page. | ||
| MetaTitle | String | Title of the page. | |
| Body | String | Body of the page. | |
| IsVisible | Boolean | Indicator if page is visible. | |
| ParentId | Integer | Parent id of the page. | |
| SortOrder | Integer | Sort order of the page. | |
| MetaKeywords | String | Keywords of the page. | |
| Type | String | Type of the page. | |
| MetaDescription | String | Description of the page. | |
| IsHomepage | Boolean | Indicator if the page is homepage. | |
| IsCustomersOnly | Boolean | Indicator if the page is customer only. | |
| SearchKeywords | String | Search keywords of the page. | |
| Url | String | Url of the page. |
Lists all payment methods.
| Name | Type | References | Description |
| Code [KEY] | String | The code of the payment method. | |
| Name | String | The name of the payment method. | |
| TestMode | Boolean | Indicator if the payment method is in test mode. |
Returns consignments and their corresponding pickups.
The Cloud uses the BigCommerce API to process WHERE clause conditions built with OrderId, supports the '=' comparison.
For example, the following queries are processed server-side:
SELECT * FROM PickupConsignments WHERE OrderId = 123
| Name | Type | References | Description |
| Id | Integer | The ID of the pickup consignment to update. | |
| OrderId | Integer |
Orders.Id | Identifier for the BigCommerce Order with which this transaction is associated. |
| PickupMethodId | Integer | The ID of the pickup consignment to update. | |
| PickupMethodDisplayName | String | A name for the pickup method that can be displayed to shoppers. | |
| CollectionInstructions | String | A message for shoppers explaining how to collect their pickup order. | |
| CollectionTimeDescription | String | A message for shoppers indicating the estimated time their pickup order will be ready for collection. | |
| LocationId | Integer | ID of the location. | |
| LocationName | String | The name of the pickup location. | |
| LocationCode | String | The code of the pickup location. | |
| LocationAddressLine1 | String | Pickup location's Street address (first line) | |
| LocationAddressLine2 | String | Pickup location's Street address (second line). | |
| LocationCity | String | Pickup location's city. | |
| LocationState | String | Pickup location's state. | |
| LocationPostalCode | String | Pickup location's postal code. | |
| LocationCountryAlpha2 | String | 2-letter ISO Alpha-2 code for the country. | |
| LocationEmail | String | Pickup location's email address | |
| LocationPhone | String | Pickup location's phone number. | |
| PickupsLineItemResources | String | URL where you can use a GET request to get the pickups line items for the order consignment. | |
| PickupsLineItemUrl | String | Path where you can use a GET request to get the pickups line items for the order consignment. |
Returns an array of Price List Assignments matching a particular Customer Group and Price List and Channel.
The Cloud uses the BigCommerce 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 PriceListAssignments WHERE CustomerGroupId IN (1, 2) SELECT * FROM PriceListAssignments WHERE PriceListId IN (1, 2) SELECT * FROM PriceListAssignments WHERE PriceListId = 1 SELECT * FROM PriceListAssignments WHERE CustomerGroupId = 1
| Name | Type | References | Description |
| Id | Integer | The ID of the PriceList Assignment. | |
| CustomerGroupId | Integer | The ID of the customer group. | |
| PriceListId | Integer | The ID of the PriceList. | |
| ChannelId | Integer | ID of the Channel. |
Returns bulk pricing rules applied to a product.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM ProductBulkPricingRules WHERE ProductId = 77 SELECT * FROM ProductBulkPricingRules WHERE ProductId = 77 AND Id = 1
| Name | Type | References | Description |
| Id [KEY] | Integer | The ID of the bulk discount rule. | |
| ProductId [KEY] | Integer | The ID of the product associated with this bulk discount rule. | |
| Min | Integer | The minimum inclusive quantity of a product to satisfy this rule. Must be greater than or equal to zero. | |
| Max | Integer | The maximum inclusive quantity of a product to satisfy this rule. | |
| Type | String | Type of the discount. | |
| TypeValue | Decimal | The value of the discount |
Lists all tax classes.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM ProductCustomFields WHERE Id = 1 SELECT * FROM ProductCustomFields WHERE ProductId = 2
| Name | Type | References | Description |
| Id [KEY] | Integer | Numeric ID of the custom field. | |
| ProductId | Integer | Id of the product that the custom field belongs to. | |
| Name | String | Name of the custom field. | |
| Text | String | Value of the custom field. |
Returns rules that modify the properties of a product, such as weight, price, and product image.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM ProductRules WHERE Id = 1 SELECT * FROM ProductRules WHERE ProductId = 2
| Name | Type | References | Description |
| Id [KEY] | Integer | The ID of the rule. | |
| ProductId [KEY] | Integer | The ID of the product to which the rule belongs. | |
| SortOrder | Integer | The order in which the rule will be displayed on the product page. | |
| IsEnabled | Boolean | If set to true, the rule will be evaluated when a customer configures a products options. | |
| IsStop | Boolean | If set to true and the rule evaluates to true, no more rules with a higher sort_order will be processed. | |
| PriceAdjusterName | String | Price adjuster name. | |
| PriceAdjusterValue | Decimal | Price adjuster value. | |
| WeightAdjusterName | String | Weight adjuster name. | |
| WeightAdjusterValue | Decimal | Weight adjuster value. | |
| IsPurchasingDisabled | Boolean | If true this rule prohibits purchasing the product with the configured option values. | |
| PurchasingDisabledMessage | String | The message to display if the rule disabled purchasing the product. | |
| IsPurchasingHidden | Boolean | If true the rule hides the options on the product. | |
| ImageFile | String | A path to an rule already uploaded via FTP in the import directory and the path should be relative from the import directory. |
Returns Stock Keeping Unit identifiers associated with products or product options.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM ProductSkus WHERE Id = 1 SELECT * FROM ProductSkus WHERE Id >= 1 AND Id <= 4 SELECT * FROM ProductSkus WHERE ProductId = 2 SELECT * FROM ProductSkus WHERE InventoryLevel = "test"
| Name | Type | References | Description |
| Id [KEY] | Integer | ID of this sku. | |
| ProductId [KEY] | Integer | ID of the associated product. | |
| Sku | String | The unique SKU (stock keeping unit). | |
| Price | Decimal | This SKUs base price on the storefront. | |
| AdjustedPrice | Decimal | The SKUs price on the storefront, after the products base price is inherited, or any option set or any product rules are applied. | |
| CostPrice | Decimal | The products cost price. | |
| UPC | String | ||
| InventoryLevel | Integer | The inventory level for the product. | |
| InventoryWarningLevel | Integer | The inventory warning level for the product . | |
| BinPickingNumber | String | The BIN picking number. | |
| Weight | Decimal | This SKUs base weight on the storefront. | |
| AdjustedWeight | Decimal | This SKUs weight on the storefront, after the products base weight is inherited, or any option set or any product rules are applied. | |
| IsPurchasingDisabled | Boolean | If true, this prohibits purchasing of the SKU. | |
| PurchasingDisabledMessage | String | The message to display if purchasing is disabled on this SKU. | |
| ImageFile | String | The image that will be displayed when this SKU is selected on the storefront. When updating a SKU image, send the publicly accessible URL. Supported image formats are JPEG, PNG, and GIF. |
Returns data from Products table.
| Name | Type | References | Description |
| Id [KEY] | Integer | The ID of the option value. | |
| VariantId [KEY] | Integer | The ID of the corresponding variant. | |
| OptionId [KEY] | Integer | The ID of the option. | |
| Label | String | The label of the option value shown on the storefront. | |
| DisplayName | String | The label of the option value shown on the storefront. | |
| ProductId | String |
Products.Id | The Id of the product |
Returns Embedded videos displayed on product listings.
The Cloud uses the BigCommerce 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.
For example, the following queries are processed server-side:
SELECT * FROM ProductVideos WHERE Id = 1 SELECT * FROM ProductVideos WHERE ProductId = 1
| Name | Type | References | Description |
| Id [KEY] | String | ID of this video. | |
| ProductId [KEY] | Integer | ID of the associated product. | |
| SortOrder | Integer | Sort order for this video. | |
| Name | String | The title for the video. | |
| Length | String | The duration of the video. | |
| Description | String | The description for the video. | |
| VideoId | String | The ID of the video on a host site. | |
| Type | String | The video type (a short name of a host site) |
Lists all redirect URLs.
The Cloud uses the BigCommerce API to process WHERE clause conditions built with Id, which supports the '=' comparison.
The rest of the filter is executed client-side within the Cloud.
For example, the following query is processed server-side:
SELECT * FROM Redirects WHERE Id = 1
| Name | Type | References | Description |
| Id [KEY] | Integer | Numeric ID of the redirect. | |
| SiteId | Integer | Site ID of the redirect. | |
| FromPath | String | The path from which to redirect. | |
| ToType | String | The type of redirect. | |
| ToEntityId | Integer | EntityId of the redirect. | |
| ToURL | String | URL of the redirect. | |
| URL | String | Full destination URL for the redirect. Must be explicitly included via URL parameter. |
Returns data from Items within a shipment.
| Name | Type | References | Description |
| Id [KEY] | Integer |
OrderItems.Id | Id of the Product within the order. |
| ProductId [KEY] | Integer |
Products.Id | Numerical Id of the product. |
| OrderShipmentId [KEY] | String | Id of the shipment. | |
| Quantity | Integer | Quantity of product shipped. |
Gets all shipping quotes persisted on an order for a shipping consignment.
The Cloud uses the BigCommerce API to process WHERE clause conditions built with the following columns and operators:
For example, the following queries are processed server-side:
SELECT * FROM ShippingConsignmentQuotes WHERE OrderId = 123 and ShippingConsignmentId=234
| Name | Type | References | Description |
| Id | Integer | ID of the shipping quote. | |
| OrderId | Integer |
Orders.Id | Identifier for the BigCommerce Order with which this transaction is associated. |
| ShippingConsignmentId | Integer | ID of the shipping consignment. | |
| UUID | String | UUID of the shipping quote. | |
| Timestamp | String | Time the order was created in RFC 2822 format. | |
| ProviderCode | String | Code of the shipping provider. | |
| CarrierCode | String | Code of the shipping carrier. | |
| RateCode | String | Type of delivery. This can vary based on shipping quote. | |
| RateId | String | This can vary based on shipping quote. | |
| MethodId | Integer | Shipping method ID. | |
| ProviderQuoteRateValue | Integer | Provider quote's rate_value. | |
| ProviderQuoteRateUnit | String | Provider quote's rate_unit. | |
| ProviderQuoteName | String | Provider quote's name. | |
| ProviderQuoteTransitTime | Integer | Provider quote's transitTime. | |
| ProviderQuoteSignatureConfirmationFee | String | Provider quote's signatureConfirmationFee. | |
| ProviderQuoteCarrierName | String | Provider quote's CarrierName. | |
| ProviderQuoteDeliveryMessage | String | Provider quote's deliveryMessage. | |
| ProviderQuoteLabelSizes | String | Provider quote's label sizes. | |
| ProviderQuoteDates | String | Provider quote's dates. | |
| ProviderQuoteInsuredMailFee | String | Provider quote's insuredMailFee. | |
| ProviderQuoteRateId | String | Provider quote's rateId. | |
| ProviderQuoteDescription | String | Provider quote's description. | |
| ProviderQuoteAdditionalInfo | String | Provider quote's additionalInfo. |
Returns consignments and their corresponding shipping orders.
The Cloud uses the BigCommerce API to process WHERE clause conditions built with the following columns and operators:
For example, the following queries are processed server-side:
SELECT * FROM ShippingConsignments WHERE OrderId = 123
| Name | Type | References | Description |
| Id | Integer | ID of the shipping consignment. | |
| OrderId | Integer |
Orders.Id | Identifier for the BigCommerce Order with which this transaction is associated. |
| FirstName | String | First name. | |
| LastName | String | Last name. | |
| Company | String | company. | |
| Street1 | String | Street address (first line). | |
| Street2 | String | Street address (second line). | |
| Country | String | country | |
| State | String | State | |
| String | Recipient?s email address. | ||
| Phone | String | Recipient?s telephone number. | |
| ItemsTotal | String | The total number of items in the order. | |
| ItemsShipped | String | The number of items that have been shipped. | |
| ShippingMethod | String | Text identifying the BigCommerce shipping module selected by the customer. | |
| BaseCost | Integer | The base shipping cost value. | |
| CostExTax | Integer | The shipping cost value excluding tax. | |
| CostIncTax | Integer | The shipping cost value including tax. | |
| CostTax | Integer | The tax amount on the shipping cost. | |
| CostTaxClassId | Integer | The ID of the tax class applied to the shipping cost. Ignored if automatic tax is enabled. | |
| BaseHandlingCost | Integer | The base handling charge. | |
| HandlingCostExTax | Integer | The handling charge, excluding tax. | |
| HandlingCostIncTax | Integer | The handling charge, including tax. | |
| HandlingCostTax | Integer | The handling charge, including tax number. | |
| HandlingCostTaxClassId | Integer | The ID of the tax class applied to the handling charge. Ignored if automatic tax is enabled. | |
| ShippingZoneId | Integer | The numeric ID of the shipping zone. | |
| ShippingZoneName | String | The name of the shipping zone. | |
| ShippingQuotesResources | String | URL where you can use a GET request to get the shipping quotes for the order consignment. | |
| ShippingQuotesUrl | String | Path where you can use a GET request to get the shipping quotes for the order consignment. | |
| ZipCode | String | zip code of the shipping quotes. | |
| ShippingLineItemResources | String | URL where you can use a GET request to get the shipping line items for the order consignment. | |
| ShippingLineItemUrl | String | Path where you can use a GET request to get the shipping line items for the order consignment. | |
| City | String | Path where you can use a GET request to get the shipping line items for the order consignment. | |
| CountryIso | String | Path where you can use a GET request to get the shipping line items for the order consignment. |
Lists all Stores.
| Name | Type | References | Description |
| Id [KEY] | String | Unique store identifier. | |
| Domain | String | Primary domain name. | |
| SecureUrl | String | Stores current HTTPS URL. | |
| Status | String | Status of the store. | |
| Name | String | Stores name. | |
| FirstName | String | Primary contacts first name | |
| LastName | String | Primary contacts last name | |
| Address | String | Display address. | |
| Country | String | Country where the store is located | |
| CountryCode | String | Country code. | |
| Phone | String | Display phone number. | |
| AdminEmail | String | Email address of the store administrator/owner. | |
| OrderEmail | String | Email address for orders and fulfillment. | |
| FaviconUrl | String | URL of the favicon. | |
| TimezoneName | String | A string identifying the time zone, in the format: /. | |
| TimezoneRawOffset | Integer | A negative or positive number, identifying the offset from UTC/GMT, in seconds, during winter/standard time. | |
| Language | String | Default language code. | |
| Currency | String | Default currency code | |
| CurrencySymbol | String | Default symbol for values in the currency. | |
| DecimalSeparator | String | Default decimal separator for values in the currency. | |
| ThousandsSeparator | String | Default thousands separator for values in the currency. | |
| DecimalPlaces | Integer | Default decimal places for values in the currency. | |
| CurrencySymbolLocation | String | Default position of the currency symbol (left or right). | |
| WeightUnits | String | Default weight units (metric or imperial). | |
| DimensionUnits | String | Default dimension units (metric or imperial). | |
| DimensionDecimalPlaces | Integer | The number of decimal places. | |
| DimensionDecimalToken | String | The symbol that separates the whole numbers from the decimal points. | |
| DimensionThousandsToken | String | The symbol used to denote thousands. | |
| PlanName | String | Name of the BigCommerce plan to which this store is subscribed. | |
| PlanLevel | String | Level of the BigCommerce plan to which this store is subscribed. | |
| Industry | String | Industry, or vertical category, in which the business operates. | |
| LogoUrl | String | URL of the logo. | |
| IsPriceEnteredWithTax | Boolean | A Boolean value that indicates whether or not prices are entered with tax. | |
| FeaturesStencilEnabled | Boolean | Indicates whether a store is using a Stencil theme. | |
| FeaturesSitewideHttpsEnabled | Boolean | Indicates if there is sitewide https. | |
| FeaturesFacebookCatalogId | String | Id of the facebook catalog. If there is none, it returns an empty string. | |
| FeaturesCheckoutType | String | What type of checkout is enabled on the store. |
Lists all tax classes.
The Cloud uses the BigCommerce API to process WHERE clause conditions built with >Id, which supports the '=' comparison.
The rest of the filter is executed client-side within the Cloud.
For example, the following queries is processed server-side:
SELECT * FROM TaxClasses WHERE Id = 1
| Name | Type | References | Description |
| Id [KEY] | Integer | Numeric ID of the tax class. | |
| Name | String | Name of the tax class. | |
| DateCreated | Date | The date when tax class was created. | |
| DateModified | Date | The data when tax class was modified. |
Lists all transactions.
| Name | Type | References | Description |
| Id [KEY] | Integer | Unique identifier for the transaction. | |
| OrderId | String | Identifier for the BigCommerce Order with which this transaction is associated. | |
| Event | String | Store event that created the transaction. | |
| Method | String | The payment method. | |
| Amount | Decimal | Amount of money in the transaction. | |
| Currency | String | Currency used for the transaction. | |
| Gateway | String | The payment gateway. | |
| Status | String | Status of the transaction. | |
| GatewayTransactionId | String | The transaction ID returned by the payment gateway for this transaction item. | |
| DateCreated | Datetime | The datetime of the transaction. | |
| Test | Boolean | True if the transaction performed was a test, or if the gateway is in test mode. | |
| FraudReview | Boolean | Result of gateway fraud review, if any. | |
| ReferenceTransactionId | Integer | Identifier for an existing transaction upon which this transaction acts. | |
| OfflineDisplayName | String | Display name for the offline payment. | |
| CustomPaymentMethod | String | Custom payment from manual order. | |
| PaymentMethodId | String | The payment method ID used for this transaction. | |
| PaymentInstrumentToken | String | Internal BigPay token for stored card. | |
| AVSResultCode | String | AVS code from the payment gateway. | |
| AVSResultMessage | String | AVS message from the payment gateway. | |
| AVSResultStreetMatch | String | AVS Code for street matching result. | |
| AVSResultPostalMatch | String | AVS Code for postal matching result. | |
| CVVResultCode | String | CVV Code from the payment Gateway. | |
| CVVResultMessage | String | CVV Message from the payment Gateway. | |
| CreditCardType | String | Type of credit-card. | |
| CreditCardIIN | String | The IIN of a credit-card number. | |
| CreditCardLast4 | String | The last 4 digits of a credit-card number. | |
| CreditCardExpiryMonth | Integer | The expiry month of a credit-card. | |
| CreditCardExpiryYear | Integer | The expiry year of a credit-card. | |
| GiftCertificateCode | String | The gift-certificate code. | |
| GiftCertificateOriginalBalance | Decimal | The balance on a gift certificate when it was purchased. | |
| GiftCertificateStartingBalance | Decimal | The balance on a gift certificate at the time of this purchase. | |
| GiftCertificateRemainingBalance | Decimal | The remaining balance on a gift certificate. | |
| GiftCertificateStatus | String | The status of a gift certificate. | |
| StoreCreditRemainingBalance | Decimal | Remaining balance of shopper's store credit. |
ストアドプロシージャはファンクションライクなインターフェースで、BigCommerce の単純なSELECT/INSERT/UPDATE/DELETE 処理にとどまらずCloud の機能を拡張します。
ストアドプロシージャは、パラメータのリストを受け取り、目的の機能を実行し、プロシージャが成功したか失敗したかを示すとともにBigCommerce から関連するレスポンスデータを返します。
| Name | Description |
| CreateBrandImage | Creates a brand image. |
| DeleteBrandImage | Deletes a brand image. |
Creates a brand image.
Creates a brand image using an image file.
For example:
EXECUTE CreateBrandImage BrandId ='19128157751697', ImageFileLocation = 'D:\Desktop\Test.png'
| Name | Type | Required | Description |
| BrandId | String | True | The Id of the Brand. |
| ImageFileLocation | String | False | The local path of the image file to be uploaded. |
| FileName | String | False | File name that is uploaded. If content is not empty |
| Name | Type | Description |
| Status | String | The Status of the create operation. |
| ImageUrl | String | The URL of the Image uploaded. |
Deletes a brand image.
Deletes the brand image of a particular brand.
For example:
EXECUTE DeleteBrandImage BrandId ='19128157751697'
| Name | Type | Required | Description |
| BrandId | String | False | The Id of the Brand. |
| Name | Type | Description |
| Status | String | The Status of the delete operation. |
このセクションで説明されているシステムテーブルをクエリして、スキーマ情報、データソース機能に関する情報、およびバッチ操作の統計にアクセスできます。
以下のテーブルは、BigCommerce のデータベースメタデータを返します。
以下のテーブルは、データソースへの接続方法およびクエリ方法についての情報を返します。
次のテーブルは、データ変更クエリのクエリ統計を返します。
利用可能なデータベースをリストします。
次のクエリは、接続文字列で決定されるすべてのデータベースを取得します。
SELECT * FROM sys_catalogs
| Name | Type | Description |
| CatalogName | String | データベース名。 |
利用可能なスキーマをリストします。
次のクエリは、すべての利用可能なスキーマを取得します。
SELECT * FROM sys_schemas
| Name | Type | Description |
| CatalogName | String | データベース名。 |
| SchemaName | String | スキーマ名。 |
利用可能なテーブルをリストします。
次のクエリは、利用可能なテーブルおよびビューを取得します。
SELECT * FROM sys_tables
| Name | Type | Description |
| CatalogName | String | テーブルまたはビューを含むデータベース。 |
| SchemaName | String | テーブルまたはビューを含むスキーマ。 |
| TableName | String | テーブル名またはビュー名。 |
| TableType | String | テーブルの種類(テーブルまたはビュー)。 |
| Description | String | テーブルまたはビューの説明。 |
| IsUpdateable | Boolean | テーブルが更新可能かどうか。 |
利用可能なテーブルおよびビューのカラムについて説明します。
次のクエリは、Customers テーブルのカラムとデータ型を返します。
SELECT ColumnName, DataTypeName FROM sys_tablecolumns WHERE TableName='Customers'
| Name | Type | Description |
| CatalogName | String | テーブルまたはビューを含むデータベースの名前。 |
| SchemaName | String | テーブルまたはビューを含むスキーマ。 |
| TableName | String | カラムを含むテーブルまたはビューの名前。 |
| ColumnName | String | カラム名。 |
| DataTypeName | String | データ型の名前。 |
| DataType | Int32 | データ型を示す整数値。この値は、実行時に環境に基づいて決定されます。 |
| Length | Int32 | カラムのストレージサイズ。 |
| DisplaySize | Int32 | 指定されたカラムの通常の最大幅(文字数)。 |
| NumericPrecision | Int32 | 数値データの最大桁数。文字データおよび日時データの場合は、カラムの長さ(文字数)。 |
| NumericScale | Int32 | カラムのスケール(小数点以下の桁数)。 |
| IsNullable | Boolean | カラムがNull を含められるかどうか。 |
| Description | String | カラムの簡単な説明。 |
| Ordinal | Int32 | カラムのシーケンスナンバー。 |
| IsAutoIncrement | String | カラムに固定増分値が割り当てられるかどうか。 |
| IsGeneratedColumn | String | 生成されたカラムであるかどうか。 |
| IsHidden | Boolean | カラムが非表示かどうか。 |
| IsArray | Boolean | カラムが配列かどうか。 |
| IsReadOnly | Boolean | カラムが読み取り専用かどうか。 |
| IsKey | Boolean | sys_tablecolumns から返されたフィールドがテーブルの主キーであるかどうか。 |
利用可能なストアドプロシージャをリストします。
次のクエリは、利用可能なストアドプロシージャを取得します。
SELECT * FROM sys_procedures
| Name | Type | Description |
| CatalogName | String | ストアドプロシージャを含むデータベース。 |
| SchemaName | String | ストアドプロシージャを含むスキーマ。 |
| ProcedureName | String | ストアドプロシージャの名前。 |
| Description | String | ストアドプロシージャの説明。 |
| ProcedureType | String | PROCEDURE やFUNCTION などのプロシージャのタイプ。 |
ストアドプロシージャパラメータについて説明します。
次のクエリは、SelectEntries ストアドプロシージャのすべての入力パラメータについての情報を返します。
SELECT * FROM sys_procedureparameters WHERE ProcedureName='SelectEntries' AND Direction=1 OR Direction=2
| Name | Type | Description |
| CatalogName | String | ストアドプロシージャを含むデータベースの名前。 |
| SchemaName | String | ストアドプロシージャを含むスキーマの名前。 |
| ProcedureName | String | パラメータを含むストアドプロシージャの名前。 |
| ColumnName | String | ストアドプロシージャパラメータの名前。 |
| Direction | Int32 | パラメータのタイプに対応する整数値:input (1)。input/output (2)、またはoutput(4)。input/output タイプパラメータは、入力パラメータと出力パラメータの両方になれます。 |
| DataTypeName | String | データ型の名前。 |
| DataType | Int32 | データ型を示す整数値。この値は、実行時に環境に基づいて決定されます。 |
| Length | Int32 | 文字データの場合は、許可される文字数。数値データの場合は、許可される桁数。 |
| NumericPrecision | Int32 | 数値データの場合は最大精度。文字データおよび日時データの場合は、カラムの長さ(文字数)。 |
| NumericScale | Int32 | 数値データの小数点以下の桁数。 |
| IsNullable | Boolean | パラメータがNull を含められるかどうか。 |
| IsRequired | Boolean | プロシージャの実行にパラメータが必要かどうか。 |
| IsArray | Boolean | パラメータが配列かどうか。 |
| Description | String | パラメータの説明。 |
| Ordinal | Int32 | パラメータのインデックス。 |
主キーおよび外部キーについて説明します。
次のクエリは、Customers テーブルの主キーを取得します。
SELECT * FROM sys_keycolumns WHERE IsKey='True' AND TableName='Customers'
| Name | Type | Description |
| CatalogName | String | キーを含むデータベースの名前。 |
| SchemaName | String | キーを含むスキーマの名前。 |
| TableName | String | キーを含むテーブルの名前。 |
| ColumnName | String | キーカラムの名前 |
| IsKey | Boolean | カラムがTableName フィールドで参照されるテーブル内の主キーかどうか。 |
| IsForeignKey | Boolean | カラムがTableName フィールドで参照される外部キーかどうか。 |
| PrimaryKeyName | String | 主キーの名前。 |
| ForeignKeyName | String | 外部キーの名前。 |
| ReferencedCatalogName | String | 主キーを含むデータベース。 |
| ReferencedSchemaName | String | 主キーを含むスキーマ。 |
| ReferencedTableName | String | 主キーを含むテーブル。 |
| ReferencedColumnName | String | 主キーのカラム名。 |
外部キーについて説明します。
次のクエリは、他のテーブルを参照するすべての外部キーを取得します。
SELECT * FROM sys_foreignkeys WHERE ForeignKeyType = 'FOREIGNKEY_TYPE_IMPORT'
| 名前 | タイプ | 説明 |
| CatalogName | String | キーを含むデータベースの名前。 |
| SchemaName | String | キーを含むスキーマの名前。 |
| TableName | String | キーを含むテーブルの名前。 |
| ColumnName | String | キーカラムの名前 |
| PrimaryKeyName | String | 主キーの名前。 |
| ForeignKeyName | String | 外部キーの名前。 |
| ReferencedCatalogName | String | 主キーを含むデータベース。 |
| ReferencedSchemaName | String | 主キーを含むスキーマ。 |
| ReferencedTableName | String | 主キーを含むテーブル。 |
| ReferencedColumnName | String | 主キーのカラム名。 |
| ForeignKeyType | String | 外部キーがインポート(他のテーブルを指す)キーかエクスポート(他のテーブルから参照される)キーかを指定します。 |
主キーについて説明します。
次のクエリは、すべてのテーブルとビューから主キーを取得します。
SELECT * FROM sys_primarykeys
| Name | Type | Description |
| CatalogName | String | キーを含むデータベースの名前。 |
| SchemaName | String | キーを含むスキーマの名前。 |
| TableName | String | キーを含むテーブルの名前。 |
| ColumnName | String | キーカラムの名前。 |
| KeySeq | String | 主キーのシーケンス番号。 |
| KeyName | String | 主キーの名前。 |
利用可能なインデックスについて説明します。インデックスをフィルタリングすることで、より高速なクエリ応答時間でセレクティブクエリを記述できます。
次のクエリは、主キーでないすべてのインデックスを取得します。
SELECT * FROM sys_indexes WHERE IsPrimary='false'
| Name | Type | Description |
| CatalogName | String | インデックスを含むデータベースの名前。 |
| SchemaName | String | インデックスを含むスキーマの名前。 |
| TableName | String | インデックスを含むテーブルの名前。 |
| IndexName | String | インデックス名。 |
| ColumnName | String | インデックスに関連付けられたカラムの名前。 |
| IsUnique | Boolean | インデックスが固有の場合はTrue。そうでない場合はFalse。 |
| IsPrimary | Boolean | インデックスが主キーの場合はTrue。そうでない場合はFalse。 |
| Type | Int16 | インデックスタイプに対応する整数値:statistic (0)、clustered (1)、hashed (2)、またはother (3)。 |
| SortOrder | String | 並べ替え順序:A が昇順、D が降順。 |
| OrdinalPosition | Int16 | インデックスのカラムのシーケンスナンバー。 |
利用可能な接続プロパティと、接続文字列に設定されている接続プロパティに関する情報を返します。
次のクエリは、接続文字列に設定されている、あるいはデフォルト値で設定されているすべての接続プロパティを取得します。
SELECT * FROM sys_connection_props WHERE Value <> ''
| Name | Type | Description |
| Name | String | 接続プロパティ名。 |
| ShortDescription | String | 簡単な説明。 |
| Type | String | 接続プロパティのデータ型。 |
| Default | String | 明示的に設定されていない場合のデフォルト値。 |
| Values | String | 可能な値のカンマ区切りリスト。別な値が指定されていると、検証エラーがスローされます。 |
| Value | String | 設定した値またはあらかじめ設定されたデフォルト。 |
| Required | Boolean | プロパティが接続に必要かどうか。 |
| Category | String | 接続プロパティのカテゴリ。 |
| IsSessionProperty | String | プロパティが、現在の接続に関する情報を保存するために使用されるセッションプロパティかどうか。 |
| Sensitivity | String | プロパティの機密度。これは、プロパティがロギングおよび認証フォームで難読化されているかどうかを通知します。 |
| PropertyName | String | キャメルケースの短縮形の接続プロパティ名。 |
| Ordinal | Int32 | パラメータのインデックス。 |
| CatOrdinal | Int32 | パラメータカテゴリのインデックス。 |
| Hierarchy | String | このプロパティと一緒に設定する必要がある、関連のある依存プロパティを表示します。 |
| Visible | Boolean | プロパティが接続UI に表示されるかどうかを通知します。 |
| ETC | String | プロパティに関するその他のさまざまな情報。 |
Cloud がデータソースにオフロードできるSELECT クエリ処理について説明します。
SQL 構文の詳細については、SQL 準拠 を参照してください。
以下はSQL 機能のサンプルデータセットです。 SELECT 機能のいくつかの側面がサポートされている場合には、カンマ区切りのリストで返されます。サポートされていない場合、カラムにはNO が入ります。
| 名前 | 説明 | 有効な値 |
| AGGREGATE_FUNCTIONS | サポートされている集計関数。 | AVG, COUNT, MAX, MIN, SUM, DISTINCT |
| COUNT | COUNT 関数がサポートされているかどうか。 | YES, NO |
| IDENTIFIER_QUOTE_OPEN_CHAR | 識別子をエスケープするための開始文字。 | [ |
| IDENTIFIER_QUOTE_CLOSE_CHAR | 識別子をエスケープするための終了文字。 | ] |
| SUPPORTED_OPERATORS | サポートされているSQL 演算子。 | =, >, <, >=, <=, <>, !=, LIKE, NOT LIKE, IN, NOT IN, IS NULL, IS NOT NULL, AND, OR |
| GROUP_BY | GROUP BY がサポートされているかどうか。サポートされている場合、どのレベルでサポートされているか。 | NO, NO_RELATION, EQUALS_SELECT, SQL_GB_COLLATE |
| OJ_CAPABILITIES | サポートされている外部結合の種類。 | NO, LEFT, RIGHT, FULL, INNER, NOT_ORDERED, ALL_COMPARISON_OPS |
| OUTER_JOINS | 外部結合がサポートされているかどうか。 | YES, NO |
| SUBQUERIES | サブクエリがサポートされているかどうか。サポートされていれば、どのレベルでサポートされているか。 | NO, COMPARISON, EXISTS, IN, CORRELATED_SUBQUERIES, QUANTIFIED |
| 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 | サポートされている数値関数。 | 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 | サポートされている日付および時刻関数。 | 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 | レプリケーション中にスキップされたテーブルを示します。 | |
| REPLICATION_TIMECHECK_COLUMNS | レプリケーション中に更新判断のカラムとして使用するかどうかを、(指定された順に)チェックするカラムのリストを含む文字列の配列。 | |
| IDENTIFIER_PATTERN | 識別子としてどの文字列が有効かを示す文字列値。 | |
| SUPPORT_TRANSACTION | プロバイダーが、コミットやロールバックなどのトランザクションをサポートしているかどうかを示します。 | YES, NO |
| DIALECT | 使用するSQL ダイアレクトを示します。 | |
| KEY_PROPERTIES | Uniform データベースを特定するプロパティを示します。 | |
| SUPPORTS_MULTIPLE_SCHEMAS | プロバイダー用に複数のスキームが存在するかどうかを示します。 | YES, NO |
| SUPPORTS_MULTIPLE_CATALOGS | プロバイダー用に複数のカタログが存在するかどうかを示します。 | YES, NO |
| DATASYNCVERSION | このドライバーにアクセスするために必要な、CData Sync のバージョン。 | Standard, Starter, Professional, Enterprise |
| DATASYNCCATEGORY | このドライバーのCData Sync カテゴリ。 | Source, Destination, Cloud Destination |
| SUPPORTSENHANCEDSQL | API で提供されている以上の、追加SQL 機能がサポートされているかどうか。 | TRUE, FALSE |
| SUPPORTS_BATCH_OPERATIONS | バッチ操作がサポートされているかどうか。 | YES, NO |
| SQL_CAP | このドライバーでサポートされているすべてのSQL 機能。 | 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 | 使用したいcacheOptions を指定する文字列値。 | |
| ENABLE_EF_ADVANCED_QUERY | ドライバーがEntity Framework の高度なクエリをサポートしているかどうかを示します。サポートしていなければ、クエリはクライアントサイドで処理されます。 | YES, NO |
| PSEUDO_COLUMNS | 利用可能な疑似カラムを示す文字列の配列。 | |
| MERGE_ALWAYS | 値がtrue であれば、CData Sync 内でMerge Model が強制的に実行されます。 | TRUE, FALSE |
| REPLICATION_MIN_DATE_QUERY | レプリケート開始日時を返すSELECT クエリ。 | |
| REPLICATION_MIN_FUNCTION | サーバーサイドでmin を実行するために使用する式名を、プロバイダーが指定できるようになります。 | |
| REPLICATION_START_DATE | レプリケート開始日を、プロバイダーが指定できるようになります。 | |
| REPLICATION_MAX_DATE_QUERY | レプリケート終了日時を返すSELECT クエリ。 | |
| REPLICATION_MAX_FUNCTION | サーバーサイドでmax を実行するために使用する式名を、プロバイダーが指定できるようになります。 | |
| IGNORE_INTERVALS_ON_INITIAL_REPLICATE | 初回のレプリケートで、レプリケートをチャンクに分割しないテーブルのリスト。 | |
| CHECKCACHE_USE_PARENTID | CheckCache 構文を親キーカラムに対して実行するかどうかを示します。 | TRUE, FALSE |
| CREATE_SCHEMA_PROCEDURES | スキーマファイルの生成に使用できる、ストアドプロシージャを示します。 |
次のクエリは、WHERE 句で使用できる演算子を取得します。
SELECT * FROM sys_sqlinfo WHERE Name = 'SUPPORTED_OPERATORS'
WHERE 句では、個々のテーブルの制限や要件が異なる場合がありますので注意してください。詳しくは、データモデル セクションを参照してください。
| Name | Type | Description |
| NAME | String | SQL 構文のコンポーネント、またはサーバー上で処理できる機能。 |
| VALUE | String | サポートされるSQL またはSQL 構文の詳細。 |
試行された変更に関する情報を返します。
次のクエリは、バッチ処理で変更された行のId を取得します。
SELECT * FROM sys_identity
| Name | Type | Description |
| Id | String | データ変更処理から返された、データベース生成Id。 |
| Batch | String | バッチの識別子。1 は単一処理。 |
| Operation | String | バッチ内の処理の結果:INSERTED、UPDATED、またはDELETED。 |
| Message | String | SUCCESS、またはバッチ内の更新が失敗した場合のエラーメッセージ。 |
利用可能なシステム情報を説明します。
次のクエリは、すべてのカラムを取得します。
SELECT * FROM sys_information
| Name | Type | Description |
| Product | String | 製品名。 |
| Version | String | 製品のバージョン番号。 |
| Datasource | String | 製品が接続するデータソースの名前。 |
| NodeId | String | 製品がインストールされているマシンの固有識別子。 |
| HelpURL | String | 製品のヘルプドキュメントのURL。 |
| License | String | 製品のライセンス情報。(この情報が利用できない場合、この項目は空白のままか「N/A」と表示されます。) |
| Location | String | 製品のライブラリが格納されているファイルパスの場所。 |
| Environment | String | 製品が現在稼働している環境またはランタイムのバージョン。 |
| DataSyncVersion | String | 本コネクタを使用するために必要なCData Sync のティア。 |
| DataSyncCategory | String | CData Sync 機能のカテゴリ(例:Source、Destination)。 |
| プロパティ | 説明 |
| AuthScheme | The type of authentication to use when connecting to BigCommerce. |
| プロパティ | 説明 |
| OAuthClientId | カスタムOAuth アプリケーションの作成時に割り当てられたクライアントId を指定します。(コンシューマーキーとも呼ばれます。)このID は、カスタムアプリケーションをOAuth 認可サーバーに登録します。 |
| OAuthClientSecret | カスタムOAuth アプリケーションの作成時に割り当てられたクライアントシークレットを指定します。( コンシューマーシークレット とも呼ばれます。)このシークレットは、カスタムアプリケーションをOAuth 認可サーバーに登録します。 |
| OAuthAccessToken | OAuth ネットワークへの認証後に受け取ったトークンで、ユーザーにアクセス権を付与します。 アクセストークンはユーザーのログインID とパスワードの代わりに使用され、サーバーに保持されます。 |
| StoreId | The store hash for this BigCommerce account. |
| プロパティ | 説明 |
| SSLServerCert | TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。 |
| プロパティ | 説明 |
| Verbosity | ログファイルのVerbosity レベルを指定し、記録される情報の詳細度を制御します。サポートされる値の範囲は1から5までです。 |
| プロパティ | 説明 |
| BrowsableSchemas | レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。 |
| プロパティ | 説明 |
| CustomFieldDiscovery | Use this property to specify whether to merge customfields by name or create unique customfields by id to the Products table. |
| IncludeCustomFields | A boolean indicating if you would like to include custom fields in the column listing. |
| MaxRows | 集計やGROUP BY を使用しないクエリで返される最大行数を指定します。 |
| PseudoColumns | テーブルカラムとして公開する擬似カラムを指定します。'TableName=ColumnName;TableName=ColumnName' という形式を使用します。デフォルトは空の文字列で、このプロパティを無効にします。 |
| RowScanDepth | テーブルで利用可能なカラムを探すためにスキャンする行数の最大値。 |
| Timeout | provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。デフォルトは60秒です。タイムアウトを無効にするには0を設定します。 |
このセクションでは、本プロバイダーの接続文字列で設定可能なAuthentication プロパティの全リストを提供します。
| プロパティ | 説明 |
| AuthScheme | The type of authentication to use when connecting to BigCommerce. |
The type of authentication to use when connecting to BigCommerce.
string
"OAuth"
このセクションでは、本プロバイダーの接続文字列で設定可能なOAuth プロパティの全リストを提供します。
| プロパティ | 説明 |
| OAuthClientId | カスタムOAuth アプリケーションの作成時に割り当てられたクライアントId を指定します。(コンシューマーキーとも呼ばれます。)このID は、カスタムアプリケーションをOAuth 認可サーバーに登録します。 |
| OAuthClientSecret | カスタムOAuth アプリケーションの作成時に割り当てられたクライアントシークレットを指定します。( コンシューマーシークレット とも呼ばれます。)このシークレットは、カスタムアプリケーションをOAuth 認可サーバーに登録します。 |
| OAuthAccessToken | OAuth ネットワークへの認証後に受け取ったトークンで、ユーザーにアクセス権を付与します。 アクセストークンはユーザーのログインID とパスワードの代わりに使用され、サーバーに保持されます。 |
| StoreId | The store hash for this BigCommerce account. |
カスタムOAuth アプリケーションの作成時に割り当てられたクライアントId を指定します。(コンシューマーキーとも呼ばれます。)このID は、カスタムアプリケーションをOAuth 認可サーバーに登録します。
string
""
OAuthClientId は、ユーザーがOAuth 経由で認証を行う前に設定する必要があるいくつかの接続パラメータの1つです。詳細は接続の確立を参照してください。
カスタムOAuth アプリケーションの作成時に割り当てられたクライアントシークレットを指定します。( コンシューマーシークレット とも呼ばれます。)このシークレットは、カスタムアプリケーションをOAuth 認可サーバーに登録します。
string
""
OAuthClientSecret は、ユーザーがOAuth 経由で認証を行う前に設定する必要があるいくつかの接続パラメータの1つです。詳細は接続の確立を参照してください。
OAuth ネットワークへの認証後に受け取ったトークンで、ユーザーにアクセス権を付与します。 アクセストークンはユーザーのログインID とパスワードの代わりに使用され、サーバーに保持されます。
string
""
OAuth アクセストークンにはサーバーに依存する時間制限があり、ユーザーのアクセスを制限します。これは、OAuthExpiresIn プロパティを使用して設定します。ただし、ユーザーが操作を続けている限り、リクエスト間で再発行することでアクセスを維持することができます。
InitiateOAuth がREFRESH に設定されている場合、OAuthExpiresIn とOAuthTokenTimestamp の両方を設定することを推奨します。 Cloud は、これらのプロパティを使用してトークンの有効期限を判断し、最も効率的にリフレッシュできるようにします。
OAuthExpiresIn およびOAuthTokenTimestamp が指定されていない場合、Cloud はトークンを直ちにリフレッシュします。
The store hash for this BigCommerce account.
string
""
The store hash for this BigCommerce account.
このセクションでは、本プロバイダーの接続文字列で設定可能なSSL プロパティの全リストを提供します。
| プロパティ | 説明 |
| SSLServerCert | TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。 |
TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。
string
""
TLS/SSL 接続を使用する場合は、このプロパティを使用して、サーバーが受け入れるTLS/SSL 証明書を指定できます。コンピュータによって信頼されていない他の証明書はすべて拒否されます。
このプロパティは、次のフォームを取ります:
| 説明 | 例 |
| フルPEM 証明書(例では省略されています) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
| 証明書を保有するローカルファイルへのパス。 | C:\cert.cer |
| 公開鍵(例では省略されています) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
| MD5 Thumbprint (hex 値はスペースおよびコロン区切り) | ecadbdda5a1529c58a1e9e09828d70e4 |
| SHA1 Thumbprint (hex 値はスペースおよびコロン区切り) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
これを指定しない場合は、マシンが信用するすべての証明書が受け入れられます。
すべての証明書の受け入れを示すには、'*'を使用します。セキュリティ上の理由から、これはお勧めできません。
このセクションでは、本プロバイダーの接続文字列で設定可能なLogging プロパティの全リストを提供します。
| プロパティ | 説明 |
| Verbosity | ログファイルのVerbosity レベルを指定し、記録される情報の詳細度を制御します。サポートされる値の範囲は1から5までです。 |
ログファイルのVerbosity レベルを指定し、記録される情報の詳細度を制御します。サポートされる値の範囲は1から5までです。
string
"1"
このプロパティは、Cloud がログファイルに含める詳細レベルを定義します。 Verbosity レベルを高くするとログに記録される情報の詳細が増えますが、ログファイルが大きくなり取り込まれるデータが増えるためパフォーマンスが低下する可能性があります。
デフォルトのVerbosity レベルは1で、通常の運用にはこれが推奨されます。 より高いVerbosity レベルは主にデバッグを目的としています。 各レベルの詳細については、ログ を参照してください。
LogModules プロパティと組み合わせることで、Verbosity は特定の情報カテゴリに対するログの詳細度を調整できます。
このセクションでは、本プロバイダーの接続文字列で設定可能なSchema プロパティの全リストを提供します。
| プロパティ | 説明 |
| BrowsableSchemas | レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。 |
レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。
string
""
利用可能なデータベーススキーマをすべてリストすると余分な時間がかかり、パフォーマンスが低下します。 接続文字列にスキーマのリストを指定することで、時間を節約しパフォーマンスを向上させることができます。
このセクションでは、本プロバイダーの接続文字列で設定可能なMiscellaneous プロパティの全リストを提供します。
| プロパティ | 説明 |
| CustomFieldDiscovery | Use this property to specify whether to merge customfields by name or create unique customfields by id to the Products table. |
| IncludeCustomFields | A boolean indicating if you would like to include custom fields in the column listing. |
| MaxRows | 集計やGROUP BY を使用しないクエリで返される最大行数を指定します。 |
| PseudoColumns | テーブルカラムとして公開する擬似カラムを指定します。'TableName=ColumnName;TableName=ColumnName' という形式を使用します。デフォルトは空の文字列で、このプロパティを無効にします。 |
| RowScanDepth | テーブルで利用可能なカラムを探すためにスキャンする行数の最大値。 |
| Timeout | provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。デフォルトは60秒です。タイムアウトを無効にするには0を設定します。 |
Use this property to specify whether to merge customfields by name or create unique customfields by id to the Products table.
string
"ByID"
A boolean indicating if you would like to include custom fields in the column listing.
bool
true
Setting this to true will cause custom fields to be included in the column listing, but may cause poor performance when listing metadata.
集計やGROUP BY を使用しないクエリで返される最大行数を指定します。
int
-1
このプロパティは、集計やGROUP BY 句を含まないクエリに対してCloud が返す行数の上限を設定します。 この制限により、クエリがデフォルトで過度に大きな結果セットを返さないようにします。
クエリにLIMIT 句が含まれている場合、クエリで指定された値がMaxRows 設定よりも優先されます。 MaxRows が"-1" に設定されている場合、LIMIT 句が明示的にクエリに含まれていない限り、行の制限は行われません。
このプロパティは、非常に大きなデータセットを返す可能性のあるクエリを実行する際に、パフォーマンスを最適化し過剰なリソース消費を防ぐのに役立ちます。
テーブルカラムとして公開する擬似カラムを指定します。'TableName=ColumnName;TableName=ColumnName' という形式を使用します。デフォルトは空の文字列で、このプロパティを無効にします。
string
""
このプロパティを使用すると、Cloud がテーブルカラムとして公開する擬似カラムを定義できます。
個々の擬似カラムを指定するには、以下の形式を使用します。"Table1=Column1;Table1=Column2;Table2=Column3"
すべてのテーブルのすべての擬似カラムを含めるには、次のようにします:"*=*"
テーブルで利用可能なカラムを探すためにスキャンする行数の最大値。
int
100
テーブルのカラムはテーブル行をスキャンすることで決定される必要があります。この値はスキャンされる行数の最大値を設定します。
大きい値を設定すると、パフォーマンスが低下する場合があります。小さい値を設定すると、特にnull データがある場合には、データ型を正しく判定できない場合があります。
provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。デフォルトは60秒です。タイムアウトを無効にするには0を設定します。
int
60
このプロパティは、Cloud が操作をキャンセルする前に操作の完了を待機する最大時間を秒単位で制御します。 操作の完了前にタイムアウト時間が経過すると、Cloud は操作をキャンセルして例外をスローします。
タイムアウトは、クエリや操作全体ではなくサーバーとの個々の通信に適用されます。 例えば、各ページング呼び出しがタイムアウト制限内に完了する場合、クエリは60秒を超えて実行を続けることができます。
このプロパティを0に設定するとタイムアウトが無効になり、操作が成功するか、サーバー側のタイムアウト、ネットワークの中断、またはサーバーのリソース制限などの他の条件で失敗するまで無期限に実行されます。 このプロパティは慎重に使用してください。長時間実行される操作がパフォーマンスを低下させたり、応答しなくなる可能性があるためです。