Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to PayPal

Scalekit connector
Open markdown

The PayPal connector lets your AI agent work with PayPal. Scalekit handles authentication for every call, so your agent never handles credentials. It comes with 63 tools.

Tools
63
What they doRead · write · destructive
22 · 41 · 022 read41 write0 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 PayPal connection

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

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • paypal_authorization_getGet one authorized PayPal payment by id, including status, amount, expiration_time and seller protection.Read-only

    Get Authorization

    Get one authorized PayPal payment by id, including status, amount, expiration_time and seller protection. Returns the authorization object. Use authorization_get to check that a hold is still CREATED and when it expires before you capture it. Use capture_get for a payment that has already been captured.

    Inputs

    authorization_idstringrequired
    The PayPal authorization ID, found in purchase_units[].payments.authorizations[].id of the order returned by order_authorize or order_get. Example: 0VF52814937998046
  • paypal_balances_listList the PayPal account's balances per currency, now or as of a past time within the last three years.Read-only

    List Balances

    List the PayPal account's balances per currency, now or as of a past time within the last three years. Returns balances with currency, total_balance, available_balance and withheld_balance, plus as_of_time and last_refresh_time. Use balances_list to check available funds, for example before payout_create. Use transactions_list for the activity behind a balance.

    Inputs

    as_of_timestring
    Return balances as of this ISO 8601 date-time. Defaults to the latest refreshed balance. Example: 2026-10-01T00:00:00Z
    currency_codestring
    Only the balance in this three-letter currency. Example: USD
  • paypal_capture_getGet one captured PayPal payment by id, including status, amount, final_capture, seller_receivable_breakdown (gross amount, PayPal fee and net amount) and links.Read-only

    Get Capture

    Get one captured PayPal payment by id, including status, amount, final_capture, seller_receivable_breakdown (gross amount, PayPal fee and net amount) and links. Returns the capture object. Use capture_get to check a payment's status or fees before refunding it. Use refund_get for a refund's details.

    Inputs

    capture_idstringrequired
    The PayPal capture ID, found in purchase_units[].payments.captures[].id of the order returned by order_capture or order_get, or returned by authorization_capture. Example: 2GG279541U471931P
  • paypal_dispute_getGet one dispute by id, including reason, status, disputed transactions, amounts, messages, evidence, offers, seller_response_due_date and allowed_response_options.Read-only

    Get Dispute

    Get one dispute by id, including reason, status, disputed transactions, amounts, messages, evidence, offers, seller_response_due_date and allowed_response_options. Returns the dispute object. Use dispute_get before responding to a dispute to see what actions are allowed. Use disputes_list to find dispute ids.

    Inputs

    dispute_idstringrequired
    The PayPal dispute ID (starts with PP-), returned by disputes_list. Example: PP-D-27803
  • paypal_disputes_listList disputes against the PayPal account (created within the last 180 days by default), optionally filtered by state, transaction or update time.Read-only

    List Disputes

    List disputes against the PayPal account (created within the last 180 days by default), optionally filtered by state, transaction or update time. Returns items with dispute_id, reason, status, dispute_state, dispute_life_cycle_stage, dispute_amount and times, plus a next link carrying next_page_token. Use disputes_list to find open disputes. Use dispute_get for one dispute's messages, evidence and allowed responses.

    Inputs

    dispute_statestring
    Only disputes in these states, comma-separated: REQUIRED_ACTION, REQUIRED_OTHER_PARTY_ACTION, UNDER_PAYPAL_REVIEW, RESOLVED, OPEN_INQUIRIES or APPEALABLE. Example: REQUIRED_ACTION,OPEN_INQUIRIES
    disputed_transaction_idstring
    Only disputes about this PayPal transaction ID. Cannot be combined with start_time. Example: 5TY05013RG002845M
    next_page_tokenstring
    Token for the next page, taken from the next_page_token parameter in the next link of the previous response. Example: ARt111
    page_sizeinteger
    Number of items per page, from 1 to 50. PayPal uses 10 when omitted.
    start_timestring
    Only disputes created on or after this ISO 8601 date-time, within the last 180 days. Cannot be combined with disputed_transaction_id. Example: 2026-07-01T00:00:00.000Z
    update_time_afterstring
    Only disputes last updated after this ISO 8601 date-time. Example: 2026-10-01T00:00:00.000Z
    update_time_beforestring
    Only disputes last updated before this ISO 8601 date-time. Example: 2026-10-14T00:00:00.000Z
  • paypal_invoice_getGet one PayPal invoice by id, including status, detail, invoicer, recipients, line items, amounts, due amount, payments and refunds.Read-only

    Get Invoice

    Get one PayPal invoice by id, including status, detail, invoicer, recipients, line items, amounts, due amount, payments and refunds. Returns the invoice object. Use invoice_get to read a known invoice or before invoice_update. Use invoices_search to find invoices by criteria.

    Inputs

    invoice_idstringrequired
    The PayPal invoice ID (starts with INV2-), returned by invoice_create, invoices_list or invoices_search. Example: INV2-Z56S-5LLA-Q52L-CPZ5
  • paypal_invoice_template_getGet one PayPal invoice template by id, including its name, default flag, prefilled invoice content and field display settings.Read-only

    Get Invoice Template

    Get one PayPal invoice template by id, including its name, default flag, prefilled invoice content and field display settings. Returns the template object. Use invoice_template_get before invoice_template_update. Use invoice_templates_list to find template ids.

    Inputs

    template_idstringrequired
    The invoice template ID (starts with TEMP-), returned by invoice_templates_list or invoice_template_create. Example: TEMP-19V05281TU309413B
  • paypal_invoice_templates_listList the invoice templates in the PayPal account, including PayPal's three system templates and any you created.Read-only

    List Invoice Templates

    List the invoice templates in the PayPal account, including PayPal's three system templates and any you created. Returns templates with id, name, default_template and, unless fields is none, the prefilled invoice content. Use invoice_templates_list to find a template_id for invoice creation or invoice_template_get.

    Inputs

    fieldsstring
    all (the default) returns full template details; none returns only each template's name, id and default flag.one of allnone
    pageinteger
    Page number to return, starting at 1. Defaults to 1. Combine with page_size: page=2 with page_size=20 returns items 21 to 40.
    page_sizeinteger
    Number of items per page, from 1 to 100. PayPal uses 20 when omitted.