This endpoint links multiple stores to a new employee, creating employee relationships across multiple store locations simultaneously. This is useful for employees who work across multiple stores or for managers overseeing multiple locations.
This endpoint creates employee relationships between a new employee and multiple stores in a single operation. It’s particularly useful for multi-store employees, area managers, or support staff who need access to multiple store locations.
Request Body
array
required
Array of store IDs to link the employee toExample: [“b2b56ffb-e198-49f3-a1bc-f36ac70f9501”, “d7c17a59-01e1-48f2-a326-2bbd3c888205”]
string
required
The unique employee identifier (UUID format) for this employeeExample: “30523fd1-e108-41d0-a02d-f5907336f2e4”
number
required
The company ID that owns the stores being linkedExample: 1000022
number
required
The user ID of the employee being linked to storesExample: 1000305
Manages operations across multiple store locations
Typically needs manager-level access to all assigned stores
role
Oversees store performance and compliance across a region
May need administrative access for reporting and auditing
role
Works at different stores as needed for coverage
Usually assigned basic employee access to maintain flexibility
role
Provides technical or operational support across multiple locations
Access should be limited to specific functions they support
role
Conducts training programs at multiple store locations
May need temporary elevated access for training purposes
Batch Operation Benefits
Advantages of Multi-Store Linking
benefit
Create multiple employee relationships in a single API call
Reduces API calls and improves performance
benefit
Ensures consistent access levels across all linked stores
Reduces configuration errors and access inconsistencies
benefit
Either all stores link successfully or the operation fails safely
Prevents partial failures that could cause access issues
benefit
Creates comprehensive audit log for multi-store employee setup
Important for compliance and security tracking
Validation and Error Handling
Operation Validation
validation
All store_ids must belong to the specified company_id
Cross-company linking is not permitted for security
validation
All stores must be active and accessible to the requesting user
Inactive or restricted stores will be skipped
validation
Employee ID must be unique across the system
Prevents conflicts and ensures proper identification
validation
User ID must correspond to an existing, active user
Verify user exists before attempting multi-store linking
Use Cases
When to Use This Endpoint
use-case
Set up area managers or regional supervisors with access to multiple stores
Common during leadership team expansion
use-case
Create flexible staff assignments for busy periods
Allows employees to work at multiple locations as needed
use-case
Grant technical or operational support teams access to multiple stores
Useful for maintenance, training, or technical support roles
use-case
Set up franchise owners or operators with access to all their locations
Ensure proper authorization for franchise relationships
Error Recovery
Handling Partial Failures
recovery
Check failed_links array to identify stores that didn’t link successfully
Common failures include inactive stores or permission issues
recovery
Use single-store linking endpoint for failed stores after resolving issues
May require different access levels or additional permissions
recovery
Confirm that successful links provide the expected access
Test access to ensure employee can perform required functions
Partial Success Handling: This endpoint can succeed partially - some stores may link successfully while others fail. Always check both the count and failed_links array.
Company Security: All stores must belong to the same company for security reasons. Cross-company employee access requires separate authorization processes.
Performance Consideration: While efficient for multiple stores, very large store lists may take longer to process. Consider batching for extremely large operations.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Documentation Starter Kit","colors":{"primary":"#2C023B","light":"#D09CE8","dark":"#DE4990"},"favicon":"lula-commerce-favicon.png","logo":{"light":"https://mintcdn.com/lulaconvenience/j9ZBLBNfvCnzqqXy/logo/lula-commerce-logo-primary.png?fit=max\u0026auto=format\u0026n=j9ZBLBNfvCnzqqXy\u0026q=85\u0026s=284bd11c4f3d4f0c15a37b9801dadcc6","dark":"https://mintcdn.com/lulaconvenience/j9ZBLBNfvCnzqqXy/logo/lula-commerce-logo-white.png?fit=max\u0026auto=format\u0026n=j9ZBLBNfvCnzqqXy\u0026q=85\u0026s=16d580a4ae3b30dfd55a7f72ed85a1dd"},"footer":{"socials":{"github":"https://github.com/Lula-Inc","linkedin":"https://www.linkedin.com/company/lula-commerce/"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lulaconvenience","hasAudioNarration":false,"actualSubdomain":"lulaconvenience","customDomains":["developer.lulacommerce.com"],"gitSource":{"type":"github","owner":"lula-inc","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae91638e2896f37251f2584:success","clientVersion":"0.0.4324","searchFilterCounts":[{"language":"default","tag":"API Reference","count":82},{"language":"default","tag":"API Documentation - Latest","count":80},{"language":"default","tag":"Catalog","count":17},{"language":"default","tag":"Orders","count":16},{"language":"default","tag":"Menus","count":14},{"language":"default","tag":"Campaigns","count":13},{"language":"default","tag":"Documentation","count":12},{"language":"default","tag":"Stores","count":11},{"language":"default","tag":"Modifiers","count":10},{"language":"default","tag":"Promotions","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/stores/store-employees/link-store-to-employee","slug":"/api-reference/stores/store-employees/link-store-to-employee","pageMetadata":{"title":"Link Store to Employee","api":"POST https://api-staging.luladelivery.store/stores/store-employees/","description":"This endpoint links multiple stores to a new employee, creating employee relationships across multiple store locations simultaneously. This is useful for employees who work across multiple stores or for managers overseeing multiple locations.","playground":"simple","href":"/api-reference/stores/store-employees/link-store-to-employee"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"This endpoint links multiple stores to a new employee, creating employee relationships across multiple store locations simultaneously. This is useful for employees who work across multiple stores or for managers overseeing multiple locations.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Expandable,Heading,Info,Note,ParamField,ResponseField,Tip,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This endpoint creates employee relationships between a new employee and multiple stores in a single operation. It’s particularly useful for multi-store employees, area managers, or support staff who need access to multiple store locations.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(ParamField,{body:`store_ids`,type:`array`,required:true,id:`param-store-ids`,children:[_jsx(_components.p,{children:`Array of store IDs to link the employee to`}),_jsx(_components.p,{children:`Example: [“b2b56ffb-e198-49f3-a1bc-f36ac70f9501”, “d7c17a59-01e1-48f2-a326-2bbd3c888205”]`})]}),`\n`,_jsxs(ParamField,{body:`employee_id`,type:`string`,required:true,id:`param-employee-id`,children:[_jsx(_components.p,{children:`The unique employee identifier (UUID format) for this employee`}),_jsx(_components.p,{children:`Example: “30523fd1-e108-41d0-a02d-f5907336f2e4”`})]}),`\n`,_jsxs(ParamField,{body:`company_id`,type:`number`,required:true,id:`param-company-id`,children:[_jsx(_components.p,{children:`The company ID that owns the stores being linked`}),_jsx(_components.p,{children:`Example: 1000022`})]}),`\n`,_jsxs(ParamField,{body:`user_id`,type:`number`,required:true,id:`param-user-id`,children:[_jsx(_components.p,{children:`The user ID of the employee being linked to stores`}),_jsx(_components.p,{children:`Example: 1000305`})]}),`\n`,_jsx(Heading,{level:`3`,id:`request-example`,children:`Request Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"store_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"b2b56ffb-e198-49f3-a1bc-f36ac70f9501\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"d7c17a59-01e1-48f2-a326-2bbd3c888205\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"449235c1-3d04-4519-998b-40d2a621e5e0\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"employee_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"30523fd1-e108-41d0-a02d-f5907336f2e4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"company_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000022`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000305`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`count`,type:`number`,id:`param-count`,children:_jsx(_components.p,{children:`Number of stores successfully linked to the employee`})}),`\n`,_jsxs(ResponseField,{name:`successful_links`,type:`array`,id:`param-successful-links`,children:[_jsx(_components.p,{children:`Array of successfully created store-employee relationships`}),_jsxs(Expandable,{title:`Link Details`,children:[_jsx(ResponseField,{name:`store_id`,type:`string`,id:`param-store-id`,children:_jsx(_components.p,{children:`Store ID that was successfully linked`})}),_jsx(ResponseField,{name:`employee_id`,type:`string`,id:`param-employee-id-1`,children:_jsx(_components.p,{children:`Employee ID used for the link`})}),_jsx(ResponseField,{name:`access_level`,type:`string`,id:`param-access-level`,children:_jsx(_components.p,{children:`Access level granted for this store`})}),_jsx(ResponseField,{name:`linked_at`,type:`string`,id:`param-linked-at`,children:_jsx(_components.p,{children:`When the link was created`})})]})]}),`\n`,_jsxs(ResponseField,{name:`failed_links`,type:`array`,id:`param-failed-links`,children:[_jsx(_components.p,{children:`Array of stores that failed to link with error details`}),_jsxs(Expandable,{title:`Failed Link Details`,children:[_jsx(ResponseField,{name:`store_id`,type:`string`,id:`param-store-id-1`,children:_jsx(_components.p,{children:`Store ID that failed to link`})}),_jsx(ResponseField,{name:`error`,type:`string`,id:`param-error`,children:_jsx(_components.p,{children:`Reason for the failure`})}),_jsx(ResponseField,{name:`error_code`,type:`string`,id:`param-error-code`,children:_jsx(_components.p,{children:`Error code for programmatic handling`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`response-example`,children:`Response Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`24`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`24`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"successful_links\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"store_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"b2b56ffb-e198-49f3-a1bc-f36ac70f9501\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"employee_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"30523fd1-e108-41d0-a02d-f5907336f2e4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_level\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"store_employee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"linked_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-11-15T10:30:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"store_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"d7c17a59-01e1-48f2-a326-2bbd3c888205\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"employee_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"30523fd1-e108-41d0-a02d-f5907336f2e4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_level\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"store_employee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"linked_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-11-15T10:30:01.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failed_links\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"store_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"449235c1-3d04-4519-998b-40d2a621e5e0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Store not found or not accessible\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"STORE_NOT_FOUND\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`multi-store-employee-types`,children:`Multi-Store Employee Types`}),`\n`,_jsxs(Accordion,{title:`Common Multi-Store Employee Roles`,id:`common-multi-store-employee-roles`,children:[_jsxs(ResponseField,{name:`Area Manager`,type:`role`,id:`param-area-manager`,children:[_jsx(_components.p,{children:`Manages operations across multiple store locations`}),_jsx(Info,{children:`Typically needs manager-level access to all assigned stores`})]}),_jsxs(ResponseField,{name:`Regional Supervisor`,type:`role`,id:`param-regional-supervisor`,children:[_jsx(_components.p,{children:`Oversees store performance and compliance across a region`}),_jsx(Note,{children:`May need administrative access for reporting and auditing`})]}),_jsxs(ResponseField,{name:`Floating Employee`,type:`role`,id:`param-floating-employee`,children:[_jsx(_components.p,{children:`Works at different stores as needed for coverage`}),_jsx(Tip,{children:`Usually assigned basic employee access to maintain flexibility`})]}),_jsxs(ResponseField,{name:`Support Specialist`,type:`role`,id:`param-support-specialist`,children:[_jsx(_components.p,{children:`Provides technical or operational support across multiple locations`}),_jsx(Warning,{children:`Access should be limited to specific functions they support`})]}),_jsxs(ResponseField,{name:`Trainer`,type:`role`,id:`param-trainer`,children:[_jsx(_components.p,{children:`Conducts training programs at multiple store locations`}),_jsx(Info,{children:`May need temporary elevated access for training purposes`})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`batch-operation-benefits`,children:`Batch Operation Benefits`}),`\n`,_jsxs(Accordion,{title:`Advantages of Multi-Store Linking`,id:`advantages-of-multi-store-linking`,children:[_jsxs(ResponseField,{name:`Efficiency`,type:`benefit`,id:`param-efficiency`,children:[_jsx(_components.p,{children:`Create multiple employee relationships in a single API call`}),_jsx(Note,{children:`Reduces API calls and improves performance`})]}),_jsxs(ResponseField,{name:`Consistency`,type:`benefit`,id:`param-consistency`,children:[_jsx(_components.p,{children:`Ensures consistent access levels across all linked stores`}),_jsx(Info,{children:`Reduces configuration errors and access inconsistencies`})]}),_jsxs(ResponseField,{name:`Atomic Operations`,type:`benefit`,id:`param-atomic-operations`,children:[_jsx(_components.p,{children:`Either all stores link successfully or the operation fails safely`}),_jsx(Tip,{children:`Prevents partial failures that could cause access issues`})]}),_jsxs(ResponseField,{name:`Audit Trail`,type:`benefit`,id:`param-audit-trail`,children:[_jsx(_components.p,{children:`Creates comprehensive audit log for multi-store employee setup`}),_jsx(Warning,{children:`Important for compliance and security tracking`})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`validation-and-error-handling`,children:`Validation and Error Handling`}),`\n`,_jsxs(Accordion,{title:`Operation Validation`,id:`operation-validation`,children:[_jsxs(ResponseField,{name:`Company Ownership`,type:`validation`,id:`param-company-ownership`,children:[_jsx(_components.p,{children:`All store_ids must belong to the specified company_id`}),_jsx(Warning,{children:`Cross-company linking is not permitted for security`})]}),_jsxs(ResponseField,{name:`Store Accessibility`,type:`validation`,id:`param-store-accessibility`,children:[_jsx(_components.p,{children:`All stores must be active and accessible to the requesting user`}),_jsx(Note,{children:`Inactive or restricted stores will be skipped`})]}),_jsxs(ResponseField,{name:`Employee ID Uniqueness`,type:`validation`,id:`param-employee-id-uniqueness`,children:[_jsx(_components.p,{children:`Employee ID must be unique across the system`}),_jsx(Info,{children:`Prevents conflicts and ensures proper identification`})]}),_jsxs(ResponseField,{name:`User Existence`,type:`validation`,id:`param-user-existence`,children:[_jsx(_components.p,{children:`User ID must correspond to an existing, active user`}),_jsx(Tip,{children:`Verify user exists before attempting multi-store linking`})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`use-cases`,children:`Use Cases`}),`\n`,_jsxs(Accordion,{title:`When to Use This Endpoint`,id:`when-to-use-this-endpoint`,children:[_jsxs(ResponseField,{name:`New Manager Onboarding`,type:`use-case`,id:`param-new-manager-onboarding`,children:[_jsx(_components.p,{children:`Set up area managers or regional supervisors with access to multiple stores`}),_jsx(Note,{children:`Common during leadership team expansion`})]}),_jsxs(ResponseField,{name:`Seasonal Staffing`,type:`use-case`,id:`param-seasonal-staffing`,children:[_jsx(_components.p,{children:`Create flexible staff assignments for busy periods`}),_jsx(Info,{children:`Allows employees to work at multiple locations as needed`})]}),_jsxs(ResponseField,{name:`Support Team Setup`,type:`use-case`,id:`param-support-team-setup`,children:[_jsx(_components.p,{children:`Grant technical or operational support teams access to multiple stores`}),_jsx(Tip,{children:`Useful for maintenance, training, or technical support roles`})]}),_jsxs(ResponseField,{name:`Franchise Operations`,type:`use-case`,id:`param-franchise-operations`,children:[_jsx(_components.p,{children:`Set up franchise owners or operators with access to all their locations`}),_jsx(Warning,{children:`Ensure proper authorization for franchise relationships`})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`error-recovery`,children:`Error Recovery`}),`\n`,_jsxs(Accordion,{title:`Handling Partial Failures`,id:`handling-partial-failures`,children:[_jsxs(ResponseField,{name:`Review Failed Links`,type:`recovery`,id:`param-review-failed-links`,children:[_jsx(_components.p,{children:`Check failed_links array to identify stores that didn’t link successfully`}),_jsx(Note,{children:`Common failures include inactive stores or permission issues`})]}),_jsxs(ResponseField,{name:`Retry Individual Stores`,type:`recovery`,id:`param-retry-individual-stores`,children:[_jsx(_components.p,{children:`Use single-store linking endpoint for failed stores after resolving issues`}),_jsx(Tip,{children:`May require different access levels or additional permissions`})]}),_jsxs(ResponseField,{name:`Verify Successful Links`,type:`recovery`,id:`param-verify-successful-links`,children:[_jsx(_components.p,{children:`Confirm that successful links provide the expected access`}),_jsx(Info,{children:`Test access to ensure employee can perform required functions`})]})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Partial Success Handling:`}),` This endpoint can succeed partially - some stores may link successfully while others fail. Always check both the count and failed_links array.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Company Security:`}),` All stores must belong to the same company for security reasons. Cross-company employee access requires separate authorization processes.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Performance Consideration:`}),` While efficient for multiple stores, very large store lists may take longer to process. Consider batching for extremely large operations.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Link Store to Employee","api":"POST https://api-staging.luladelivery.store/stores/store-employees/","description":"This endpoint links multiple stores to a new employee, creating employee relationships across multiple store locations simultaneously. This is useful for employees who work across multiple stores or for managers overseeing multiple locations.","playground":"simple","href":"/api-reference/stores/store-employees/link-store-to-employee"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request Body","slug":"request-body","depth":3,"children":[]},{"title":"Request Example","slug":"request-example","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Response Example","slug":"response-example","depth":3,"children":[]},{"title":"Multi-Store Employee Types","slug":"multi-store-employee-types","depth":3,"children":[]},{"title":"Batch Operation Benefits","slug":"batch-operation-benefits","depth":3,"children":[]},{"title":"Validation and Error Handling","slug":"validation-and-error-handling","depth":3,"children":[]},{"title":"Use Cases","slug":"use-cases","depth":3,"children":[]},{"title":"Error Recovery","slug":"error-recovery","depth":3,"children":[]}],"codeExamples":{},"endpoint":{"title":"Link Store to Employee","path":"/stores/store-employees/","servers":[{"url":"https://api-staging.luladelivery.store"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"store_ids":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Array of store IDs to link the employee to Example: [“b2b56ffb-e198-49f3-a1bc-f36ac70f9501”, “d7c17a59-01e1-48f2-a326-2bbd3c888205”]","required":true}],"employee_id":[{"type":"string","description":"The unique employee identifier (UUID format) for this employee Example: “30523fd1-e108-41d0-a02d-f5907336f2e4”","required":true}],"company_id":[{"type":"number","description":"The company ID that owns the stores being linked Example: 1000022","required":true}],"user_id":[{"type":"number","description":"The user ID of the employee being linked to stores Example: 1000305","required":true}]}}],"examples":{"example":{"value":{"store_ids":[{}],"employee_id":"\u003cstring>","company_id":123,"user_id":123}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"count":[{"type":"number","description":"Number of stores successfully linked to the employee"}],"successful_links":[{"type":"array","items":[{"type":"object","properties":{"store_id":[{"type":"string","description":"Store ID that was successfully linked"}],"employee_id":[{"type":"string","description":"Employee ID used for the link"}],"access_level":[{"type":"string","description":"Access level granted for this store"}],"linked_at":[{"type":"string","description":"When the link was created"}]}}],"description":"Array of successfully created store-employee relationships"}],"failed_links":[{"type":"array","items":[{"type":"object","properties":{"store_id":[{"type":"string","description":"Store ID that failed to link"}],"error":[{"type":"string","description":"Reason for the failure"}],"error_code":[{"type":"string","description":"Error code for programmatic handling"}]}}],"description":"Array of stores that failed to link with error details"}]}}],"examples":{"example":{"value":{"count":123,"successful_links":[{"store_id":"\u003cstring>","employee_id":"\u003cstring>","access_level":"\u003cstring>","linked_at":"\u003cstring>"}],"failed_links":[{"store_id":"\u003cstring>","error":"\u003cstring>","error_code":"\u003cstring>"}]}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"lulaconvenience","siteName":"Documentation Starter Kit","title":"Link Store to Employee - Documentation Starter Kit","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T22:52:39.452Z","originalFileLocation":"api-reference/stores/store-employees/link-store-to-employee.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"This endpoint links multiple stores to a new employee, creating employee relationships across multiple store locations simultaneously. This is useful for employees who work across multiple stores or for managers overseeing multiple locations.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Documentation Starter Kit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lulaconvenience/T9P5PJWTg2EYuDhN/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lulaconvenience/T9P5PJWTg2EYuDhN/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lulaconvenience/T9P5PJWTg2EYuDhN/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lulaconvenience/T9P5PJWTg2EYuDhN/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lulaconvenience/T9P5PJWTg2EYuDhN/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lulaconvenience/T9P5PJWTg2EYuDhN/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lulaconvenience/T9P5PJWTg2EYuDhN/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lulaconvenience/T9P5PJWTg2EYuDhN/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lulaconvenience/T9P5PJWTg2EYuDhN/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Link Store to Employee - Documentation Starter Kit\">\u003cmeta data-mint-head property=\"og:description\" content=\"This endpoint links multiple stores to a new employee, creating employee relationships across multiple store locations simultaneously. This is useful for employees who work across multiple stores or for managers overseeing multiple locations.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Documentation Starter Kit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.lulacommerce.com/api-reference/stores/store-employees/link-store-to-employee\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lulaconvenience.mintlify.site/_mintlify/api/og/v2?division=Store+Employees\u0026amp;title=Link+Store+to+Employee\u0026amp;description=This+endpoint+links+multiple+stores+to+a+new+employee%2C+creating+employee+relationships+across+multiple+store+locations+simultaneously.+This+is+useful+for+employ\u0026amp;theme=20c5c8d451f1169efff39fdd\u0026amp;signature=149a2585a6b7d7a8a8d60b0417f189eb5e9651c57b282c72ab1f47a7055d8643\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Link Store to Employee - Documentation Starter Kit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This endpoint links multiple stores to a new employee, creating employee relationships across multiple store locations simultaneously. This is useful for employees who work across multiple stores or for managers overseeing multiple locations.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lulaconvenience.mintlify.site/_mintlify/api/og/v2?division=Store+Employees\u0026amp;title=Link+Store+to+Employee\u0026amp;description=This+endpoint+links+multiple+stores+to+a+new+employee%2C+creating+employee+relationships+across+multiple+store+locations+simultaneously.+This+is+useful+for+employ\u0026amp;theme=20c5c8d451f1169efff39fdd\u0026amp;signature=149a2585a6b7d7a8a8d60b0417f189eb5e9651c57b282c72ab1f47a7055d8643\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lulaconvenience/T9P5PJWTg2EYuDhN/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Documentation Starter Kit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2C023B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.lulacommerce.com/api-reference/stores/store-employees/link-store-to-employee\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/stores/store-employees/link-store-to-employee.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.lulacommerce.com/#organization\",\"name\":\"Documentation Starter Kit\",\"url\":\"https://developer.lulacommerce.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lulaconvenience/j9ZBLBNfvCnzqqXy/logo/lula-commerce-logo-primary.png?fit=max\u0026auto=format\u0026n=j9ZBLBNfvCnzqqXy\u0026q=85\u0026s=284bd11c4f3d4f0c15a37b9801dadcc6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.lulacommerce.com#website\",\"name\":\"Documentation Starter Kit\",\"url\":\"https://developer.lulacommerce.com\",\"publisher\":{\"@id\":\"https://developer.lulacommerce.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.lulacommerce.com/api-reference/stores/store-employees/link-store-to-employee#webpage\",\"url\":\"https://developer.lulacommerce.com/api-reference/stores/store-employees/link-store-to-employee\",\"name\":\"Link Store to Employee\",\"description\":\"This endpoint links multiple stores to a new employee, creating employee relationships across multiple store locations simultaneously. This is useful for employees who work across multiple stores or for managers overseeing multiple locations.\",\"dateModified\":\"2026-01-06T22:52:39.452Z\",\"isPartOf\":{\"@id\":\"https://developer.lulacommerce.com#website\"},\"breadcrumb\":{\"@id\":\"https://developer.lulacommerce.com/api-reference/stores/store-employees/link-store-to-employee#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.lulacommerce.com/api-reference/stores/store-employees/link-store-to-employee#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Documentation - Latest\",\"item\":\"https://developer.lulacommerce.com/api-reference/companies/create-company\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Stores\",\"item\":\"https://developer.lulacommerce.com/api-reference/stores/create-store\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Store Employees\",\"item\":\"https://developer.lulacommerce.com/api-reference/stores/store-employees/link-user-to-store\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Link Store to Employee\",\"item\":\"https://developer.lulacommerce.com/api-reference/stores/store-employees/link-store-to-employee\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developer.lulacommerce.com/api-reference/stores/store-employees/link-store-to-employee#apireference\",\"headline\":\"Link Store to Employee\",\"name\":\"Link Store to Employee\",\"description\":\"This endpoint links multiple stores to a new employee, creating employee relationships across multiple store locations simultaneously. This is useful for employees who work across multiple stores or for managers overseeing multiple locations.\",\"url\":\"https://developer.lulacommerce.com/api-reference/stores/store-employees/link-store-to-employee\",\"mainEntityOfPage\":{\"@id\":\"https://developer.lulacommerce.com/api-reference/stores/store-employees/link-store-to-employee#webpage\"},\"dateModified\":\"2026-01-06T22:52:39.452Z\",\"publisher\":{\"@id\":\"https://developer.lulacommerce.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.lulacommerce.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Documentation Starter Kit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Documentation Starter Kit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/stores/store-employees/link-store-to-employee.md","siteName":"Documentation Starter Kit","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/documentation/welcome-intro"}]},{"anchor":"API Reference","icon":"rectangle-terminal","groups":[{"group":"API Documentation - Legacy","pages":[{"title":"CSV Item Ingestion","href":"/api-reference/csvItemsIngestion"},{"title":"JSON Item Ingestion","href":"/api-reference/jsonItemsIngestion"}]},{"group":"API Documentation - Latest","pages":[{"group":"Companies","pages":[{"title":"Create Company","api":"POST https://api-staging.luladelivery.store/stores/company","playground":"simple","href":"/api-reference/companies/create-company"},{"title":"Get Company Details","api":"GET https://api-staging.luladelivery.store/stores/company","playground":"simple","href":"/api-reference/companies/get-company-details"},{"title":"Update Company","api":"PUT https://api-staging.luladelivery.store/stores/company/{company_id}","playground":"simple","href":"/api-reference/companies/update-company"},{"title":"Delete Company","api":"DELETE https://api-staging.luladelivery.store/stores/company/{company_id}","playground":"simple","href":"/api-reference/companies/delete-company"},{"title":"Offboard Company","api":"PUT https://api-staging.luladelivery.store/stores/company/{company_id}/offboard","playground":"simple","href":"/api-reference/companies/offboard-company"}]},{"group":"Stores","pages":[{"title":"Create Store","api":"POST https://api-staging.luladelivery.store/stores/store/","playground":"simple","href":"/api-reference/stores/create-store"},{"title":"Update Store","api":"PUT https://api-staging.luladelivery.store/stores/{store_id}?company_id={company_id}","playground":"simple","href":"/api-reference/stores/update-store"},{"title":"Get Store Status","api":"GET https://api-staging.luladelivery.store/stores/{store_id}/status?current_local_date={date}","playground":"simple","href":"/api-reference/stores/get-store-status"},{"title":"Change Store Status","api":"PUT https://api-staging.luladelivery.store/stores/{store_id}/status","playground":"simple","href":"/api-reference/stores/change-store-status"},{"title":"Get Store Tax Rate","api":"GET https://api-staging.luladelivery.store/stores/{store_id}/tax-rate","playground":"simple","href":"/api-reference/stores/get-store-tax-rate"},{"group":"Onboarding","pages":[{"title":"Start Onboarding","api":"PUT https://api-staging.luladelivery.store/stores/{store_id}/status","playground":"simple","href":"/api-reference/stores/onboarding/start-onboarding"},{"title":"Get Onboarding by ID","api":"GET https://api-staging.luladelivery.store/stores/onboarding/{onboarding_id}","playground":"simple","href":"/api-reference/stores/onboarding/get-onboarding-by-id"},{"title":"Get Onboarding by Store ID","api":"GET https://api-staging.luladelivery.store/stores/{store_id}/status?current_local_date={date}","playground":"simple","href":"/api-reference/stores/onboarding/get-onboarding-by-store-id"},{"title":"Get Onboarding by Company ID","api":"GET https://api-staging.luladelivery.store/stores/company/{company_id}/onboarding","playground":"simple","href":"/api-reference/stores/onboarding/get-onboarding-by-company-id"}]},{"group":"Store Employees","pages":[{"title":"Link User to Store","api":"PUT https://api-staging.luladelivery.store/stores/store-employees/{store_id}","description":"This endpoint links an existing user to a specific store, establishing their employee relationship and access permissions. This is used to assign employees to stores and grant them appropriate access levels for store operations.","playground":"simple","href":"/api-reference/stores/store-employees/link-user-to-store"},{"title":"Link Store to Employee","api":"POST https://api-staging.luladelivery.store/stores/store-employees/","playground":"simple","href":"/api-reference/stores/store-employees/link-store-to-employee"}]}]},{"group":"Catalog","pages":[{"title":"Catalog Updates","description":"Manage and update your store's product catalog with bulk operations, inventory management, and product recommendations.","playground":"simple","href":"/api-reference/catalog/updates"},{"title":"Upsert Products using CSV","api":"POST {{micro_service_base_url}}/inventory-service-v2/companies/1000019/products/bulk/csv","playground":"simple","href":"/api-reference/catalog/upsert-products-csv"},{"title":"Upsert Products using JSON","api":"POST {{micro_service_base_url}}/inventory-service-v2/companies/1000019/products/bulk","playground":"simple","href":"/api-reference/catalog/upsert-products-json"},{"title":"Upsert Inventory","api":"POST {{micro_service_base_url}}/inventory-service-v2/companies/1000019/store/449235c1-3d04-4519-998b-40d2a621e5e0/inventory","playground":"simple","href":"/api-reference/catalog/upsert-inventory"},{"title":"Get Store Inventory","api":"GET {{micro_service_base_url}}/inventory/v2/{{store_id}}/inventory","playground":"simple","href":"/api-reference/catalog/get-store-inventory"},{"title":"Get Job Status Of Ingestion","api":"GET {{micro_service_base_url}}/inventory-service-v2/jobs/14109","playground":"simple","href":"/api-reference/catalog/get-job-status"},{"title":"Get Recommended Products","api":"GET {{micro_service_base_url}}/inventory/store/{{store_id}}/item/{{store_item_id}}/recommended-products","playground":"simple","href":"/api-reference/catalog/recommended-products"},{"group":"Modifiers","pages":[{"title":"Modifiers Overview","href":"/api-reference/catalog/modifiers"},{"title":"Create Modifier Group","api":"POST {{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/","playground":"simple","href":"/api-reference/catalog/modifiers/create-modifier-group"},{"title":"Create Modifier Group Options","api":"POST {{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/{{modifier_group_id}}/options","playground":"simple","href":"/api-reference/catalog/modifiers/create-modifier-group-options"},{"title":"Create Modifier Group Linked Items","api":"POST {{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/{{modifier_group_id}}/mappings","playground":"simple","href":"/api-reference/catalog/modifiers/create-modifier-group-linked-items"},{"title":"Delete Modifier Group Option From Modifier Group","api":"DELETE {{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/{{modifier_group_id}}/options","playground":"simple","href":"/api-reference/catalog/modifiers/delete-modifier-group-option"},{"title":"Delete Linked Items From Modifier Group","api":"DELETE {{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/{{modifier_group_id}}/mappings","playground":"simple","href":"/api-reference/catalog/modifiers/delete-linked-items-from-modifier-group"},{"title":"Delete Modifier Group","api":"DELETE {{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/{{modifier_group_id}}","playground":"simple","href":"/api-reference/catalog/modifiers/delete-modifier-group"},{"title":"Update Modifier Group","api":"PUT {{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/","playground":"simple","href":"/api-reference/catalog/modifiers/update-modifier-group"},{"title":"Get List Of Modifier Groups","api":"GET {{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/","playground":"simple","href":"/api-reference/catalog/modifiers/get-list-of-modifier-groups"},{"title":"Get Modifier Group Details","api":"GET {{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/{{modifier_group_id}}","playground":"simple","href":"/api-reference/catalog/modifiers/get-modifier-group-details"}]}]},{"group":"Menus","pages":[{"title":"Menus Service Overview","href":"/api-reference/menus/menus-overview"},{"title":"Create Store Menu","api":"POST /stores/{{store_id}}/menu/","playground":"simple","href":"/api-reference/menus/create-store-menu"},{"title":"Upsert Store Menu","api":"PUT /stores/{{store_id}}/menu?menu_id={{menu_id}}","playground":"simple","href":"/api-reference/menus/upsert-store-menu"},{"title":"Delete Store Menu","api":"DELETE /stores/{{store_id}}/menu/{{menu_id}}","playground":"simple","href":"/api-reference/menus/delete-store-menu"},{"title":"Get Menu List","api":"GET /stores/{{store_id}}/menu/list?status=active\u0026sortBy=categories\u0026sortDirection=desc\u0026name=all","playground":"simple","href":"/api-reference/menus/get-menu-list"},{"title":"Sync Menu For All Stores","api":"POST /stores/menu/sync","playground":"simple","href":"/api-reference/menus/sync-menu-for-all-stores"},{"title":"Get All Active Menu of Store","api":"GET /stores/{{store_id}}/menu/","playground":"simple","href":"/api-reference/menus/get-all-active-menu-of-store"},{"title":"Get Store Menu Timings","api":"GET /stores/{{store_id}}/menu/timing?menu_ids={{menu_ids}}","playground":"simple","href":"/api-reference/menus/get-store-menu-timings"},{"group":"Menu Items","pages":[{"title":"Create Menu Item","api":"POST /stores/{{store_id}}/menu/items?active=true","playground":"simple","href":"/api-reference/menus/menu-items/create-menu-item"},{"title":"Delete Menu Item","api":"DELETE /stores/{{store_id}}/menus/{{menu_id}}/items/{{item_id}}","playground":"simple","href":"/api-reference/menus/menu-items/delete-menu"},{"title":"Update Menu Item","api":"PUT /stores/{{store_id}}/menus/{{menu_id}}/items/{{item_id}}","playground":"simple","href":"/api-reference/menus/menu-items/update-menu-item"}]},{"group":"Menu Rules","pages":[{"title":"Get Menu Rules","api":"GET /stores/{{store_id}}/menu-rules","playground":"simple","href":"/api-reference/menus/menu-rules/get-menu-rules"},{"title":"Upsert Menu Rules","api":"PUT /stores/{{store_id}}/menu-rules","playground":"simple","href":"/api-reference/menus/menu-rules/upsert-menu-rules"},{"title":"Get Menu Rules by ID","api":"GET /stores/{{store_id}}/menu-rules/{{rule_id}}","playground":"simple","href":"/api-reference/menus/menu-rules/get-menu-rules-by-id"}]}]},{"group":"Campaigns","pages":[{"title":"Campaigns Overview","playground":"simple","href":"/api-reference/campaigns/campaigns-overview"},{"title":"Create Campaign","api":"POST {{micro_service_base_url}}/stores/company/{{company_id}}/campaigns","playground":"simple","href":"/api-reference/campaigns/create-campaign"},{"title":"Get Campaigns","api":"GET {{micro_service_base_url}}/stores/company/{{company_id}}/campaigns","playground":"simple","href":"/api-reference/campaigns/get-campaigns"},{"title":"Get Campaign Details","api":"GET {{micro_service_base_url}}/stores/company/{{company_id}}/campaigns/{{campaign_id}}","playground":"simple","href":"/api-reference/campaigns/get-campaign-details"},{"title":"Update Campaign","api":"PUT {{stores_service_api_base_url}}/stores/company/{{company_id}}/campaigns/{{campaign_id}}/stores","playground":"simple","href":"/api-reference/campaigns/update-campaign"},{"title":"Delete Campaign","api":"DELETE {{stores_service_api_base_url}}/stores/{{store_id}}/status","playground":"simple","href":"/api-reference/campaigns/delete-campaign"},{"title":"Bulk Update Campaign","api":"POST {{micro_service_base_url}}/stores/company/{{company_id}}/campaigns/bulk","playground":"simple","href":"/api-reference/campaigns/bulk-update-campaign"},{"title":"Link Campaign to Stores","api":"GET {{stores_service_api_base_url}}/stores/company/{{company_id}}/campaigns/{{campaign_id}}/stores","playground":"simple","href":"/api-reference/campaigns/link-campaign-to-stores"},{"group":"Promotions","pages":[{"title":"Create Promotion","api":"POST {{promotions_service_api_base_url}}/promotions/company/{{company_id}}/campaigns/{{campaign_id}}/promotions","playground":"simple","href":"/api-reference/campaigns/promotions/create-promotion"},{"title":"Get Promotion Details","api":"GET {{promotions_service_api_base_url}}/promotions/company/{{company_id}}/campaigns/{{campaign_id}}/promotions/{{promotion_id}}","playground":"simple","href":"/api-reference/campaigns/promotions/get-promotion"},{"title":"Update Promotion","api":"PUT {{promotions_service_api_base_url}}/promotions/company/{{company_id}}/campaigns/{{campaign_id}}/promotions/{{promotion_id}}","playground":"simple","href":"/api-reference/campaigns/promotions/update-promotion"},{"title":"Delete Promotion","api":"DELETE {{promotions_service_api_base_url}}/promotions/company/{{company_id}}/campaigns/{{campaign_id}}/promotions/{{promotion_id}}","playground":"simple","href":"/api-reference/campaigns/promotions/delete-promotion"},{"title":"Get All Promotions","api":"GET {{promotions_service_api_base_url}}/promotions/company/{{company_id}}/campaigns/{{campaign_id}}/promotions","playground":"simple","href":"/api-reference/campaigns/promotions/get-all-promotions"}]}]},{"group":"Orders","pages":[{"title":"Orders Management","playground":"simple","href":"/api-reference/orders/orders-overview"},{"title":"Get Incoming Orders","api":"GET {{orders_api_base_url}}/orders/","playground":"simple","href":"/api-reference/orders/get-incoming-orders"},{"title":"List All Orders","api":"GET {{micro_service_base_url}}/orders/","playground":"simple","href":"/api-reference/orders/list-all-orders"},{"title":"Get Orders Count","api":"GET {{orders_api_base_url}}/orders/counts/","playground":"simple","href":"/api-reference/orders/get-orders-count"},{"title":"Get Order Details","api":"GET {{orders_api_base_url}}/orders/details/","playground":"simple","href":"/api-reference/orders/get-order-details"},{"title":"Accept Incoming Order","api":"PUT {{orders_api_base_url}}/orders/accept/","playground":"simple","href":"/api-reference/orders/accept-incoming-order"},{"title":"Cancel Order","api":"POST {{orders_api_base_url}}/orders/cancel/","playground":"simple","href":"/api-reference/orders/cancel-order"},{"title":"Get Store Orders","api":"GET {{micro_service_base_url}}/orders/","playground":"simple","href":"/api-reference/orders/get-store-orders"},{"title":"Get Orders History","api":"GET {{orders_api_base_url}}/orders/history/","playground":"simple","href":"/api-reference/orders/get-orders-history"},{"title":"Create New Order","api":"POST {{orders_api_base_url}}/orders/create/","playground":"simple","href":"/api-reference/orders/create-new-order"},{"title":"Patch Order Cart","api":"PATCH {{micro_service_base_url}}/orders/{{order_id}}/patch-order","playground":"simple","href":"/api-reference/orders/patch-order-cart"},{"group":"Order Items","pages":[{"title":"Get Order Items","api":"GET {{micro_service_base_url}}/orders/{{order_id}}/order-items/{{order_item_id}}","playground":"simple","href":"/api-reference/orders/order-items/get-order-items"},{"title":"Get All Order Items","api":"GET {{micro_service_base_url}}/orders/{{order_id}}/order-items","playground":"simple","href":"/api-reference/orders/order-items/get-all-order-items"},{"title":"Update Order Items","api":"PATCH {{micro_service_base_url}}/orders/{{order_id}}/order-items/{{order_item_id}}","playground":"simple","href":"/api-reference/orders/order-items/update-order-items"}]},{"group":"Order Issues","pages":[{"title":"Create Order Issue","api":"POST {{micro_service_base_url}}/orders/{{order_id}}/issues","playground":"simple","href":"/api-reference/orders/order-issues/create-order-issue"},{"title":"Update Order Issue","api":"PATCH {{micro_service_base_url}}/orders/{{order_id}}/issues/{{issue_id}}","playground":"simple","href":"/api-reference/orders/order-issues/update-order-issue"}]}]},{"group":"Legacy Endpoints","pages":[{"title":"Upload JSON file for item ingestion","api":"POST https://api-staging.luladelivery.store/inventory/ingestion/","href":"/api-reference/endpoint/upload-json"},{"title":"Post items for ingestion","api":"POST https://api-staging.luladelivery.store/inventory/ingestion/","href":"/api-reference/endpoint/post-items-for-ingestion"},{"title":"Upload CSV file for item ingestion","api":"POST https://api-staging.luladelivery.store/inventory/ingestion/csv","href":"/api-reference/endpoint/upload-csv"},{"title":"Get Job","api":"GET https://api-staging.luladelivery.store/inventory/ingestion/{id}","href":"/api-reference/endpoint/get-job"}]}]}]}]},"basePath":"","title":"Link Store to Employee - Documentation Starter Kit","deploymentId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","buildId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CbGMcFGR.js","snippetPresets-Bmv5mKa2.js","utils-CIXWNXpX.js","style-to-object-BY3JEAdk.js","utils-Ao5f3MLv.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CnDl3Tzk.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DCKK_-ms.js","_Uint8Array-AD2KodMR.js","isObject-FP1Yky1u.js","ApiExamples-WuhTLGpi.js","usePlaygroundInputsStore-TEEPsnq4.js","shallow-CPMaphSa.js","isEqual-DPVEsfEY.js","CodeSnippets-4KiTz0PS.js","CodeSnippet-Cy8aP2_X.js","use-playground-group-access-DM2iaKsK.js","Page-Ch7YiUoh.js","api-description-markdown-CN0nQq69.js","DynamicMarkdown-fZBmrd-V.js","SectionHeading-CwLwzaE9.js","MethodPill-De3Dnqxv.js","getPastedJson-obk3J_hD.js","Check2Icon-BbG90KLF.js","axios-CsQoIw0U.js"]}