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

# Insert Local Inventory

> Sets in-store price, availability, and quantity for local products by store code, one or many at once (up to 200)

Sets in-store price, availability, and quantity for local products by store code, one or many at once (up to 200). Prices are raw Google micros (amountMicros).

| | |
| - | - |
| **App** | Google Merchant Center |
| **Operation ID** | `gmc_insert_local_inventory` |
| **Type** | Action |
| **Connection** | `gmc` (required) |
| **Credits per run** | 1 |
| **Agent / MCP tool** | Yes |
| **Requires approval** | Yes (write operation) |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `account` | DynamicAccount | Yes | - | Select the Merchant Center account that owns the products. |
| `update_type` | string or SelectableOption | Yes | - | Choose whether to update one product's inventory or many at once. Options: single or bulk. |
| `product_id` | string or SelectItem | No | - | Product identifier in the form contentLanguage~~feedLabel~~offerId, for example en~~US~~sku123. Required for single mode. |
| `inventory` | object or string | No | - | Official Google Merchant API LocalInventory body as an object or JSON string, sent as-is. Keys: storeCode (Business Profile store code) and localInventoryAttributes with price/salePrice (\{amountMicros, currencyCode}), salePriceEffectiveDate, availability, quantity, pickupMethod, and pickupSla. Inserting for an existing storeCode replaces the entry. Example: \{"storeCode": "123456", "localInventoryAttributes": \{"price": \{"amountMicros": "33450000", "currencyCode": "USD"}, "availability": "IN\_STOCK", "quantity": "10"}}. Required for single mode. |
| `structured_data` | array (also accepts a comma-separated string) | No | - | Use only when update\_type is bulk. A list of up to 200 rows, each with product\_id and inventory (the official LocalInventory body). |
| `return_detailed_results` | boolean | No | `False` | Bulk mode only. If true, returns per-row results and does not raise on partial failures. |

### SelectItem

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `value` | string | Yes | - | The value of the selectable item. |
| `label` | string | Yes | - | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

### SelectableOption

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `value` | string | Yes | - | |
| `label` | string | Yes | - | |

## Output

**Type**: `Dict`

Returns the inserted inventory (single) or counts and product IDs (bulk).

**Fields**: dynamic (depend on the inputs)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.