Zettle by PayPal

App · 14 actions

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

Actions

ActionWhat it does
Create productAdd a product with one price to your Zettle product library, so it shows on your point of sale.
Delete productDelete a product from your Zettle product library for good, so it no longer shows on your point of sale.
Get finance balanceGet finance balance.
Get inventory balanceGet inventory balance.
Get inventory by location typeGet inventory by location type.
Get location inventoryGet location inventory.
Get productLook up one product in your Zettle product library, with its variants and prices.
Get purchaseGet purchase.
List finance transactionsList finance transactions.
List inventory locationsList inventory locations.
List payoutsList payouts.
List product categoriesList product categories.
List productsList every product in your Zettle product library, with each variant's price and SKU.
List purchasesList purchases.

Create product

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

Inputs

NamenametextRequired
The product's name, such as Scarf.
PricepricenumberRequired
Its price in your account's currency, such as 12.50.At least 0.
CurrencycurrencytextRequired
Your Zettle account's three-letter currency, such as GBP or EUR.
VAT ratevat_percentagetextRequired
The VAT rate, such as 20. It must be one of the rates in your Zettle account settings.
Descriptiondescriptiontext
Optional description.
SKUskutext
Optional SKU (your stock code).

Outputs

dataobject
The response from Zettle by PayPal.
Example output
{
  "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

Productproduct_idtextRequired
The product, from List products or Create product.

Outputs

dataobject
The response from Zettle by PayPal.
Example output
{
  "data": {
    "success": true
  }
}

Get finance balance

Get finance balance.

Inputs

Account type groupaccount_type_grouptextRequired
Account type group.One of: PRELIMINARY, LIQUID.

Outputs

dataobject
The response from Zettle by PayPal.
Example output
{
  "data": {
    "currencyId": "example",
    "totalBalance": 1
  }
}

Get inventory balance

Get inventory balance.

Inputs

None.

Outputs

dataobject
The response from Zettle by PayPal.
Example output
{
  "data": {}
}

Get inventory by location type

Get inventory by location type.

Inputs

Location typelocation_typetextRequired
Location type.One of: STORE, SOLD, BIN, SUPPLIER.

Outputs

dataobject
The response from Zettle by PayPal.
Example output
{
  "data": {}
}

Get location inventory

Get location inventory.

Inputs

Locationlocation_idtextRequired
Location ID.

Outputs

dataobject
The response from Zettle by PayPal.
Example output
{
  "data": {}
}

Get product

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

Inputs

Productproduct_idtextRequired
The product, from List products or Create product.

Outputs

dataobject
The response from Zettle by PayPal.
Example output
{
  "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 IDpurchase_idtextRequired
Purchase ID.

Outputs

dataobject
The response from Zettle by PayPal.
Example output
{
  "data": {
    "amount": 1,
    "payments": [
      {}
    ],
    "products": [
      {}
    ],
    "purchaseUUID": "example",
    "timestamp": "example"
  }
}

List finance transactions

List finance transactions.

Inputs

Account type groupaccount_type_grouptextRequired
Account type group.One of: PRELIMINARY, LIQUID.
Startstartdate and timeRequired
The start time in UTC (inclusive) from when the transactions will be fetched.
Endenddate and timeRequired
The end time in UTC (exclusive) before when the transactions will be fetched.
Limitlimitnumber
Limit.

Outputs

datalist
The response from Zettle by PayPal.
Example output
{
  "data": [
    {
      "amount": "example",
      "originatorTransactionType": "example",
      "originatorTransactionUuid": "example",
      "timestamp": "example"
    }
  ]
}

List inventory locations

List inventory locations.

Inputs

None.

Outputs

datalist
The response from Zettle by PayPal.
Example output
{
  "data": [
    {
      "name": "example",
      "type": "example",
      "uuid": "example"
    }
  ]
}

List payouts

List payouts.

Inputs

None.

Outputs

dataobject
The response from Zettle by PayPal.
Example output
{
  "data": {
    "currencyId": "example",
    "discountRemaining": 1,
    "nextPayoutAmount": 1,
    "periodicity": "example",
    "totalBalance": 1
  }
}

List product categories

List product categories.

Inputs

None.

Outputs

datalist
The response from Zettle by PayPal.
Example output
{
  "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

datalist
The response from Zettle by PayPal.
Example output
{
  "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 datestart_datedate and time
Start date.
End dateend_datedate and time
End date.
Limitlimitnumber
Limit.From 1 to 1000.
Cursorcursortext
Cursor.
Descendingdescendingtrue/false
Descending.

Outputs

dataobject
The response from Zettle by PayPal.
Example output
{
  "data": {
    "lastPurchaseHash": "example",
    "linkUrls": [
      "example"
    ],
    "purchases": [
      {
        "amount": 1,
        "payments": [
          {}
        ],
        "products": [
          {}
        ],
        "purchaseUUID": "example",
        "timestamp": "example"
      }
    ]
  }
}

On this page