# Salsify

> Manage products, records, properties, digital assets and lists in Salsify, export your catalog, and follow new and changed products.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/salsify

## Actions

### Add to list

Add products or digital assets to a simple list.

**Inputs**

- List ID (`list_id`, text, required): The simple list's ID: the number after `product_lists/` (or the ID after `digital-asset-management/lists/`) in the list's address in Salsify.
- Product or asset IDs (`member_ids`, list, required): The IDs of the products or digital assets.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Create digital asset

Add a digital asset from a public web address. Salsify fetches the file after the step finishes.

**Inputs**

- File address (`source_url`, text, required): A public http(s) address of the file.
- Asset ID (`new_asset_id`, text): An ID for the asset. Leave empty for Salsify to make one.
- Metadata (`metadata`, object): Metadata by property ID, such as `{"Asset Photographer": "Jane Doe"}`.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:asset_resource_type": "example",
    "salsify:bytes": 1,
    "salsify:created_at": "example",
    "salsify:filename": "example",
    "salsify:format": "example",
    "salsify:id": "example",
    "salsify:name": "example",
    "salsify:source_url": "example",
    "salsify:status": "example",
    "salsify:updated_at": "example",
    "salsify:url": "example"
  }
}
```

### Create product

Create a product with its ID and any property values.

**Inputs**

- ID property (`id_property`, text): The property your organization uses as the ID, such as `SKU`. Leave empty for `Product ID`.
- Product ID (`new_id`, text, required): The new product's ID. It can't start with `=`, `_` or `salsify`.
- Property values (`values`, object): Property values by property ID, such as `{"Product Name": "Big TV", "Brand": "Acme"}`. A list sets several values. A property ID that doesn't exist yet is created as text.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:created_at": "example",
    "salsify:id": "example",
    "salsify:parent_id": "example",
    "salsify:system_id": "example",
    "salsify:updated_at": "example",
    "salsify:version": 1
  }
}
```

### Create property

Create a text property to hold product values.

**Inputs**

- Property ID (`new_property_id`, text, required): The new property's ID. It is case-sensitive and can't start with `salsify`, `=` or `_`.
- Name (`name`, text): The name people see, if different from the ID.
- Help text (`help_text`, text): Help shown with the property.
- Group (`attribute_group`, text): The group the property is shown in.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:attribute_group": "example",
    "salsify:created_at": "example",
    "salsify:data_type": "example",
    "salsify:entity_types": [
      "example"
    ],
    "salsify:help_text": "example",
    "salsify:id": "example",
    "salsify:name": "example",
    "salsify:updated_at": "example"
  }
}
```

### Create record

Create a record with its ID and any property values.

**Inputs**

- ID property (`id_property`, text): The property your organization uses as the ID, such as `SKU`. Leave empty for `Record ID`.
- Record ID (`new_id`, text, required): The new record's ID. It can't start with `=`, `_` or `salsify`.
- Property values (`values`, object): Property values by property ID, such as `{"Product Name": "Big TV", "Brand": "Acme"}`. A list sets several values. A property ID that doesn't exist yet is created as text.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:created_at": "example",
    "salsify:id": "example",
    "salsify:parent_id": "example",
    "salsify:system_id": "example",
    "salsify:updated_at": "example",
    "salsify:version": 1
  }
}
```

### Delete digital asset

Delete a digital asset.

**Inputs**

- Digital asset (`asset_id`, text, required): The digital asset's ID.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Delete product

Delete a product.

**Inputs**

- Product (`product_id`, text, required): The product's ID: the value of the property your organization uses as its product ID.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Delete property

Delete a property and the values it holds on every product.

**Inputs**

- Property (`property_id`, text, required): The property's ID, as it appears in column headers, such as `Product Name`.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Delete record

Delete a record.

**Inputs**

- Record (`record_id`, text, required): The record's ID.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Get digital asset

Get a digital asset's address, size, format and metadata.

**Inputs**

- Digital asset (`asset_id`, text, required): The digital asset's ID.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:asset_resource_type": "example",
    "salsify:bytes": 1,
    "salsify:created_at": "example",
    "salsify:filename": "example",
    "salsify:format": "example",
    "salsify:id": "example",
    "salsify:name": "example",
    "salsify:source_url": "example",
    "salsify:status": "example",
    "salsify:updated_at": "example",
    "salsify:url": "example"
  }
}
```

### Get export status

Get an export's progress and, once it's completed, the address to download it from.

**Inputs**

- Export ID (`export_id`, number, required): The export's ID, from Start export. At least 1.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "end_time": "example",
    "failure_reason": "example",
    "id": 1,
    "progress": 1,
    "start_time": "example",
    "status": "example",
    "url": "example"
  }
}
```

### Get product

Get a product with all its property values.

**Inputs**

- Product (`product_id`, text, required): The product's ID: the value of the property your organization uses as its product ID.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:created_at": "example",
    "salsify:id": "example",
    "salsify:parent_id": "example",
    "salsify:system_id": "example",
    "salsify:updated_at": "example",
    "salsify:version": 1
  }
}
```

### Get property

Get a property's name, data type and group.

**Inputs**

- Property (`property_id`, text, required): The property's ID, as it appears in column headers, such as `Product Name`.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:attribute_group": "example",
    "salsify:created_at": "example",
    "salsify:data_type": "example",
    "salsify:entity_types": [
      "example"
    ],
    "salsify:help_text": "example",
    "salsify:id": "example",
    "salsify:name": "example",
    "salsify:updated_at": "example"
  }
}
```

### Get record

Get a record with all its property values.

**Inputs**

- Record (`record_id`, text, required): The record's ID.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:created_at": "example",
    "salsify:id": "example",
    "salsify:parent_id": "example",
    "salsify:system_id": "example",
    "salsify:updated_at": "example",
    "salsify:version": 1
  }
}
```

### List digital assets

List digital assets (images, videos and files), optionally matching a filter.

**Inputs**

- Filter (`filter`, text): Only those matching this Salsify filter, such as `='Brand':'Acme'`. Leave empty for all.
- Page (`page`, number): Which page to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many to return per page, up to 100. Leave empty for 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "salsify:asset_resource_type": "example",
        "salsify:bytes": 1,
        "salsify:created_at": "example",
        "salsify:filename": "example",
        "salsify:format": "example",
        "salsify:id": "example",
        "salsify:name": "example",
        "salsify:source_url": "example",
        "salsify:status": "example",
        "salsify:updated_at": "example",
        "salsify:url": "example"
      }
    ],
    "meta": {
      "current_page": 1,
      "per_page": 1,
      "total_entries": 1
    }
  }
}
```

### List products

List products with their property values, optionally matching a filter.

**Inputs**

- Filter (`filter`, text): Only those matching this Salsify filter, such as `='Brand':'Acme'`. Leave empty for all.
- Page (`page`, number): Which page to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many to return per page, up to 100. Leave empty for 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "salsify:created_at": "example",
        "salsify:id": "example",
        "salsify:parent_id": "example",
        "salsify:system_id": "example",
        "salsify:updated_at": "example",
        "salsify:version": 1
      }
    ],
    "meta": {
      "current_page": 1,
      "per_page": 1,
      "total_entries": 1
    }
  }
}
```

### List record types

List your organization's record types, such as Products or Colors.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "salsify:created_at": "example",
        "salsify:id": "example",
        "salsify:name": "example",
        "salsify:updated_at": "example"
      }
    ],
    "meta": {
      "current_page": 1,
      "per_page": 1,
      "total_entries": 1
    }
  }
}
```

### List records

List records of one record type, optionally matching a filter.

**Inputs**

- Record type (`record_type`, text, required): The record type to list.
- Filter (`filter`, text): Only those matching this Salsify filter, such as `='Brand':'Acme'`. Leave empty for all.
- Page (`page`, number): Which page to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many to return per page, up to 100. Leave empty for 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "salsify:created_at": "example",
        "salsify:id": "example",
        "salsify:parent_id": "example",
        "salsify:system_id": "example",
        "salsify:updated_at": "example",
        "salsify:version": 1
      }
    ],
    "meta": {
      "current_page": 1,
      "per_page": 1,
      "total_entries": 1
    }
  }
}
```

### Remove from list

Remove products or digital assets from a simple list.

**Inputs**

- List ID (`list_id`, text, required): The simple list's ID: the number after `product_lists/` (or the ID after `digital-asset-management/lists/`) in the list's address in Salsify.
- Product or asset IDs (`member_ids`, list, required): The IDs of the products or digital assets.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Start export

Start making an export file of products, digital assets or properties. Get export status gives its download address when it's ready.

**Inputs**

- Export (`entity_type`, text, required): What to export. One of: `product` (Products), `digital_asset` (Digital assets), `attribute` (Properties), `attribute_value` (Values of pick-list properties), `all` (Everything (JSON or JSON Lines only)).
- Format (`format`, text): The file's format. Leave empty for Excel, or JSON for everything. One of: `xlsx` (Excel (.xlsx)), `csv`, `json`, `jsonl` (JSON Lines).
- Filter (`filter`, text): Only products or digital assets matching this Salsify filter. Leave empty for all.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "end_time": "example",
    "failure_reason": "example",
    "id": 1,
    "progress": 1,
    "start_time": "example",
    "status": "example",
    "url": "example"
  }
}
```

### Update digital asset

Replace a digital asset's file from a new address, or set its metadata.

**Inputs**

- Digital asset (`asset_id`, text, required): The digital asset's ID.
- New file address (`source_url`, text): A public http(s) address of the new file.
- Metadata (`metadata`, object): Metadata by property ID to set. Properties left out keep their values.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:asset_resource_type": "example",
    "salsify:bytes": 1,
    "salsify:created_at": "example",
    "salsify:filename": "example",
    "salsify:format": "example",
    "salsify:id": "example",
    "salsify:name": "example",
    "salsify:source_url": "example",
    "salsify:status": "example",
    "salsify:updated_at": "example",
    "salsify:url": "example"
  }
}
```

### Update product

Set property values on a product. Properties left out keep their values.

**Inputs**

- Product (`product_id`, text, required): The product's ID: the value of the property your organization uses as its product ID.
- Property values (`values`, object, required): Property values by property ID, such as `{"Product Name": "Big TV", "Brand": "Acme"}`. A list sets several values. A property ID that doesn't exist yet is created as text.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:created_at": "example",
    "salsify:id": "example",
    "salsify:parent_id": "example",
    "salsify:system_id": "example",
    "salsify:updated_at": "example",
    "salsify:version": 1
  }
}
```

### Update property

Change a property's name, help text or group.

**Inputs**

- Property (`property_id`, text, required): The property's ID, as it appears in column headers, such as `Product Name`.
- Name (`name`, text): The new name.
- Help text (`help_text`, text): The new help text.
- Group (`attribute_group`, text): The group to show it in.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:attribute_group": "example",
    "salsify:created_at": "example",
    "salsify:data_type": "example",
    "salsify:entity_types": [
      "example"
    ],
    "salsify:help_text": "example",
    "salsify:id": "example",
    "salsify:name": "example",
    "salsify:updated_at": "example"
  }
}
```

### Update record

Set property values on a record. Properties left out keep their values.

**Inputs**

- Record (`record_id`, text, required): The record's ID.
- Property values (`values`, object, required): Property values by property ID, such as `{"Product Name": "Big TV", "Brand": "Acme"}`. A list sets several values. A property ID that doesn't exist yet is created as text.

**Outputs**

- `data` (object): The response from Salsify.

**Example output**

```json
{
  "data": {
    "salsify:created_at": "example",
    "salsify:id": "example",
    "salsify:parent_id": "example",
    "salsify:system_id": "example",
    "salsify:updated_at": "example",
    "salsify:version": 1
  }
}
```
