
# fob-mdm integrations

An integration is an app that holds its own copy of your records, such as a payments platform. Pulling links each of its records to a golden record through the object's identity field.

> **Simulated apps:** Reading from and writing to real apps isn't built yet. An app's records are the `sample_records` in its config, each with a `tp_id` (its id in that app) and values keyed by field key.

```
fob-mdm integrations <action> [target] [options]
```

| Action | Description |
|---|---|
| [`list`](#integrations-list) | List integrations, A to Z |
| [`show`](#integrations-show) | Show one integration |
| [`create`](#integrations-create) | Connect an app |
| [`edit`](#integrations-edit) | Rename an integration, or change its config |
| [`delete`](#integrations-delete) | Disconnect an app: deletes its record links, contracts and conformance state |
| [`pull`](#integrations-pull) | Read the app's records and link them to golden records on the identity field |
| [`lookups`](#integrations-lookups) | List which app records are linked to which golden records |

## integrations list

List integrations, A to Z.

```
fob-mdm integrations list [options]
```

| Argument or option | Required | Default | Description |
|---|---|---|---|
| `--page <n>` |  | `1` | Page number. |
| `--limit <n>` |  | `100` | Rows per page (max 500). |
| `--all` |  |  | Fetch every page (up to 15000 rows). |
| `--json` |  |  | Print the raw JSON response. |

```bash
fob-mdm integrations list
```

API: [List Integrations](/docs/api/endpoints/integrations/list)

## integrations show

Show one integration.

```
fob-mdm integrations show <id> [options]
```

| Argument or option | Required | Default | Description |
|---|---|---|---|
| `<id>` | Yes |  | Integration id. |
| `--json` |  |  | Print the raw JSON response. |

```bash
fob-mdm integrations show 5
```

API: [Get Integration](/docs/api/endpoints/integrations/get)

## integrations create

Connect an app.

```
fob-mdm integrations create --name <name> --type <type> [options]
```

| Argument or option | Required | Default | Description |
|---|---|---|---|
| `--name <name>` | Yes |  | Display name, unique in your organization. |
| `--type <type>` | Yes |  | What kind of app, e.g. razorpayx. Can't be changed later. |
| `--object <slug>` |  |  | The object its records link to, e.g. vendor. |
| `--config <file>` |  |  | JSON file with the config, e.g. \{ "object": "vendor", "sample_records": [...] \}. |
| `--json` |  |  | Print the raw JSON response. |

```bash
fob-mdm integrations create --name Payments --type razorpayx --object vendor --config payments.json
```

```
ID:        5
Name:      Payments
Type:      razorpayx
Object:    vendor
Records:   2 simulated
Created:   2026-11-26 07:20:08
```

`payments.json` holds the config. `--object` is set on top of it:

```json
{
  "sample_records": [
    { "tp_id": "cont_8f2k", "name": "ACME SUPPLIES", "gstin": "29ABCDE1234F1Z5", "bank_ifsc": "HDFC0009999" },
    { "tp_id": "cont_9x1m", "name": "Acme Labs LLP", "gstin": "29PQRST6789K1Z2", "bank_ifsc": "ICIC0004321" }
  ]
}
```

API: [Create Integration](/docs/api/endpoints/integrations/create)

## integrations edit

Rename an integration, or change its config.

```
fob-mdm integrations edit <id> [options]
```

| Argument or option | Required | Default | Description |
|---|---|---|---|
| `<id>` | Yes |  | Integration id. |
| `--name <name>` |  |  | Display name. |
| `--object <slug>` |  |  | The object its records link to. |
| `--config <file>` |  |  | JSON file that replaces the whole config. |
| `--json` |  |  | Print the raw JSON response. |

```bash
fob-mdm integrations edit 5 --name "Payments (prod)"
fob-mdm integrations edit 5 --object customer
fob-mdm integrations edit 5 --config payments.json --object vendor
```

`--object` alone keeps the rest of the config. `--config` replaces the whole config, so pass `--object` with it unless the file names the object.

API: [Update Integration](/docs/api/endpoints/integrations/update)

## integrations delete

Disconnect an app: deletes its record links, contracts and conformance state.

```
fob-mdm integrations delete <id> [options]
```

| Argument or option | Required | Default | Description |
|---|---|---|---|
| `<id>` | Yes |  | Integration id. |
| `-y, --yes` |  |  | Skip the confirmation. |

```bash
fob-mdm integrations delete 5 --yes
```

Deletes its record links, contracts and conformance state.

API: [Delete Integration](/docs/api/endpoints/integrations/delete)

## integrations pull

Read the app's records and link them to golden records on the identity field.

```
fob-mdm integrations pull <id> [options]
```

| Argument or option | Required | Default | Description |
|---|---|---|---|
| `<id>` | Yes |  | Integration id. |
| `--json` |  |  | Print the raw JSON response. |

```bash
fob-mdm integrations pull 5
```

```
Pulled 2: 1 newly linked, 0 refreshed, 1 not linked.

TP_ID      REASON
---------------------------
cont_9x1m  no_golden_record

no_golden_record: create the golden record, then pull again. no_identity_value: the app has no identity value for it.
```

Pulling again is safe: links already made are refreshed, not duplicated.

API: [Pull Records](/docs/api/endpoints/integrations/pull)

## integrations lookups

List which app records are linked to which golden records.

```
fob-mdm integrations lookups <id> [options]
```

| Argument or option | Required | Default | Description |
|---|---|---|---|
| `<id>` | Yes |  | Integration id. |
| `--record <id>` |  |  | Only the links to this golden record. |
| `--page <n>` |  | `1` | Page number. |
| `--limit <n>` |  | `100` | Rows per page (max 500). |
| `--all` |  |  | Fetch every page (up to 15000 rows). |
| `--json` |  |  | Print the raw JSON response. |

```bash
fob-mdm integrations lookups 5
fob-mdm integrations lookups 5 --record 100
```

```
TP_ID      RECORD  OBJECT  PULLED
----------------------------------------------
cont_8f2k  100     vendor  2026-11-26 07:20:08
```

API: [List Record Links](/docs/api/endpoints/integrations/lookups)

Every command also takes `--profile <name>` and `--help`. See [Command-line Interface](/docs/cli).
