# Get company by organization number and store id Gets a Company by org no and store id. Used when Company is connected to a specific store. Since Companies are not unique on OrgNo only just the last Company with the specified OrgNo will be returned. Returns null if the Company does not exist. Endpoint: GET /GetCompanyByOrgNoAndStoreId Version: 1.1 ## Query parameters: - `orgNo` (string, required) The organization number of the Company to fetch. All non-numerical characters will be removed in the string before the search. - `storeId` (integer, required) The internal Id of the Store. - `cultureCode` (string) Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application. ## Response 200 fields (application/json): - `Id` (integer,null) The internal Storm Id for the Company. When creating a new Company leave this blank as Storm will generate the Id. - `Key` (string) The system wide unique Key of the Company. - `Code` (string) The external code. Usually the id in the erp system. MaxLength: 50. - `Name` (string) The Name of the Company. MaxLength: 100. - `OrgNo` (string) The organizational number of the Company. Used to identify the Company for some payment methods. The combination of OrgNo and Name must be unique. MaxLength: 50. - `Phone` (string) The Phone number of the Company. MaxLength: 50. - `ReferId` (integer,null) Used to tag a Company with some external id. - `ReferUrl` (string) Used to tag a Company with an incoming URL. MaxLength: 255. - `DeliveryAddresses` (array) A list of delivery Addresses for the Company. When needed the first address in the list will be used. So it is vital in the checkout process to either sort them or just supply one delivery address. Company addresses will override Customer addresses if both exists in the Checkout process. - `DeliveryAddresses.Id` (integer,null) The internal Id of the Address. When creating a new Address leave this blank as Storm will generate the Id. - `DeliveryAddresses.CareOf` (string) The CareOf of the Address. MaxLength: 100. - `DeliveryAddresses.Line1` (string) The first address line of the Address. MaxLength: 255. - `DeliveryAddresses.Line2` (string) The second address line of the Address. MaxLength: 255. - `DeliveryAddresses.Zip` (string) The zip code of the Address. MaxLength: 50. - `DeliveryAddresses.City` (string) The City of the Address. MaxLength: 50. - `DeliveryAddresses.CountryId` (integer) The internal Id for the country associated to the Address. When creating or updating Country on an Address either specify the CountryId or just the Country string. If Id is specified it will be used to resolve the Name. If none is specified the default for the Application will be used. - `DeliveryAddresses.Country` (string) The country name of the Address. When creating or updating Country on an Address either specify the CountryId or just the Country string. If Name is specified it will be used to resolve the Name and Id. Name should then be specified as Country.Code since Names are culture specific. If none is specified the default for the Application will be used. MaxLength: 50. - `DeliveryAddresses.Region` (string) The Region of the Address. MaxLength: 50. - `DeliveryAddresses.IsValidated` (boolean) Indicates if the address had been validated. It is up to the Application to validate addresses. Use normal address-methods to update this value. - `DeliveryAddresses.GlobalLocationNo` (string) The Global Location Number (GLN) is part of the GS1 systems of standards. It is a simple tool used to identify a location and can identify locations uniquely where required. This is only used for invoice addresses. MaxLength: 50. - `DeliveryAddresses.ShippingPhoneNumber` (string) Phone number for shipping address. Only applicable in shipping addresses. MaxLength: 50. - `InvoiceAddress` (object) - `UseInvoiceAddressAsDeliveryAddress` (boolean) Can be used when updating or inserting addresses on Company. If set to true the invoice address will be used as a delivery address as well. Then just an invoice address needs to be passed in. The deliveryAddress will be ignored. If set to false both invoice address and delivery address must be specified. - `Info` (array) Contains a list of id-value pairs specific to the client for this company. Use ApplicationService.ListCompanyInfoTypes for id lookup. - `Info.Id` (integer) The internal Id of the Entity. This Id might be different in different tiers such as Stage and Production. Use Code if hard coding is required. - `Info.Value` (string) The Value of the Entity. MaxLength: max. - `Info.Code` (string) The Code of the Entity, if existing. Use this value when hard coding is required. MaxLength: 255. - `PricelistIds` (array) Contains a list of priceList ids valid for this company. It will be empty if no priceLists exist. It can be used to check products lists if they are from a company specific priceList. No need to pass this into List-methods since they are considered any way in the methods. This property should be considered as ReadOnly as priceLists are maintained else where. - `ParentId` (integer,null) Points to an optional parent company. Used when companies are connected some how. - `DeliveryMethodIds` (array) Contains a list of delivery method ids valid for this company. It will be empty if no delivery methods exist. - `PaymentMethodIds` (array) Contains a list of payment method ids valid for this company. It will be empty if no payment methods exist. - `Email` (string) The Email address of the Company. MaxLength: 255. - `Flags` (array) A list of Flags of the Company. See Flag for information about flags. Flags can be used in Promotions or otherwise to provide custom handling of specific Companies. - `Flags.Id` (integer) The internal Id of the Flag. - `Flags.Name` (string) The Name of the Flag. MaxLength: 50. - `Flags.Group` (integer) The GroupId of the Flag. - `Flags.IsSelected` (boolean) Indicates if the Flag is selected or not. - `VatNo` (string) This is the VAT registration number for the company. MaxLength: 50.