Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Clover

Scalekit connector
Open markdown

The Clover connector lets your AI agent act in each user's Clover account. Each user connects their own Clover access token once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 120 tools.

Tools
120
What they doRead · write · destructive
61 · 40 · 1961 read40 write19 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Clover connection

    In AgentKit > Connections, create a Clover connection. The name you give it is the connection_name your code passes. See Configure connections.

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'clover'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Clover:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'clover_attribute_list',
    toolInput: { merchant_id: 'https://example.com/merchant-id' },
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user opens the link once and enters their Clover credentials there. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • clover_attribute_listList item attributes (such as size or color) defined by a merchant.Read-only

    List Attributes

    List item attributes (such as size or color) defined by a merchant. Returns an elements array of attributes, each with id, name, itemGroup, options. Use clover_attribute_list to see variant attributes. Use clover_option_list for the values of each attribute.

    Inputs

    merchant_idstringrequired
    Clover merchant ID (mId) the request applies to. Find it in the Clover Merchant Dashboard URL or in Settings > Account & Setup.
    filterstring
    Filter expression such as modifiedTime>1700000000000 or total>1000, using =, >=, <=, >, < or !=. Send one comparison per call. Filterable fields: modifiedTime, name, id, deletedTime, itemGroup.id.
    limitinteger
    Maximum number of line items returned in the search result. Default: 100 Maximum limit: 1000.
    offsetinteger
    Position of the first line item returned in the search results. Indicates the number of line items that are excluded from the search results.
  • clover_cash_event_listList cash drawer events such as cash in, cash out and drawer opens for a merchant.Read-only

    List Cash Events

    List cash drawer events such as cash in, cash out and drawer opens for a merchant. Returns an elements array of cash events, each with type, amountChange, timestamp, note, employee, device, merchant. Use clover_cash_event_list to audit cash movements.

    Inputs

    merchant_idstringrequired
    Clover merchant ID (mId) the request applies to. Find it in the Clover Merchant Dashboard URL or in Settings > Account & Setup.
    expandstring
    Comma-separated list of related records to include in the response. Allowed values: employee, device.
    filterstring
    Filter expression such as modifiedTime>1700000000000 or total>1000, using =, >=, <=, >, < or !=. Send one comparison per call. Filterable fields: employee.id, note, amountChange, employee.name, type, device.id, timestamp.
    limitinteger
    Maximum number of records to return. Defaults to 100 and cannot exceed 1000.
    offsetinteger
    Number of records to skip, for paging through large result sets together with limit.
  • clover_category_getGet one category by ID.Read-only

    Get Category

    Get one category by ID. Returns the category with id, name, sortOrder, items, colorCode, deleted, modifiedTime, canonical. Use clover_category_get when the ID is known. Get the ID from clover_category_list.

    Inputs

    category_idstringrequired
    Clover ID of the category (an alphanumeric string such as ABC123DEF4567). Use the matching list tool to find it.
    merchant_idstringrequired
    Clover merchant ID (mId) the request applies to. Find it in the Clover Merchant Dashboard URL or in Settings > Account & Setup.
    expandstring
    Comma-separated list of related records to include in the response. Allowed values: items.
  • clover_category_item_listList the inventory items in one category.Read-only

    List Category Items

    List the inventory items in one category. Returns an elements array of items, each with id, hidden, available, autoManage, itemGroup, options, name, alternateName. Use clover_category_item_list for a category's items. Use clover_item_category_list for an item's categories. Get the category ID from clover_category_list.

    Inputs

    category_idstringrequired
    Clover ID of the category (an alphanumeric string such as ABC123DEF4567). Use the matching list tool to find it.
    merchant_idstringrequired
    Clover merchant ID (mId) the request applies to. Find it in the Clover Merchant Dashboard URL or in Settings > Account & Setup.
    expandstring
    Comma-separated list of related records to include in the response. Allowed values: categories, itemStock, modifierRates, options, tags, taxRates.
    filterstring
    Filter expression such as modifiedTime>1700000000000 or total>1000, using =, >=, <=, >, < or !=. Send one comparison per call. Filterable fields: modifiedTime, deleted, sortOrder, name, colorCode, id.
    limitinteger
    Maximum number of line items returned in the search result. Default: 100 Maximum limit: 1000.
    offsetinteger
    Position of the first line item returned in the search results. Indicates the number of line items that are excluded from the search results.
  • clover_category_listList the item categories defined by a merchant.Read-only

    List Categories

    List the item categories defined by a merchant. Returns an elements array of categories, each with id, name, sortOrder, items, colorCode, deleted, modifiedTime, canonical. Use clover_category_list to browse categories. Use clover_category_get for one.

    Inputs

    merchant_idstringrequired
    Clover merchant ID (mId) the request applies to. Find it in the Clover Merchant Dashboard URL or in Settings > Account & Setup.
    expandstring
    Comma-separated list of related records to include in the response. Allowed values: items.
    filterstring
    Filter expression such as modifiedTime>1700000000000 or total>1000, using =, >=, <=, >, < or !=. Send one comparison per call. Filterable fields: modifiedTime, deleted, sortOrder, name, colorCode, id.
    limitinteger
    Maximum number of line items returned in the search result. Default: 100 Maximum limit: 1000.
    offsetinteger
    Position of the first line item returned in the search results. Indicates the number of line items that are excluded from the search results.
  • clover_credit_refund_getGet a single credit refund by ID.Read-only

    Get Credit Refund

    Get a single credit refund by ID. Returns the credit refund with id, orderRef, device, createdTime, clientCreatedTime, credit, employee, germanInfo. Use clover_credit_refund_get when the credit refund ID is known. Get the ID from clover_credit_refund_list.

    Inputs

    credit_refund_idstringrequired
    Clover ID of the credit refund (an alphanumeric string such as ABC123DEF4567). Use the matching list tool to find it.
    merchant_idstringrequired
    Clover merchant ID (mId) the request applies to. Find it in the Clover Merchant Dashboard URL or in Settings > Account & Setup.
    expandstring
    Comma-separated list of related records to include in the response. Allowed values: credit, germanInfo, appTracking, transactionInfo.
  • clover_credit_refund_listList credit refunds (refunds issued without an original payment) for a merchant.Read-only

    List Credit Refunds

    List credit refunds (refunds issued without an original payment) for a merchant. Returns an elements array of credit refunds, each with id, orderRef, device, tender, employee, customers, amount, taxAmount. Use clover_credit_refund_list for credits. Use clover_refund_list for refunds against payments.

    Inputs

    merchant_idstringrequired
    Clover merchant ID (mId) the request applies to. Find it in the Clover Merchant Dashboard URL or in Settings > Account & Setup.
    expandstring
    Comma-separated list of related records to include in the response. Allowed values: credit, germanInfo, appTracking, transactionInfo.
    limitinteger
    Maximum number of records to return. Defaults to 100 and cannot exceed 1000.
    offsetinteger
    Number of records to skip, for paging through large result sets together with limit.
  • clover_customer_getGet one customer by ID, optionally expanding contact details and metadata.Read-only

    Get Customer

    Get one customer by ID, optionally expanding contact details and metadata. Returns the customer with id, merchant, firstName, lastName, marketingAllowed, customerSince, orders, addresses. Use clover_customer_get when the ID is known. Use clover_customer_list to search. Get the ID from clover_customer_list.

    Inputs

    customer_idstringrequired
    Clover ID of the customer (an alphanumeric string such as ABC123DEF4567). Use the matching list tool to find it.
    merchant_idstringrequired
    Clover merchant ID (mId) the request applies to. Find it in the Clover Merchant Dashboard URL or in Settings > Account & Setup.
    expandstring
    Comma-separated list of related records to include in the response. Allowed values: addresses, emailAddresses, phoneNumbers, cards, metadata.
    filterstring
    Filter expression such as modifiedTime>1700000000000 or total>1000, using =, >=, <=, >, < or !=. Send one comparison per call. Filterable fields: customerSince, firstName, lastName, emailAddress, phoneNumber, marketingAllowed, fullName, id, deletedTime.