# HitPay

```json
{
  "name": "HitPay",
  "slug": "hitpay",
  "url": "https://composio.dev/toolkits/hitpay",
  "markdown_url": "https://composio.dev/toolkits/hitpay.md",
  "logo_url": "https://logos.composio.dev/api/hitpay",
  "categories": [
    "finance & accounting",
    "e-commerce"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-08-28T05:35:06.392Z"
}
```

![HitPay logo](https://logos.composio.dev/api/hitpay)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with HitPay MCP or direct API to process payments, create invoices, manage subscriptions, and issue payouts through natural language.

## Summary

HitPay is a payments platform offering processing, invoicing, recurring billing, payouts, and merchant business APIs.
Helps merchants accept payments and manage cash flow with unified, developer-friendly APIs.

## Categories

- finance & accounting
- e-commerce

## Toolkit Details

- Tools: 15

## Images

- Logo: https://logos.composio.dev/api/hitpay

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for HitPay.
  - Setup:
    - Configure Api Key credentials for HitPay.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Charge a customer for an order
- Create an invoice for a customer
- List recent payouts to bank account

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `HITPAY_GET_ACCOUNT_STATUS` | Get Account Status | Check the connected HitPay business's verification, bank-account, and payment-provider readiness. |
| `HITPAY_GET_BALANCES` | Get Balances | Return available, pending, deposit, and reserve balances by currency and wallet provider. |
| `HITPAY_GET_LOCATION` | Get Location | Retrieve one HitPay business location by ID. |
| `HITPAY_GET_PAYMENT_REQUEST` | Get Payment Request | Retrieve the current status and details of one HitPay payment request. |
| `HITPAY_LIST_CHARGES` | List Charges | Search completed and attempted charges by status, date, amount, payment request, customer, or location. Returns one page and an opaque continuation cursor. |
| `HITPAY_LIST_CUSTOMERS` | List Customers | List customer records stored by the connected HitPay business. Returns one provider-selected page because continuation input has not been verified. |
| `HITPAY_LIST_INVOICES` | List Invoices | Find invoices by customer email, status, or merchant reference. Returns one provider page; continuation is unavailable because HitPay's cursor input has not been verified. |
| `HITPAY_LIST_LOCATIONS` | List Locations | List business locations, optionally filtering by name keywords or an exact location ID. Returns one page and a cursor for the next page. |
| `HITPAY_LIST_ORDERS` | List Orders | Search HitPay commerce orders by version, status, date, or keywords. Returns one provider page because continuation input is not verified. |
| `HITPAY_LIST_PAYMENT_REQUESTS` | List Payment Requests | Search hosted payment requests and inspect their current payment status. |
| `HITPAY_LIST_PRODUCT_CATEGORIES` | List Product Categories | Browse or search active and nested HitPay product categories. |
| `HITPAY_LIST_PRODUCTS` | List Products | Search the HitPay product catalog using product, inventory, location, and sales-channel filters. |
| `HITPAY_LIST_RECURRING_BILLINGS` | List Recurring Billings | Find recurring billing records by customer, reference, plan, or status. |
| `HITPAY_LIST_STAFF` | List Staff | Return staff members visible to the connected HitPay business account. |
| `HITPAY_LIST_SUBSCRIPTION_PLANS` | List Subscription Plans | List recurring-payment plans configured for the connected HitPay business. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK
```python
pip install composio_openai
```

```typescript
npm install @composio/openai
```

#### Path 1, Step 2: Initialize Composio and Create Tool Router Session

Import and initialize Composio client, then create a Tool Router session
```python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
```

```typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
```

#### Path 1, Step 3: Execute HitPay Tools via Tool Router with Your Agent

Get tools from Tool Router session and execute HitPay actions with your Agent
```python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'YOUR_SPECIFIC_PROMPT_HERE'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
```

```typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'YOUR_SPECIFIC_PROMPT_HERE'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK for Python or TypeScript
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
```

#### Path 2, Step 2: Initialize Client and Create Tool Router Session

Import and initialize the Composio client, then create a Tool Router session for HitPay
```python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
```

```typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
```

#### Path 2, Step 3: Connect to AI Agent

Use the MCP server with your AI agent (Anthropic Claude or Mastra)
```python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to HitPay tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('YOUR_SPECIFIC_PROMPT_HERE')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.mcp.url,
    headers: {
      'x-api-key': 'your-composio-api-key',
    },
  },
});

const tools = await client.tools();
const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{
    role: 'user',
    content: 'YOUR_SPECIFIC_PROMPT_HERE'
  }],
  maxSteps: 5,
});

console.log(`Agent: ${text}`);
```

## Why Use Composio?

### 1. AI Native HitPay Integration

- Supports both HitPay MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for reading, writing, and querying your HitPay data

### 2. Managed Auth

- Secure API key storage with easy rotation and revocation
- Central place to manage, scope, and revoke HitPay API keys
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access HitPay
- Scoped, least privilege access to HitPay resources
- Full audit trail of agent actions to support review and compliance

## Use HitPay with any AI Agent Framework

Choose a framework you want to connect HitPay with:

- [ChatGPT Work](https://composio.dev/toolkits/hitpay/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/hitpay/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/hitpay/framework/hermes-agent)

## Related Toolkits

- [Stripe](https://composio.dev/toolkits/stripe) - Stripe is a global online payments platform offering APIs for managing payments, customers, and subscriptions. Trusted by businesses for secure, efficient, and scalable payment processing worldwide.
- [44API](https://composio.dev/toolkits/44api) - 44API is an API service for validating VAT and tax identifiers and returning company details. Use it to verify business tax data and manage account IP whitelists quickly.
- [Addresszen](https://composio.dev/toolkits/addresszen) - Addresszen is a real-time address autocomplete and verification service. It helps capture accurate, deliverable addresses with instant suggestions and validation.
- [Airwallex](https://composio.dev/toolkits/airwallex) - Airwallex is a global financial platform providing business accounts, payments, payouts, FX, and cards. Built to simplify cross-border payments and streamline financial operations for businesses.
- [Aiwyn Tax MCP](https://composio.dev/toolkits/aiwyn_tax_mcp) - Aiwyn Tax MCP is a tax estimation service powered by Aiwyn's federal and state tax engine. It helps teams estimate tax outcomes without building tax calculation logic from scratch.
- [Alpaca](https://composio.dev/toolkits/alpaca) - Alpaca is a stock and crypto trading platform for commission-free trading, real-time market data, and algorithmic strategies. Use it to build brokerage apps, trading bots, and portfolio workflows with market connectivity.
- [Alpha vantage](https://composio.dev/toolkits/alpha_vantage) - Alpha Vantage is a financial data platform offering real-time and historical stock market APIs. Get instant, reliable access to equities, forex, and technical analysis data for smarter trading decisions.
- [Altoviz](https://composio.dev/toolkits/altoviz) - Altoviz is a cloud-based billing and invoicing platform for businesses. It streamlines online payments, expense tracking, and customizable invoice management.
- [Asin data api](https://composio.dev/toolkits/asin_data_api) - Asin data api gives you detailed, real-time product data from Amazon, including price, rank, and reviews. Perfect for e-commerce pros and data-driven marketers who need instant marketplace insights.
- [Baselinker](https://composio.dev/toolkits/baselinker) - BaseLinker is an all-in-one e-commerce management platform connecting stores, marketplaces, carriers, and more. It streamlines order processing, inventory control, and automates your sales operations.
- [Benzinga](https://composio.dev/toolkits/benzinga) - Benzinga provides real-time financial news and data APIs for market coverage. It helps you track breaking news and actionable market insights instantly.
- [Bestbuy](https://composio.dev/toolkits/bestbuy) - Best Buy is a leading retailer offering APIs for product, store, and recommendation data. Instantly access up-to-date retail insights for smarter shopping and decision-making.
- [Bigdata.com MCP](https://composio.dev/toolkits/bigdata_com_mcp) - Bigdata.com MCP provides grounded access to financial news, transcripts, filings, and entity intelligence. Ideal for building research workflows and generating timely market insights.
- [Billsby](https://composio.dev/toolkits/billsby) - Billsby is a subscription billing platform for managing customers, subscriptions, invoices, products, plans, usage counters, add-ons, and allowances. It helps SaaS and subscription teams automate billing operations without building complex billing logic from scratch.
- [Bluebarry](https://composio.dev/toolkits/bluebarry) - Bluebarry is a customer data and product-advice platform for shopper identities, profiles, and recommendations. It helps teams analyze customer context and synchronize shopper data for better commerce experiences.
- [Brex](https://composio.dev/toolkits/brex) - Brex provides corporate credit cards and spend management tailored for startups and tech businesses. It helps optimize company cash flow, streamline accounting, and accelerate business growth.
- [Btcpay server](https://composio.dev/toolkits/btcpay_server) - BTCPay Server is a free, open-source, self-hosted Bitcoin payment processor. It lets merchants accept Bitcoin payments directly, cutting out middlemen and boosting privacy.
- [Cashfree Payments MCP](https://composio.dev/toolkits/cashfree_payments_mcp) - Cashfree Payments MCP is a merchant payments platform that handles collection, payouts, subscriptions, settlements, refunds, and identity verification. Simplifies merchant money lifecycle management with unified, API-driven workflows.
- [Cdr platform](https://composio.dev/toolkits/cdr_platform) - Cdr platform is an API for purchasing carbon dioxide removal services. It enables businesses to offset emissions by accessing verified carbon removal projects.
- [Chaser](https://composio.dev/toolkits/chaser) - Chaser is accounts receivable automation software that sends invoice reminders and helps businesses get paid faster. It streamlines the collections process to save time and improve cash flow.

## Frequently Asked Questions

### Do I need my own developer credentials to use HitPay with Composio?

Yes, HitPay requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
