> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ocular.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Unicommerce

> Connect Unicommerce (Uniware) to Ocular with username, password, account code, and selected facility codes to sync OMS orders, inventory, and fulfilment.

**Required fields in Ocular:**

* **Unicommerce Username** – any active Uniware user with API access
* **Unicommerce Password** – the password you set for that user
* **Unicommerce Account Code** – the tenant part of your Uniware URL (e.g., `demo` in `https://demo.unicommerce.com`)

Follow the three sections below: grab each credential in Uniware, then paste them into **Data Management → Connectors → Add connector → Unicommerce**.

<CardGroup cols={2}>
  <Card title="What you need" icon="key">
    Username, password, account code, and the facility codes you want to sync.
  </Card>

  <Card title="What it unlocks" icon="boxes-stacked">
    SKU master across channels, inventory-aware reporting, returns and status reconciliation in the Fulfilment data model.
  </Card>
</CardGroup>

***

## <Icon icon="signs-post" /> Step 1 · Find your Account Code

<Steps>
  <Step title="Open Uniware" icon="arrow-up-right-from-square">
    Log in to Uniware in your browser.
  </Step>

  <Step title="Read the URL" icon="link">
    The address bar reads `https://ACCOUNT_CODE.unicommerce.com/...`.
  </Step>

  <Step title="Copy the tenant string" icon="copy">
    Everything before `.unicommerce.com` is your Account Code. Copy that string exactly — it is **case-sensitive**.
  </Step>
</Steps>

***

## <Icon icon="user-plus" /> Step 2 · Create (or pick) an API-capable user

<Steps>
  <Step title="Open Users" icon="gear">
    Go to **Settings (gear icon) → Users**.
  </Step>

  <Step title="Add a dedicated user (recommended)" icon="user-plus">
    Click **Add** to create a dedicated user or select an existing one. Learn more in [Unicommerce Documentation](https://unicommerce.com).
  </Step>

  <Step title="Set credentials and role" icon="shield-check">
    Fill a unique Username (e.g., `ocular_api`). Set a strong password and give the user **Admin role** or explicit access to the facilities whose data you will pull. Click **Save**.
  </Step>
</Steps>

<Tip>
  You can reset the password anytime from the same Users page. Some older guides mention *API User* under *Integration* — newer Uniware accounts use the standard user list, and both work as long as the user has the required permissions.
</Tip>

***

## <Icon icon="plug" /> Step 3 · Plug the credentials into Ocular

<Steps>
  <Step title="Open the connector form" icon="window">
    In Ocular, open **Data Management → Connectors → Add connector → Unicommerce**.
  </Step>

  <Step title="Fill the fields" icon="pen-to-square">
    <CardGroup cols={2}>
      <Card title="Unicommerce Username" icon="user">
        The username you created or selected.
      </Card>

      <Card title="Unicommerce Password" icon="lock">
        The password you just set.
      </Card>

      <Card title="Unicommerce Account Code" icon="link">
        The string from Step 1 (case-sensitive).
      </Card>

      <Card title="Start Date" icon="calendar">
        YYYY-MM-DD — choose the date from which you want Ocular to begin pulling your Unicommerce data.
      </Card>

      <Card title="Lookback Days" icon="clock-rotate-left">
        The number of days for which Ocular will keep refreshing past data (default is 30 days). This is particularly important for returns, as order returns can be triggered on any sales order up to several days after placing the order. For example, with a 30-day lookback, Ocular will daily check if any orders placed in the last 30 days have resulted in returns or other status changes.
      </Card>

      <Card title="Facility Codes" icon="warehouse">
        These represent the specific warehouses or fulfillment centers within your Unicommerce account. Click the **Fetch Facilities** button to retrieve all available facilities, then select one or multiple codes. If you don't select any specific facilities, data from all facilities will be pulled by default.
      </Card>
    </CardGroup>
  </Step>

  <Step title="Fill the fields" icon="pen-to-square">
    <CardGroup cols={2}>
      <Card title="Unicommerce Username" icon="user">
        The username you created or selected.
      </Card>

      <Card title="Unicommerce Password" icon="lock">
        The password you just set.
      </Card>

      <Card title="Unicommerce Account Code" icon="link">
        The string from Step 1 (case-sensitive).
      </Card>

      <Card title="Start Date" icon="calendar">
        YYYY-MM-DD — choose the date from which you want Ocular to begin pulling your Unicommerce data.
      </Card>

      <Card title="Lookback Days" icon="clock-rotate-left">
        The number of days for which Ocular will keep refreshing past data (default is 30 days). This is particularly important for returns, as order returns can be triggered on any sales order up to several days after placing the order. For example, with a 30-day lookback, Ocular will daily check if any orders placed in the last 30 days have resulted in returns or other status changes.
      </Card>

      <Card title="Facility Codes" icon="warehouse">
        These represent the specific warehouses or fulfillment centers within your Unicommerce account. Click the **Fetch Facilities** button to retrieve all available facilities, then select one or multiple codes. If you don't select any specific facilities, data from all facilities will be pulled by default.
      </Card>

      <Card title="Channels" icon="diagram-project">
        Optionally restrict the sync to specific sales channels. Type a channel name and press **Enter** to add it (**Backspace** removes the last one). Find your channel names in Uniware under **Settings → Channels**.
      </Card>
    </CardGroup>

    <Frame>
      <img src="https://mintcdn.com/ocular/sW7-uz7ZirpNplo6/unicommerce-channels.png?fit=max&auto=format&n=sW7-uz7ZirpNplo6&q=85&s=6f0a9cc0555a9e88164c2fcee2e44505" alt="Unicommerce Channels" width="736" height="346" data-path="unicommerce-channels.png" />
    </Frame>

    <Frame caption="Find your channel names in Uniware under Settings → Channels.">
      <img src="https://mintcdn.com/ocular/sW7-uz7ZirpNplo6/unicommerce-connector-form.png?fit=max&auto=format&n=sW7-uz7ZirpNplo6&q=85&s=02c5bb506d1f7441013798063cc2c86a" alt="Unicommerce Connector Form" width="760" height="374" data-path="unicommerce-connector-form.png" />
    </Frame>
  </Step>

  <Step title="Test the connection" icon="flask-vial">
    Click **Create Connector**. Ocular sends a Basic-Auth request to Uniware's `/services/rest/v1/auth` endpoint; on success, you'll see **Connection successful**.
  </Step>

  <Step title="Create" icon="circle-check">
    Click **Create**. The credentials are encrypted in Ocular's vault; your first incremental sync kicks off within minutes.
  </Step>

  <Step title="Create" icon="circle-check">
    Click **Create**. The credentials are encrypted in Ocular's vault; your first incremental sync kicks off within minutes.

    <Frame>
      <img src="https://mintcdn.com/ocular/sW7-uz7ZirpNplo6/unicommerce-connector-created.png?fit=max&auto=format&n=sW7-uz7ZirpNplo6&q=85&s=51d527af72bc670c3d84a18b5b665b09" alt="Unicommerce Connector Created" width="748" height="401" data-path="unicommerce-connector-created.png" />
    </Frame>
  </Step>
</Steps>

***

## <Icon icon="life-ring" /> Troubleshooting

<AccordionGroup>
  <Accordion title="Connection fails with 401 Unauthorized" icon="triangle-exclamation">
    Re-check the account code (case-sensitive) and confirm the user is still active with a non-expired password. Reset the password in Uniware and retry.
  </Accordion>

  <Accordion title="Some facilities are missing data" icon="warehouse">
    The selected user must have explicit access to every facility you want to sync, or be an Admin. Open the user in Uniware and verify the facility list, then re-run **Fetch Facilities** in Ocular.
  </Accordion>

  <Accordion title="Stale returns or RTO statuses" icon="rotate-left">
    Increase **Lookback Days** above 30 — returns can be triggered several days after the original order. A 60- or 90-day lookback is common for brands with long return windows.
  </Accordion>
</AccordionGroup>

<Note>
  For ticket-writing format when filing a connector issue, see [Working with the Ocular team → Connector-not-working tickets](/overview/working-with-the-ocular-team).
</Note>
