--- title: companyLocationAssignAddress - Customer API description: Updates an address on a company location. api_version: 2025-10 api_name: customer type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/customer/latest/mutations/companylocationassignaddress md: https://shopify.dev/docs/api/customer/latest/mutations/companylocationassignaddress.md --- # company​Location​Assign​Address mutation Updates an address on a company location. ## Arguments * address [Company​Address​Input!](https://shopify.dev/docs/api/customer/latest/input-objects/CompanyAddressInput) required The input fields to use to update the address. * address​Types [\[Company​Address​Type!\]!](https://shopify.dev/docs/api/customer/latest/enums/CompanyAddressType) required The list of address types on the location to update. * location​Id [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID) required The ID of the company location to update addresses on. *** ## Company​Location​Assign​Address​Payload returns * addresses [\[Company​Address!\]](https://shopify.dev/docs/api/customer/latest/objects/CompanyAddress) The list of updated addresses on the company location. * user​Errors [\[Business​Customer​User​Error!\]!](https://shopify.dev/docs/api/customer/latest/objects/BusinessCustomerUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### companyLocationAssignAddress reference ## Mutation Reference ```graphql mutation companyLocationAssignAddress($locationId: ID!, $address: CompanyAddressInput!, $addressTypes: [CompanyAddressType!]!) { companyLocationAssignAddress(locationId: $locationId, address: $address, addressTypes: $addressTypes) { addresses { # CompanyAddress fields } userErrors { field message } } } ``` ## Input ```json { "locationId": "gid://shopify//10079785100", "address": { "firstName": "", "lastName": "", "recipient": "", "address1": "", "address2": "", "city": "", "countryCode": "AF", "phone": "", "zoneCode": "", "zip": "" }, "addressTypes": [ "BILLING" ] } ```