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
Generated Code
const order = await pinelabs.orders.create({
amount: 50000,
currency: "INR",
customer: { email: "dev@example.com" }
});200 OK142ms
{
"order_id": "ord_pL9x4kM2n",
"status": "CREATED",
"amount": 50000,
"redirect_url": "https://checkout.pinelabs.com/..."
}Zero Config
AI writes your integration
Start Building
Every Way to Integrate
Code it, talk to it, automate it, or let AI write it for you.
Test Any API Right Here
Generate tokens, send requests, and see real responses from Pine Labs UAT — no signup required.
Open PlaygroundSee AI Payments Live
Try the MCP Server demo or explore the Agent Toolkit code — real Pine Labs tools, real responses.
Explore all AI toolsMCP Server Demo— Talk to APIs with AI
Try a prompt
Tool:
mcp_pinelabs_create_payment_linkClick 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/agentsimport { 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.
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/tokenRequest / 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.




