# Plug&Pay

> Read Plug&Pay orders, products, subscriptions, checkouts and tax rates.

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/plug-and-pay

## Actions

### Get a checkout

Get a checkout.

**Inputs**

- Checkout (`checkout_id`, number, required): The numeric identifier for this record. At least 1.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

```json
{
  "data": {
    "data": {
      "id": 1,
      "title": "example"
    }
  }
}
```

### Get a product

Get a product.

**Inputs**

- Product (`product_id`, number, required): The numeric identifier for this record. At least 1.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

```json
{
  "data": {
    "data": {
      "id": 1,
      "title": "example"
    }
  }
}
```

### Get a rule

Get a rule.

**Inputs**

- Rule ID (`rule_id`, number, required): The numeric identifier for this record. At least 1.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

```json
{
  "data": {
    "data": {
      "id": 1
    }
  }
}
```

### Get a subscription

Get a subscription.

**Inputs**

- Subscription ID (`subscription_id`, number, required): The numeric identifier for this record. At least 1.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

```json
{
  "data": {
    "data": {
      "id": 1,
      "status": "example"
    }
  }
}
```

### Get account information

Get account information.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

```json
{
  "data": {
    "data": {
      "id": 1
    }
  }
}
```

### Get an affiliate seller

Get an affiliate seller.

**Inputs**

- Seller ID (`seller_id`, number, required): The numeric identifier for this record. At least 1.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

```json
{
  "data": {
    "data": {
      "id": 1
    }
  }
}
```

### Get an order

Get an order.

**Inputs**

- Order ID (`order_id`, number, required): The numeric identifier for this record. At least 1.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

```json
{
  "data": {
    "data": {
      "id": 1
    }
  }
}
```

### Get an order payment

Get an order payment.

**Inputs**

- Order ID (`order_id`, number, required): The numeric identifier for this record. At least 1.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

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

### Get membership settings

Get membership settings.

**Inputs**

- Membership settings ID (`membership_settings_id`, number, required): The numeric identifier for this record. At least 1.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

```json
{
  "data": {
    "data": {
      "id": 1
    }
  }
}
```

### List affiliate sellers

List affiliate sellers.

**Inputs**

- Page (`page`, number): Page number, starting at 1. At least 1.
- Limit (`limit`, number): Maximum records to return per page. From 1 to 100.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

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

### List checkouts

List checkouts.

**Inputs**

- Page (`page`, number): Page number, starting at 1. At least 1.
- Limit (`limit`, number): Maximum records to return per page. From 1 to 100.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": 1,
        "title": "example"
      }
    ]
  }
}
```

### List membership settings

List membership settings.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

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

### List orders

List orders.

**Inputs**

- Page (`page`, number): Page number, starting at 1. At least 1.
- Limit (`limit`, number): Maximum records to return per page. From 1 to 100.
- Email (`email`, text): Email address on the order.
- Product (`product_id`, number): Only orders for this product.
- Checkout (`checkout_id`, number): Only orders from this checkout.
- Payment status (`payment_status`, list): Include orders with these payment statuses. One or more of: `credit_invoice` (Credit invoice), `credited`, `open`, `paid`, `processing`, `reversed`.
- Direction (`direction`, text): Sort direction. One of: `asc`, `desc`.
- Sort (`sort`, text): Order to sort by. One of: `paid_at` (Paid at), `invoice_number` (Invoice number), `invoice_date` (Invoice date).
- Since paid at (`since_paid_at`, date and time): Paid at or after this time.
- Until paid at (`until_paid_at`, date and time): Paid at or before this time.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

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

### List products

List products.

**Inputs**

- Page (`page`, number): Page number, starting at 1. At least 1.
- Limit (`limit`, number): Maximum records to return per page. From 1 to 100.
- Search (`search`, text): Search text.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": 1,
        "title": "example"
      }
    ]
  }
}
```

### List rules

List rules.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

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

### List subscriptions

List subscriptions.

**Inputs**

- Page (`page`, number): Page number, starting at 1. At least 1.
- Limit (`limit`, number): Maximum records to return per page. From 1 to 100.
- Product (`product_id`, number): Only subscriptions for this product.
- Status (`status`, text): Subscription status. One of: `active`, `cancelled`, `ended`, `inactive`.
- Start date (`start_date`, date): Earliest creation date.
- End date (`end_date`, date): Latest creation date.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": 1,
        "status": "example"
      }
    ]
  }
}
```

### List tax rates

List tax rates.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Plug&Pay.

**Example output**

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