# Skimlinks

> Find participating merchants, offers and categories and read publisher commission reports.

App · 7 actions. Web page: https://docs.lodol.com/docs/integrations/skimlinks

## Actions

### List alternative merchant categories

Read the alternative category taxonomies.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Skimlinks.

**Example output**

```json
{
  "data": [
    {
      "taxonomy": "example",
      "verticals": [
        {
          "id": 1,
          "name": "example",
          "verticals": [
            {}
          ]
        }
      ]
    }
  ]
}
```

### List commissions

Read affiliate commissions with optional date and merchant filters.

**Inputs**

- Limit (`limit`, number): Number of rows to return. Default value=30, Minimum value=1, Maximum value=5000
- Offset (`offset`, number): Use this parameter in order to paginate through results. Example: **200** to start results from the **200** position.
- Start Date (`start_date`, date): Filter commissions with transaction dates higher than the one provided
- End Date (`end_date`, date): Filter commissions with transaction dates lower than the one provided
- Updated Since (`updated_since`, text): Filter commissions that has been modified since the time provided
- Custom Id (`custom_id`, text): Filter commissions with the provided custom click id. See **xcust** in the Link Wrapper documentation
- Merchant Id (`merchant_id`, number): Filter commissions with a specific merchant ID
- A Id (`a_id`, number): Filter commissions with a specific advertiser ID
- Domain Id (`domain_id`, number): Filter commissions with a specific publisher domain ID
- Sort Dir (`sort_dir`, text): Sort the results in ascendant or descendant order. One of: `DESC`, `ASC`.
- Sort By (`sort_by`, text): Sort the results by: One of: `id`, `transaction_date` (Transaction date).
- Commission Id (`commission_id`, text): Filter commissions with a specific commission identifier
- Status (`status`, text): Filter commissions based on their status. One of: `active`, `cancelled`.
- Commission Type (`commission_type`, text): Filter commissions based on their type. One of: `CPA`, `CPC`, `CPL`, `Flat-fee`, `Performance`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "commissions": [
      {
        "click_details": {
          "clicked_url": "example",
          "custom_id": {},
          "date": "example",
          "normalized_page_referrer": "example",
          "normalized_page_url": "example",
          "page_url": "example",
          "platform": "example",
          "user_country": "example"
        },
        "commission_id": 1,
        "merchant_details": {
          "advertiser_id": 1,
          "advertiser_name": "example",
          "id": 1,
          "merchant_id": 1,
          "merchant_name": "example",
          "name": "example"
        },
        "publisher_domain_id": 1,
        "publisher_id": 1,
        "transaction_details": {
          "aggregation_id": "example",
          "basket": {
            "commission_type": {},
            "currency": {},
            "items": {},
            "order_amount": {},
            "publisher_amount": {}
          },
          "invoice_id": "example",
          "last_updated": "example",
          "payment_status": "example",
          "status": "example",
          "transaction_date": "example"
        }
      }
    ],
    "pagination": {
      "has_next": true,
      "limit": 1,
      "offset": 1,
      "total_count": 1
    }
  }
}
```

### List merchant categories

Read standard merchant categories.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "vertical_groups": [
      {
        "name": "example",
        "verticals": [
          {
            "group_id": {},
            "group_name": {},
            "id": {},
            "name": {}
          }
        ]
      }
    ]
  }
}
```

### List merchant domains

Read the domains of merchants available to your publisher account.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "domains": [
      {
        "advertiser_id": 1,
        "domain": "example",
        "id": 1,
        "merchant_id": 1
      }
    ],
    "has_more": true,
    "last_val": "example",
    "next_prefix": {},
    "next_val": {},
    "num_returned": 1
  }
}
```

### List merchant offers

Read offers and filter by merchant, dates or category.

**Inputs**

- Search (`search`, text): Search query string
- Merchant Id (`merchant_id`, number): List offers from this merchant only.
- A Id (`a_id`, number): List offers from this advertiser only.
- Vertical (`vertical`, number): List merchants from one vertical only. Use an ID of the vertical. To get the vertical ID see the verticals endpoint.
- Country (`country`, text): Two character country code
- Period (`period`, text): The period. One of: `upcoming`, `ongoing`, `finished`, `finishing_soon` (Finishing soon), `not_expired` (Not expired), `all`.
- Favourite Type (`favourite_type`, text): Pass in `favourite` to retrieve your favourites only
- Limit (`limit`, number): Number of rows to return
- Offset (`offset`, number): Use this parameter in order to paginate through results. Example: **200** to start results from the **200** position.
- Sort By (`sort_by`, text): The sort by. One of: `offer_starts` (Offer starts), `offer_ends` (Offer ends), `id`.
- Sort Dir (`sort_dir`, text): Sorting direction. One of: `asc`, `desc`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "has_more": true,
    "last_val": 1,
    "next_val": 1,
    "num_returned": 1,
    "offers": [
      {
        "coupon_code": {},
        "description": "example",
        "id": 1,
        "merchant_details": {
          "advertiser_id": 1,
          "countries": [
            {}
          ],
          "country_code": {},
          "domain": "example",
          "domains": [
            {}
          ],
          "favourite": true,
          "id": 1,
          "merchant_id": 1,
          "metadata": {},
          "name": "example",
          "partner_type": {},
          "verticals": [
            {}
          ]
        },
        "offer_ends": "example",
        "offer_starts": "example",
        "offer_type": "example",
        "terms": {},
        "title": "example",
        "url": "example"
      }
    ]
  }
}
```

### List merchants

Find merchant programs available to your publisher account.

**Inputs**

- Publisher Domain Id (`publisher_domain_id`, number): The numeric ID of your own publisher site. Leave empty to use your first registered site.
- A Id (`a_id`, number): Filter results by `advertiser_id`
- Merchant Id (`merchant_id`, number): Filter results by `merchant_id`
- Search (`search`, text): Search query string
- Vertical (`vertical`, number): List merchants from one vertical only. Use an ID of the vertical. To get the vertical ID see the verticals endpoint.
- Country (`country`, text): Two character country code
- Alternative Vertical Id (`alternative_vertical_id`, number): List merchants from one alternative vertical only. Use an ID of the alternative vertical. To get the alternative vertical ID see the alternative verticals endpoint.
- Alternative Vertical Taxonomy (`alternative_vertical_taxonomy`, text): List merchants from one alternative vertical taxonomy only. To get the alternative vertical taxonomies see the alternative verticals endpoint.
- Alternative Vertical Country (`alternative_vertical_country`, text): List merchants from one alternative vertical country only. When using `top_merchant` taxonomy, a country code is required along with `alternative_vertical_id`
- Favourite Type (`favourite_type`, text): Pass in `favourite` to retrieve your favourites only
- Limit (`limit`, number): Number of rows to return
- Offset (`offset`, number): Use this parameter in order to paginate through results. Example: **200** to start results from the **200** position.
- Sort By (`sort_by`, text): Sorting column. One of: `name`, `partner_type` (Partner type), `calculated_commission_rate` (Calculated commission rate), `calculated_ecpc` (Calculated ecpc), `popularity`.
- Sort Dir (`sort_dir`, text): Sorting direction. One of: `asc`, `desc`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "has_more": true,
    "last_val": "example",
    "merchants": [
      {
        "advertiser_id": 1,
        "alternative_verticals": [
          {
            "taxonomy": {},
            "verticals": {}
          }
        ],
        "calculated_average_daily_sales": 1,
        "calculated_average_order_value": 1,
        "calculated_commission_rate": 1,
        "calculated_conversion_rate": 1,
        "calculated_ecpc": 1,
        "countries": [
          "example"
        ],
        "country_code": {},
        "domains": [
          "example"
        ],
        "estimated_attribution_window": "example",
        "estimated_payment_days": "example",
        "favourite": true,
        "id": 1,
        "maximum_rate": {
          "aggregation_type": "example",
          "base_rate": 1,
          "currency": {},
          "description": {},
          "increased_rate": 1,
          "payout_type": "example",
          "rate_type": "example"
        },
        "merchant_id": 1,
        "merchant_ids": [
          "example"
        ],
        "metadata": {
          "description": "example",
          "logo": "example"
        },
        "minimum_rate": {},
        "name": "example",
        "partner_type": "example"
      }
    ],
    "next_val": {},
    "num_returned": 1,
    "publisher_domain_stats": [
      {
        "calculated_average_order_value": 1,
        "calculated_commission_rate": 1,
        "calculated_conversion_rate": 1,
        "calculated_ecpc": 1,
        "estimated_reversal_rate": 1,
        "publisher_domain_id": 1
      }
    ],
    "user_currency": "example"
  }
}
```

### List trending products

Find popular products over the selected period.

**Inputs**

- Period (`period`, text, required): Trending for period: One of: `today`, `7_days` (7 days), `30_days` (30 days).
- Limit (`limit`, number): Number of rows to return. Default value=30, Minimum value=1, Maximum value=600
- Offset (`offset`, number): Use this parameter in order to paginate through results. Example: 200 to start results from the 200 position.
- Sort By (`sort_by`, text): Sort the results by: One of: `popular_rank` (Popular rank), `trending_rank` (Trending rank).
- Sort Dir (`sort_dir`, text): Sort the results in ascendant or descendant order. One of: `DESC`, `ASC`.
- A Id (`a_id`, number): Filter the report by a specific advertiser id
- Country Code (`country_code`, text): Filter the report to receive only products from advertisers from this country. Use two letter country code.
- Audience Country Code (`audience_country_code`, text): Filter the report to receive only products that are trending on this country. Use two letter country code.
- Vertical Id (`vertical_id`, number): List products from one vertical only. Use an ID of the vertical. To get the vertical ID see the verticals endpoint.
- Product Search (`product_search`, text): Search products by name

**Outputs**

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

**Example output**

```json
{
  "data": {
    "pagination": {
      "has_next": true,
      "limit": 1,
      "offset": 1,
      "total_count": 1
    },
    "reports": [
      {
        "advertiser_id": 1,
        "advertiser_name": "example",
        "conversion_rate": 1,
        "epc": 1,
        "is_available": {},
        "merchant_countries": [
          "example"
        ],
        "merchant_verticals": [
          "example"
        ],
        "order_rank": 1,
        "popular_rank": 1,
        "previous_popular_rank": {},
        "product_brand": {},
        "product_image_url": {},
        "product_name": "example",
        "product_url": {},
        "publisher_currency": "example",
        "publisher_id": 1,
        "rank_rate_change": 1,
        "rank_rate_change_trend": "example",
        "trending_rank": 1
      }
    ]
  }
}
```
