# REST Resource: localinventory

- [Resource: LocalInventory](https://developers.google.com/shopping-content/reference/rest/v2.1/localinventory#LocalInventory)
  - [JSON representation](https://developers.google.com/shopping-content/reference/rest/v2.1/localinventory#LocalInventory.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/shopping-content/reference/rest/v2.1/localinventory#METHODS_SUMMARY)

## Resource: LocalInventory

Local inventory resource. For accepted attribute values, see the [local product inventory feed specification](https://support.google.com/merchants/answer/3061342).

| JSON representation |
|---|
| ``` { "storeCode": string, "price": { object (`https://developers.google.com/shopping-content/reference/rest/v2.1/Price`) }, "salePrice": { object (`https://developers.google.com/shopping-content/reference/rest/v2.1/Price`) }, "salePriceEffectiveDate": string, "availability": string, "quantity": integer, "pickupMethod": string, "pickupSla": string, "instoreProductLocation": string, "kind": string, "customAttributes": [ { object (`https://developers.google.com/shopping-content/reference/rest/v2.1/CustomAttribute`) } ] } ``` |

| Fields ||
|---|---|
| `storeCode` | `string` Required. The store code of this local inventory resource. |
| `price` | ``object (`https://developers.google.com/shopping-content/reference/rest/v2.1/Price`)`` The price of the product. |
| `salePrice` | ``object (`https://developers.google.com/shopping-content/reference/rest/v2.1/Price`)`` The sale price of the product. Mandatory if `salePriceEffectiveDate` is defined. |
| `salePriceEffectiveDate` | `string` A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates may be specified as 'null' if undecided. |
| `availability` | `string` The availability of the product. For accepted attribute values, see the [local product inventory feed specification](https://support.google.com/merchants/answer/3061342). |
| `quantity` | `integer (https://developers.google.com/discovery/v1/type-format format)` The quantity of the product. Must be nonnegative. |
| `pickupMethod` | `string` The supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the [local product inventory feed specification](https://support.google.com/merchants/answer/3061342). |
| `pickupSla` | `string` The expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the [local product inventory feed specification](https://support.google.com/merchants/answer/3061342). |
| `instoreProductLocation` | `string` The in-store product location. |
| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string "`content#localInventory`" |
| `customAttributes[]` | ``object (`https://developers.google.com/shopping-content/reference/rest/v2.1/CustomAttribute`)`` A list of custom (merchant-provided) attributes. Can also be used to submit any attribute of the feed specification in its generic form, for example, `{ "name": "size type", "value": "regular" }`. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/shopping-content/reference/rest/v2.1/localinventory/custombatch` | Updates local inventory for multiple products or stores in a single request. |
| ### `https://developers.google.com/shopping-content/reference/rest/v2.1/localinventory/insert` | Updates the local inventory of a product in your Merchant Center account. |