---
tags: [companyuser, service]
module: CompanyUser
---

# IntegrationServices

## Connections
[[_CompanyUser]] · [[[Controller]IntegrationController]] · [[[Job]Jobs]] · [[[Cross]CrossModuleDependencies]] · [[[Service]IntegrationSyncServices]]

## Source
`Modules/CompanyUser/Services/` (integration-related)

## Authorization Services
| Service | Integration |
|---|---|
| `AuthorizingZidService` | Zid OAuth handshake |
| `AuthorizingPrexleService` | Prexle auth |

## Sync Services
| Service | Responsibility |
|---|---|
| `SyncingIntegratedCustomersService` | Pulls customers from Foodics/Zid/Prexle → creates/updates in [[[Cross]CrossModuleDependencies#Sales]] |
| `SyncingIntegratedSuppliersService` | Pulls suppliers → creates/updates in [[[Cross]CrossModuleDependencies#Purchases]] |
| `SyncingIntegratedPaymentOptionsService` | Syncs payment methods → maps to accounting accounts |
| `SyncingIntegratedBranchesService` | Syncs branches/cost centers → [[[Cross]CrossModuleDependencies#Products]] CostCenter |

## Configuration Services
| Service | Responsibility |
|---|---|
| `UpdatingIntegratedAccountsService` | Saves account-mapping config for an integration |
| `UpdatingIntegratedCostCentersService` | Saves cost-center mapping |
| `UpdatingIntegratedPaymentOptionsService` | Saves payment-option mapping |
| `UpdatingIntegratedGeneralConfigsService` | Saves general integration settings |
| `RevokingIntegrationService` | Revokes OAuth tokens + clears integration config |
| `PreparingDataForIntegrated*Service` | Loads current mapping + available options for edit forms |

## Order Sync
Order syncing is handled in [[[Cross]CrossModuleDependencies#Accounting]] `IntegrationSyncServices`, triggered via [[[Job]Jobs]] dispatched from `SyncIntegratedOrdersController`
