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

# Openmart Enrich Company: Inputs, Cost & CLI Example

> Resolve a company website or social profile into Openmart business records. Includes inputs, outputs, costs, and Deepline CLI examples for GTM automation.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=openmart_enrich_company:{}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                        | Type              | Required | Default | Description |
| --------------------------- | ----------------- | -------- | ------- | ----------- |
| `payload.website`           | `string`          | No       |         |             |
| `payload.social_media_link` | `string`          | No       |         |             |
| `payload.limit`             | `integer`         | No       | `50`    |             |
| `payload.estimate_total`    | `boolean`         | No       |         |             |
| `payload.location`          | `object \| array` | No       |         |             |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Resolve a website URL or social-media URL into matching Openmart business records.",
    "properties": {
      "website": {
        "type": "string"
      },
      "social_media_link": {
        "type": "string"
      },
      "limit": {
        "type": "integer",
        "default": 50,
        "minimum": 1,
        "maximum": 50
      },
      "estimate_total": {
        "type": "boolean"
      },
      "location": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "country": {
                "type": "string",
                "description": "Country code or name."
              },
              "state": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "zip_code": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "lat": {
                "type": "number"
              },
              "long": {
                "type": "number"
              },
              "geo_radius": {
                "type": "integer"
              },
              "use_geo_fuzz": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "country": {
                  "type": "string",
                  "description": "Country code or name."
                },
                "state": {
                  "type": "string"
                },
                "city": {
                  "type": "string"
                },
                "zip_code": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "lat": {
                  "type": "number"
                },
                "long": {
                  "type": "number"
                },
                "geo_radius": {
                  "type": "integer"
                },
                "use_geo_fuzz": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          }
        ]
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type              | Required | Default | Description                                    |
| ------------- | ----------------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `array \| object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `object`          | No       |         | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "description": "Provider response payload.",
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "content": {
                  "type": "object",
                  "additionalProperties": true
                },
                "match_score": {
                  "type": "number"
                },
                "match_highlights": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "cursor": {
                  "type": "array",
                  "items": {}
                }
              },
              "additionalProperties": true
            }
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "content": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "match_score": {
                      "type": "number"
                    },
                    "match_highlights": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "cursor": {
                      "type": "array",
                      "items": {}
                    }
                  },
                  "additionalProperties": true
                }
              },
              "total_count": {
                "type": "integer"
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": true
          }
        ]
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute openmart_enrich_company --payload '{}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `0.13` per pricing unit.
* Billing mode: `post_deduct`.
