AI-Native Payment APIs— MCP, Agents, n8n & more

Talk to your
payment APIs

Build with AI-powered payment APIs. Use natural language, MCP Server, Agent Toolkit, or code — Pine Labs gives you every way to integrate.

500+
Developers
10M+
Transactions
99.99%
Uptime
<300ms
Avg Response
Pine AI Copilot
Connected
AI

Test Any API Right Here

Generate tokens, send requests, and see real responses from Pine Labs UAT — no signup required.

Open Playground

See AI Payments Live

Try the MCP Server demo or explore the Agent Toolkit code — real Pine Labs tools, real responses.

Explore all AI tools
MCP Server Demo— Talk to APIs with AI
Try a prompt
Tool: mcp_pinelabs_create_payment_link
Click a prompt above to see MCP in action
Agent Toolkit
StackTypeScriptNode.js 18+Zod-typed toolsOAuth2 auto-auth
$ npm install @plural_pinelabs/agent-toolkit @openai/agents
import { Agent, run } from "@openai/agents";
import {
  PinelabsAgentToolkit,
  pinelabsEnvironment,
} from "@plural_pinelabs/agent-toolkit/openai";

const pinelabs = new PinelabsAgentToolkit(
  pinelabsEnvironment.UAT,                // or pinelabsEnvironment.PRODUCTION
  process.env.PINE_CLIENT_ID!,
  process.env.PINE_CLIENT_SECRET!,
);

const agent = new Agent({
  name: "Payment Agent",
  instructions: "You are a helpful payment assistant.",
  model: "gpt-4o",
  tools: pinelabs.getAgentTools(),
});

const result = await run(
  agent,
  "Create an order for Rs. 500 for customer john@example.com",
);
console.log(result.finalOutput);

Tools & Resources

Leverage our tools to build, test, and deploy your payment solutions smoothly.

API Reference

API Reference Guide

Pine Labs APIs are organized around REST and all our responses are returned in JSON.

Know More
Error Codes

Error Codes

Learn more about common error codes and how to resolve them.

Know More
Multi-Language SDKs

Multi-Language SDKs

Node.js, Python, Java, PHP, Ruby, Go, C# — all supported.

Know More
Webhooks

Webhooks

With Pine Labs webhooks configure and receive notifications when a specific event occurs.

Know More

How a Payment Works

Click each step to see the API call, data flow, and response.

Step 1: Generate Token

Authenticate with Pine Labs using client credentials to get a Bearer token.

POST /api/auth/v1/token
Request / Details
{
  "client_id": "your_client_id",
  "client_secret": "your_client_secret",
  "grant_type": "client_credentials"
}
Response / Result
→ access_token: "eyJhbGciOiJSUz..."
→ token_type: "Bearer"
→ expires_in: 3600

Ready to get started?

Create your Pine Labs account, get your API keys, and start accepting payments in minutes.

New chat
Responses are generated using AI and may contain mistakes.
Hi! I'm Pine, your AI developer assistant. Ask me anything about Pine Labs APIs, integrations, or troubleshooting.

Tip: you can create a new chat with + E