# Companies ## Delete customer from company - [POST /DeleteCompanyCustomer](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/deletecompanycustomer.md): Deletes a Customer from the Company. It does not delete the Customer from Storm but just removes the relation between Company and Customer. ## Delete delivery method for company - [POST /DeleteCompanyDeliveryMethod](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/deletecompanydeliverymethod.md): Deletes a DeliveryMethod for the specified Company. ## Delete company discount - [POST /DeleteCompanyDiscount](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/deletecompanydiscount.md): Deletes the discount. ## Delete payment method for company - [POST /DeleteCompanyPaymentMethod](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/deletecompanypaymentmethod.md): Deletes a PaymentMethod for the specified Company. ## Get a company - [GET /GetCompany](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/getcompany.md): Gets a Company by internal id. Returns null if the Company does not exist. ## Get company by code - [GET /GetCompanyByCode](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/getcompanybycode.md): Gets a Company by external code. Returns null if the Company does not exist. ## Get company by organization number - [GET /GetCompanyByOrgNo](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/getcompanybyorgno.md): Gets a Company by org no. 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. ## Get company by organization number and store id - [GET /GetCompanyByOrgNoAndStoreId](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/getcompanybyorgnoandstoreid.md): 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. ## Get payment method for company - [GET /GetCompanyPaymentMethod](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/getcompanypaymentmethod.md): Gets a company payment method. ## Inactivate company - [POST /InactivateCompany](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/inactivatecompany.md): Inactivates a Company. Inactivated Companies cannot be activated again. ## Insert customer in company (v2) - [POST /InsertCompanyCustomer2](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/insertcompanycustomer2.md): Inserts a customer into a company. ## Insert delivery method for company - [POST /InsertCompanyDeliveryMethod](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/insertcompanydeliverymethod.md): Inserts a DeliveryMethod for the specified Company. ## Insert payment method for company - [POST /InsertCompanyPaymentMethod](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/insertcompanypaymentmethod.md): Inserts a PaymentMethod for the specified Company. Legacy method. Use InserCompanyPaymentMethod2 when possible. ## Insert payment method for company (v2) - [POST /InsertCompanyPaymentMethod2](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/insertcompanypaymentmethod2.md): Inserts a PaymentMethod for the specified Company. Version 2 of this method which also takes a invoiceCaptureSettingsCode ## List companies by organization number - [GET /ListCompaniesByOrgNo](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/listcompaniesbyorgno.md): Lists Companies by organization number. Note that OrgNo need not be unique within storm, only the combination of OrgNo and Name must be unique. ## List companies by parent - [GET /ListCompaniesByParent](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/listcompaniesbyparent.md): Lists Companies by parent company. ## List company by info type - [GET /ListCompanyByInfoType](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/listcompanybyinfotype.md): Returns a list of Companies by info type value. Returns an empty list if the Companies does not exist. ## List company discounts - [GET /ListCompanyDiscounts](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/listcompanydiscounts.md): Lists Company discounts. ## Update a company - [POST /UpdateCompany](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/updatecompany.md): UpdateCompany updates or creates a Company in Storm for the specified customer. Validation is done before trying to update or create the Company and the below Exceptions might be raised if any important information is missing. Any existing Company will be updated as well. Supply all root data (Code, Name, OrgNo, Phone, ReferUrl, Email, VatNo) about the Company - empty or missing input fields will be emptied. Note though that any missing lists or objects (Addresses, Flags, Info, DeliveryMethodIds, PaymentMethodIds) fields that are not passed in will not be removed but just not updated. PriceLists are not affected here at all. ## Insert or update company discounts - [POST /UpsertCompanyDiscounts](https://docs.norce.io/api-reference/services/customerservice/openapi/companies/upsertcompanydiscounts.md): Inserts or updates a list of CompanyDiscounts in Storm. Any non-existing discount will be inserted. Existing discounts will be updated. Note that it is only the discount field that can be updated. In order to update the value field, the entity must first be deleted and then re-inserted.