{"title":"Stock Location Object Reference","slug":"stock-location-object-reference","url":"https://support.storeconnect.com/articles/stock-location-object-reference","url_markdown":"https://support.storeconnect.com/articles/stock-location-object-reference.md","subtitle":null,"summary":"Represents a specific location where stock is held to be sold.","type":"Developer_Documentation","video_url":"","keywords":"salesforce, object reference, Stock Location, s_c__Stock_Location__c, api","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Overview\n\nRepresents a specific location where stock is held to be sold.\n\n| Property | Value |\n|----------|-------|\n| **API Name** | `s_c__Stock_Location__c` |\n| **Label** | Stock Location |\n| **Plural Label** | Stock Locations |\n| **Type** | Custom Object |\n\n## Fields\n\n| Field Label | API Name | Type | Required | Description |\n|-------------|----------|------|----------|-------------|\n| Active | `s_c__Active__c` | Checkbox | No | Is this stock location active and holding stock. |\n| Address Line 1 | `s_c__Address1__c` | Text(255) | No | The first line street address of the `Stock_Location__c` displayed to the end user if `Stock_Location__c.Online_Fulfillment_Options__c` is set to `Click and Collect only` or `Shipping with Click and Collect`. |\n| Address Line 2 | `s_c__Address2__c` | Text(255) | No | The second line street address of the `Stock_Location__c` displayed to the end user if `Stock_Location__c.Online_Fulfillment_Options__c` is set to `Click and Collect only` or `Shipping with Click and Collect`. |\n| Backorderable Default | `s_c__Backorderable_Default__c` | Checkbox | No | Sets the value for `Stock_Level__c.Backorderable__c` to match when auto created for this Stock Location. Does not change any existing Stock Level. |\n| City | `s_c__City__c` | Text(255) | No | The city address of the `Stock_Location__c` displayed to the end user if `Stock_Location__c.Online_Fulfillment_Options__c` is set to `Click and Collect only` or `Shipping with Click and Collect`. |\n| Contact Name | `s_c__Contact_Name__c` | Text(255) | No | The name of the contact for the Stock_Location. |\n| Country | `s_c__Country_Id__c` | Lookup ([s_c__Country__c](country-object-reference)) | No | The country within which this stock location is located, this is associated with the Country__c object so that Stock Locations and Taxes and Shipping are all referencing the same object for calculations. |\n| Days to Restock | `s_c__Days_To_Restock__c` | Number(5,2) | No | If this item is out of stock at this location, how many days for the item to get into stock, this is then shown to the customer if they wish to click and collect from this location. |\n| [DEPRECATED] Default | `s_c__Default__c` | Checkbox | No | [DEPRECATED] This fields is for a future release |\n| Display Name | `s_c__Display_Name__c` | Text(255) | No | The name displayed to the customer if click and collect is enabled for this stock location. |\n| Email | `s_c__Email__c` | Text(80) | No | The email address of the Stock_Location. |\n| Geolocation | `s_c__Geolocation__c` | Location | No | The geolocation of this stock location, used for where to buy search if enabled on your store. |\n| Hide From Search Default | `s_c__Hide_From_Search__c` | Checkbox | No | Sets the value for `Stock_Level__c.Hide_From_Search__c` to match when auto created for this Stock Location. Does not change any existing Stock Level. |\n| Logo | `s_c__Media_Id__c` | Lookup ([s_c__Media__c](media-object-reference)) | No | The image of this stock location. |\n| Online Fulfillment Options | `s_c__Online_Fulfillment_Options__c` | Picklist | No | Should the stock location support shipping, click and collect, both, or none? |\n| Phone | `s_c__Phone__c` | Phone | No |  |\n| [DEPRECATED] Priority Location? | `s_c__Priority__c` | Checkbox | No | [DEPRECATED] When enabled, orders will be fullfilled from this location first. Enabling this will disable any other location from being the priority. |\n| Create Stock Levels for New Products | `s_c__Propagate_All_Variants__c` | Checkbox | No | When true, this stock location will automatically create a `Stock_Level__c` record for every product created and will recreate any missing `Stock_Level__c` object that gets deleted. |\n| Require Stock for Click \u0026 Collect | `s_c__Require_Stock_For_Pickup__c` | Checkbox | No | If true, this location will not be available for click and collect if there is no stock available for the product at this location. |\n| State/Province | `s_c__State__c` | Text(255) | No | The state address of the `Stock_Location__c` displayed to the end user if `Stock_Location__c.Online_Fulfillment_Options__c` is set to `Click and Collect only` or `Shipping with Click and Collect`. |\n| Stock Import Filename | `s_c__Stock_Import_Filename__c` | Text(255) | No | The file name used to import stock levels into this stock location if used within your store. Contact support@getstoreconnect.com for usage. |\n| Import ID | `s_c__Stock_Import_Id__c` | Text(255) | No | The stock import ID last used to import stock levels into this stock location if used within your store. Contact support@getstoreconnect.com for usage. |\n| Stock Import Last Completed At | `s_c__Stock_Import_Last_Completed_At__c` | DateTime | No | The date the most recent stock import to import stock levels into this stock location was completed if used within your store. Contact support@getstoreconnect.com for usage. |\n| Stock Import Last Started At | `s_c__Stock_Import_Last_Started_At__c` | DateTime | No | The date the most recent stock import to import stock levels into this stock location was started if used within your store. Contact support@getstoreconnect.com for usage. |\n| Website | `s_c__Website__c` | Text(255) | No | The website of this stock location if it exists. |\n| Zip/Postal Code | `s_c__Zip_Code__c` | Text(20) | No | The zip code of the `Stock_Location__c` displayed to the end user if `Stock_Location__c.Online_Fulfillment_Options__c` is set to `Click and Collect only` or `Shipping with Click and Collect`. |\n| StoreConnect External ID | `s_c__sC_Id__c` | Text(36) | No | StoreConnect External ID, do not modify in Salesforce |\n\n## Relationships\n\n| Field | Type | Related Object | Relationship Name |\n|-------|------|----------------|-------------------|\n| `s_c__Country_Id__c` | Lookup | [s_c__Country__c](country-object-reference) | Stock_Locations_Countries |\n| `s_c__Media_Id__c` | Lookup | [s_c__Media__c](media-object-reference) | Logo |\n\n## Referenced by\n\nThese objects hold a lookup or master-detail relationship to **Stock Location** (`s_c__Stock_Location__c`). Where the referring record exists to join things together, **Also links to** shows what it connects this object to.\n\n| Object | Field | Type | Relationship Name | Also links to |\n|--------|-------|------|-------------------|---------------|\n| [Asset](asset-object-reference) | `s_c__Stock_Location_Id__c` | Lookup | Assets | [OrderItem](orderitem-object-reference), [s_c__Stock_Level__c](stock-level-object-reference) |\n| [s_c__Cart__c](cart-object-reference) | `s_c__Collection_Point_Stock_Location_Id__c` | Lookup | Cart_Collection_Point_Stock_Locations | — |\n| [s_c__Collection_Point__c](collection-point-object-reference) | `s_c__Stock_Location_Id__c` | MasterDetail | Stock_Location_Collection_Points | — |\n| [s_c__Manual_Stock_Adjustment__c](manual-stock-adjustment-object-reference) | `s_c__Stock_Location_Id__c` | Lookup | Manual_Stock_Adjustment_Stock_Locations | — |\n| [s_c__Outlet_Stock_Location__c](outlet-stock-location-object-reference) | `s_c__Stock_Location_Id__c` | Lookup | Outlet_Stock_Locations | [s_c__Outlet__c](outlet-object-reference) |\n| [s_c__Shipment__c](shipment-object-reference) | `s_c__Stock_Location_Id__c` | Lookup | Shipments | — |\n| [s_c__Stock_Level__c](stock-level-object-reference) | `s_c__Stock_Location_Id__c` | MasterDetail | Stock_Location_Level | [Product2](product2-object-reference) |\n| [s_c__Stock_Transfer__c](stock-transfer-object-reference) | `s_c__Destination_Id__c` | Lookup | Destination_Stock_Transfers | — |\n| [s_c__Stock_Transfer__c](stock-transfer-object-reference) | `s_c__Origin_Id__c` | Lookup | Origin_Stock_Transfers | — |\n| [s_c__Store_Stock_Location__c](store-stock-location-object-reference) | `s_c__Stock_Location_Id__c` | Lookup | Stock_Locations | [s_c__Store__c](store-object-reference) |\n\n\u003c!-- DIAGRAM OPPORTUNITY\n     This object is a hub: 2 outbound and 10 inbound relationships. An entity-relationship diagram grouping these by functional area would let a reader see its place in the model without reading two long tables.\n     Deferred to the diagram phase; remove this comment when a diagram is added. --\u003e"}