# Zettle by PayPal

> Read POS purchases, stock, finance transactions and payouts, and add, look up or remove products in your Zettle product library.

App · 14 actions. Web page: https://docs.lodol.com/docs/integrations/zettle

## Actions

### Create product

Add a product with one price to your Zettle product library, so it shows on your point of sale.

**Inputs**

- Name (`name`, text, required): The product's name, such as Scarf.
- Price (`price`, number, required): Its price in your account's currency, such as 12.50. At least 0.
- Currency (`currency`, text, required): Your Zettle account's three-letter currency, such as GBP or EUR.
- VAT rate (`vat_percentage`, text, required): The VAT rate, such as 20. It must be one of the rates in your Zettle account settings.
- Description (`description`, text): Optional description.
- SKU (`sku`, text): Optional SKU (your stock code).

**Outputs**

- `data` (object): The response from Zettle by PayPal.

**Example output**

```json
{
  "data": {
    "currency": "example",
    "name": "example",
    "price": 1,
    "uuid": "example",
    "variant_uuid": "example"
  }
}
```

### Delete product

Delete a product from your Zettle product library for good, so it no longer shows on your point of sale.

**Inputs**

- Product (`product_id`, text, required): The product, from List products or Create product.

**Outputs**

- `data` (object): The response from Zettle by PayPal.

**Example output**

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

### Get finance balance

Get finance balance.

**Inputs**

- Account type group (`account_type_group`, text, required): Account type group. One of: `PRELIMINARY`, `LIQUID`.

**Outputs**

- `data` (object): The response from Zettle by PayPal.

**Example output**

```json
{
  "data": {
    "currencyId": "example",
    "totalBalance": 1
  }
}
```

### Get inventory balance

Get inventory balance.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Zettle by PayPal.

**Example output**

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

### Get inventory by location type

Get inventory by location type.

**Inputs**

- Location type (`location_type`, text, required): Location type. One of: `STORE`, `SOLD`, `BIN`, `SUPPLIER`.

**Outputs**

- `data` (object): The response from Zettle by PayPal.

**Example output**

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

### Get location inventory

Get location inventory.

**Inputs**

- Location (`location_id`, text, required): Location ID.

**Outputs**

- `data` (object): The response from Zettle by PayPal.

**Example output**

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

### Get product

Look up one product in your Zettle product library, with its variants and prices.

**Inputs**

- Product (`product_id`, text, required): The product, from List products or Create product.

**Outputs**

- `data` (object): The response from Zettle by PayPal.

**Example output**

```json
{
  "data": {
    "created": "example",
    "description": "example",
    "name": "example",
    "updated": "example",
    "uuid": "example",
    "variants": [
      {
        "name": "example",
        "price": {
          "amount": 1,
          "currencyId": "example"
        },
        "sku": "example",
        "uuid": "example"
      }
    ],
    "vatPercentage": "example"
  }
}
```

### Get purchase

Get purchase.

**Inputs**

- Purchase ID (`purchase_id`, text, required): Purchase ID.

**Outputs**

- `data` (object): The response from Zettle by PayPal.

**Example output**

```json
{
  "data": {
    "amount": 1,
    "payments": [
      {}
    ],
    "products": [
      {}
    ],
    "purchaseUUID": "example",
    "timestamp": "example"
  }
}
```

### List finance transactions

List finance transactions.

**Inputs**

- Account type group (`account_type_group`, text, required): Account type group. One of: `PRELIMINARY`, `LIQUID`.
- Start (`start`, date and time, required): The start time in UTC (inclusive) from when the transactions will be fetched.
- End (`end`, date and time, required): The end time in UTC (exclusive) before when the transactions will be fetched.
- Limit (`limit`, number): Limit.

**Outputs**

- `data` (list): The response from Zettle by PayPal.

**Example output**

```json
{
  "data": [
    {
      "amount": "example",
      "originatorTransactionType": "example",
      "originatorTransactionUuid": "example",
      "timestamp": "example"
    }
  ]
}
```

### List inventory locations

List inventory locations.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Zettle by PayPal.

**Example output**

```json
{
  "data": [
    {
      "name": "example",
      "type": "example",
      "uuid": "example"
    }
  ]
}
```

### List payouts

List payouts.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Zettle by PayPal.

**Example output**

```json
{
  "data": {
    "currencyId": "example",
    "discountRemaining": 1,
    "nextPayoutAmount": 1,
    "periodicity": "example",
    "totalBalance": 1
  }
}
```

### List product categories

List product categories.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Zettle by PayPal.

**Example output**

```json
{
  "data": [
    {
      "name": "example",
      "uuid": "example"
    }
  ]
}
```

### List products

List every product in your Zettle product library, with each variant's price and SKU.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Zettle by PayPal.

**Example output**

```json
{
  "data": [
    {
      "created": "example",
      "description": "example",
      "name": "example",
      "updated": "example",
      "uuid": "example",
      "variants": [
        {
          "name": "example",
          "price": {
            "amount": 1,
            "currencyId": "example"
          },
          "sku": "example",
          "uuid": "example"
        }
      ],
      "vatPercentage": "example"
    }
  ]
}
```

### List purchases

List purchases.

**Inputs**

- Start date (`start_date`, date and time): Start date.
- End date (`end_date`, date and time): End date.
- Limit (`limit`, number): Limit. From 1 to 1000.
- Cursor (`cursor`, text): Cursor.
- Descending (`descending`, true/false): Descending.

**Outputs**

- `data` (object): The response from Zettle by PayPal.

**Example output**

```json
{
  "data": {
    "lastPurchaseHash": "example",
    "linkUrls": [
      "example"
    ],
    "purchases": [
      {
        "amount": 1,
        "payments": [
          {}
        ],
        "products": [
          {}
        ],
        "purchaseUUID": "example",
        "timestamp": "example"
      }
    ]
  }
}
```
