Sha256: 90a468aa520eedba1ca9ebb05c05afdc5c806091f0884441ee955e3cb638088b

Contents?: true

Size: 852 Bytes

Versions: 6

Compression:

Stored size: 852 Bytes

Contents

# Product resource

## GET

```ruby
DearInventory::Product.index
DearInventory::Product.()
```

### Parameters
| Name | Type | Required |
| --- | --- | --- |
| id | String | false |
| page | Integer | false |
| limit | Integer | false |
| name | String | false |
| sku | String | false |
| modified_since | DateTime | false |
| include_attachments | Boolean | false |
| include_bom | Boolean | false |
| include_deprecated | Boolean | false |
| include_movements | Boolean | false |
| include_reorder_levels | Boolean | false |
| include_suppliers | Boolean | false |

### Response

The index endpoint returns a paginated set of records.

To see what data is available in the response, you can call the `field` method:

```ruby
response = DearInventory::Product.()
response.fields # [:records, :total, :page, :products]
records = response.records
```

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dear_inventory-1.4.0 docs/resources/product.md
dear_inventory-1.3.0 docs/resources/product.md
dear_inventory-1.2.0 docs/resources/product.md
dear_inventory-1.1.1 docs/resources/product.md
dear_inventory-1.1.0 docs/resources/product.md
dear_inventory-1.0.0 docs/resources/product.md