# LoyaltyLion

> Read loyalty customers, orders, rewards and activity in LoyaltyLion.

App · 11 actions. Web page: https://docs.lodol.com/docs/integrations/loyaltylion

## Actions

### Get identity

Get identity.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "identity": {}
  }
}
```

### Get order

Get order.

**Inputs**

- Order (`order_id`, text, required): The ID of the order in your platform or ecommerce store

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cancellation_status": "cancelled",
    "merchant_created_at": "example",
    "merchant_id": "example",
    "merchant_updated_at": "example",
    "payment_status": "not_paid",
    "payments": [],
    "refund_status": "not_refunded",
    "refunds": [],
    "total": "example",
    "total_paid": "example",
    "total_shipping": "example"
  }
}
```

### List activities

List activities.

**Inputs**

- Since id (`since_id`, number): Return only resources whose id is after the specified id. At least 0.
- Limit (`limit`, number): Max number of resources to return per request. From 1 to 500.
- Page (`page`, number): Fetch another page of results. This field is deprecated and will be removed in a future version of the API. Use cursors for pagination instead. At least 1.
- Cursor (`cursor`, text): Fetch another page of results using a cursor returned in a previous response
- Created at min (`created_at_min`, date and time): Return only activities created on or after the specified `ISO 8601` datetime string
- Created at max (`created_at_max`, date and time): Return only activities created before the specified `ISO 8601` datetime string

**Outputs**

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

**Example output**

```json
{
  "data": {
    "activities": [],
    "cursor": {
      "next": "example",
      "prev": "example"
    }
  }
}
```

### List available rewards

List available rewards.

**Inputs**

- Customer (`customer_id`, text, required): The ID of the customer in your platform or ecommerce store
- Site id (`site_id`, number): By default this endpoint will return rewards across all sites in your program. If you have a multi-site program, you can specify a site ID here to return only rewards for that site
- Country (`country`, text): An ISO 3166-1 alpha-2 country code. When provided, only rewards available in this country are returned. Rewards with no country restriction are always included.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "rewards": []
  }
}
```

### List customer transactions

List customer transactions.

**Inputs**

- Customer (`customer_id`, text, required): The ID of the customer in your platform or ecommerce store
- Type (`type`, text): The format of the response. One of: `csv`, `json`.
- Since id (`since_id`, number): Return only resources whose id is after the specified id. At least 0.
- Limit (`limit`, number): Max number of resources to return per request. From 1 to 500.
- Cursor (`cursor`, text): Fetch another page of results using a cursor returned in a previous response
- Created at min (`created_at_min`, date and time): Return only transactions created on or after the specified `ISO 8601` datetime string
- Created at max (`created_at_max`, date and time): Return only transactions created before the specified `ISO 8601` datetime string

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### List customers

List customers.

**Inputs**

- Since id (`since_id`, number): Return only resources whose id is after the specified id. At least 0.
- Limit (`limit`, number): Max number of resources to return per request. From 1 to 500.
- Page (`page`, number): Fetch another page of results. This field is deprecated and will be removed in a future version of the API. Use cursors for pagination instead. At least 1.
- Sort field (`sort_field`, text): Sort field. One of: `id`, `updated_at` (Updated at).
- Sort direction (`sort_direction`, text): Sort direction. One of: `asc`, `desc`.
- Cursor (`cursor`, text): Fetch another page of results using a cursor returned in a previous response
- Email (`email`, text): Return only customers whose email contains the specified string
- Created at min (`created_at_min`, date and time): Return only customers created on or after the specified `ISO 8601` datetime string
- Created at max (`created_at_max`, date and time): Return only customers created before the specified `ISO 8601` datetime string
- Updated at min (`updated_at_min`, date and time): Return only customers updated on or after the specified `ISO 8601` datetime string
- Updated at max (`updated_at_max`, date and time): Return only customers updated before the specified `ISO 8601` datetime string

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cursor": {
      "next": "example",
      "prev": "example"
    },
    "customers": []
  }
}
```

### List email unsubscribes

List email unsubscribes.

**Inputs**

- Limit (`limit`, number): Max number of resources to return per request. From 1 to 500.
- Page (`page`, number): Fetch another page of results. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": []
}
```

### List orders

List orders.

**Inputs**

- Since id (`since_id`, number): Return only resources whose id is after the specified id. At least 0.
- Limit (`limit`, number): Max number of resources to return per request. From 1 to 500.
- Page (`page`, number): Fetch another page of results. This field is deprecated and will be removed in a future version of the API. Use cursors for pagination instead. At least 1.
- Cursor (`cursor`, text): Fetch another page of results using a cursor returned in a previous response
- Created at min (`created_at_min`, date and time): Created at min.
- Created at max (`created_at_max`, date and time): Created at max.
- Updated at min (`updated_at_min`, date and time): Updated at min.
- Updated at max (`updated_at_max`, date and time): Updated at max.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cursor": {
      "next": "example",
      "prev": "example"
    },
    "orders": []
  }
}
```

### List sites

List sites.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "sites": []
  }
}
```

### List transactions

List transactions.

**Inputs**

- Type (`type`, text): The format of the response. One of: `csv`, `json`.
- Since id (`since_id`, number): Return only resources whose id is after the specified id. At least 0.
- Limit (`limit`, number): Max number of resources to return per request. From 1 to 500.
- Cursor (`cursor`, text): Fetch another page of results using a cursor returned in a previous response
- Customer id (`customer_id`, number): Return only transactions for this LoyaltyLion customer ID
- Created at min (`created_at_min`, date and time): Return only transactions created on or after the specified `ISO 8601` datetime string
- Created at max (`created_at_max`, date and time): Return only transactions created before the specified `ISO 8601` datetime string

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### List webhooks

List webhooks.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "webhooks": []
  }
}
```
