PineLabs Plural PG — Payment Gateway MCP Server
Create payment orders, checkout, subscriptions & UPI via PineLabs Plural PG gateway
Versions
0.1.2latestTools 57
create_payment_link Create a Pine Labs payment link. Args: amount_value: Amount in paisa (e.g., 50000 = Rs.500). currency: Three-letter ISO currency code (default: INR). customer_email: Customer email address. customer_first_name: Customer first name. customer_last_name: Customer last name. customer_mobile: Customer mobile number (10-20 digits). customer_country_code: Country code (e.g., +91). customer_id: Customer ID in Pine Labs database. description: Payment description. expire_by: Expiry in ISO 8601. Max 180 days. allowed_payment_methods: CARD, UPI, POINTS, etc. merchant_payment_link_reference: Unique ref (1-50 chars). billing_address1..billing_full_name: Billing address. shipping_address1..shipping_full_name: Shipping address. merchant_metadata: Custom key-value metadata. product_code: Product identifier. product_amount: Product amount in paisa. cart_coupon_discount_amount: Coupon discount in paisa.
get_payment_link_by_id Get a Pine Labs payment link by its ID.
get_payment_link_by_merchant_reference Get a payment link by merchant reference.
cancel_payment_link Cancel a Pine Labs payment link.
resend_payment_link_notification Resend payment link notification to the customer.
create_card_payment Create a card payment for an existing Pine Labs order. Args: order_id: Pine Labs order ID (e.g., v1-4405071524-aa-qlAtAf). card_name: Cardholder name as printed on the card. amount_value: Amount in paisa (e.g., 1100 = Rs.11). card_number: Full card number (13-19 digits) - direct. card_cvv: Card CVV (3-4 digits) - direct. card_expiry_month: Card expiry month (MM) - direct. card_expiry_year: Card expiry year (YYYY) - direct. save_card: Whether to save card for future transactions. use_token: Set True for tokenized card payments. token_last4_digit: Last 4 digits of tokenized card. token_expiry_month: Token expiry month (MM). token_expiry_year: Token expiry year (YYYY). token_value: Token value. token_cryptogram: Token cryptogram. token_txn_type: ALT_TOKEN, NETWORK_TOKEN, or ISSUER_TOKEN. token_cvv: CVV for ALT_TOKEN transactions. merchant_payment_reference: Your unique payment ref (max 50 chars). Auto-generated if omitted. currency: Three-letter ISO currency code (default INR). idempotency_key: Optional idempotency key.
create_upi_intent_payment_with_qr Create an order and generate a UPI intent QR payment.
detect_stack Detect project technology stack from files and deps. Args: files: List of file paths in the project. package_json: Parsed package.json contents (Node.js). requirements_txt: Raw requirements.txt contents (Python). go_mod: Raw go.mod contents (Go). pubspec_yaml: Raw pubspec.yaml contents (Flutter/Dart). Returns: JSON with language, framework, frontend, packageManager, isFullStack, confidence, and notes.
integrate_pinelabs_checkout Generate Pine Labs checkout integration code. Args: language: Programming language (javascript, typescript, python, go, java, php, ruby, rust, csharp, dart). backend_framework: Backend framework (express, nextjs, django, flask, fastapi, gin). frontend_framework: Frontend framework (vanilla, react). Defaults to vanilla. Returns: JSON with summary, files, dependencies, envVars, testInstructions, and aiInstructions.
get_card_details Get card details (network, issuer, type) for a card number. Args: card_number: Full card number (13-19 digits).
get_merchant_success_rate Fetch merchant transaction success rate.
create_plan get_plans get_plan_by_id get_plan_by_merchant_reference update_plan delete_plan create_subscription get_subscriptions get_subscription_by_id get_subscription_by_merchant_reference pause_subscription resume_subscription cancel_subscription update_subscription create_presentation get_presentation delete_presentation get_presentations_by_subscription_id get_presentation_by_merchant_reference send_subscription_notification create_debit create_merchant_retry cancel_order Cancel a pre-authorized order by order ID.
get_order_by_order_id Get order details by order ID from Pine Labs.
get_order_by_merchant_order_reference Get order details by merchant order reference.
get_all_settlements Fetch all settlements within a date range. Args: start_date: Start date in ISO 8601 format (e.g. 2024-10-01T00:00:00). end_date: End date in ISO 8601 format (e.g. 2024-10-09T23:59:59). page: Page number to retrieve (e.g. "1"). per_page: Records per page, max 10 (e.g. "10").
capture_order Capture a pre-authorized order. Args: order_id: Unique identifier of the order (e.g. v1-5757575757-aa-hU1rUd). merchant_capture_reference: Unique capture reference (1-50 chars, alphanumeric/hyphens/underscores). capture_amount_value: Amount to capture in paisa (e.g., 50000 = Rs.500). Required for partial capture. If omitted, full amount is captured. capture_amount_currency: Currency code (default INR). idempotency_key: Optional idempotency key.
fetch_order_payments Fetch all payments for a specific order by order ID.
create_refund Create a refund against a Pine Labs order. Args: order_id: Unique identifier of the order in the Pine Labs database. Example: v1-5757575757-aa-hU1rUd amount_value: Refund amount in paisa (e.g., 50000 = Rs.500). Min: 100, Max: 100000000. merchant_order_reference: Unique identifier for this refund (1-50 chars). currency: Three-letter ISO currency code (default: INR). merchant_metadata: Key-value pairs for additional info. products: Product details for multi-cart partial refunds. Each item: {"product_code": "...", "product_imei": "...", "product_amount_value": 10000, "product_amount_currency": "INR"}. split_type: Type of split for split settlement refunds. Example: "AMOUNT". split_details: Split settlement details array. Each item: {"parent_order_split_settlement_id": "...", "split_merchant_id": "...", "merchant_settlement_reference": "...", "amount_value": 20000, "amount_currency": "INR", "status": "DO_NOT_RECOVER"}. idempotency_key: Optional idempotency key.
generate_otp Generate OTP for card payment verification. Args: payment_id: Payment ID from Pine Labs.
submit_otp Submit OTP for card payment verification. Args: payment_id: Payment ID from Pine Labs. otp: OTP received on registered mobile (4-8 digits).
resend_otp Resend OTP for card payment verification. Args: payment_id: Payment ID from Pine Labs.
create_payout Create a new bank payout. Args: client_reference_id: Unique reference (1-40 chars, no spaces). payee_name: Payee name (1-40 chars, letters and spaces). amount_value: Amount in smallest currency unit (e.g. paisa). mode: Transfer mode - UPI, IMPS, NEFT, or RTGS. remarks: Transfer remarks (1-50 chars, alphanumeric/dash/space). currency: Three-letter ISO currency code (default INR). email: Payee email address. phone: Payee phone number (10 digits). account_number: Payee bank account number (9-18 digits). Required for IMPS, NEFT, RTGS modes. branch_code: IFSC code (max 11 chars, alphanumeric). Required for IMPS, NEFT, RTGS modes. idempotency_key: Optional idempotency key.
get_payout_payments List and filter payouts. Args: payment_reference_id: Filter by payment reference ID. client_reference_id: Filter by client reference ID. request_reference_id: Filter by request reference ID. bank_transaction_reference_id: Filter by bank txn ref. mode: Filter by mode (UPI, IMPS, NEFT, RTGS). date_from: Start date in ISO 8601 format. date_to: End date in ISO 8601 format. status: Filter by status (SCHEDULED, PENDING, PROCESSING, PROCESSED, SUCCESS, FAILED). page: Page number (starts at 1). count: Records per page (1-20).
get_payout_balance Get the payout funding account balance.
update_payout Update the scheduled date of a payout. Args: payment_reference_id: Payout reference ID (max 50 chars). schedule_at: New schedule date in ISO 8601 UTC format (e.g., 2025-04-21T10:00:00Z). idempotency_key: Optional idempotency key.
cancel_payout Cancel a scheduled payout. Args: payment_reference_id: Payout reference ID (max 50 chars).
get_settlement_by_utr Fetch settlement details by UTR number. Args: utr: Unique Transaction Reference number. Example: "410092786849". page: Page number to retrieve (e.g. "1"). per_page: Records per page, max 10 (e.g. "10").
get_payment_link_details Fetch payment link details within a date range.
get_order_details Fetch order details within a date range.
get_refund_order_details Fetch refund order details within a date range.
search_transaction Search for a transaction by transaction ID.
get_payout_details Fetch payout details within a date range. Args: merchant_id: Merchant identifier for the request. start_date: Start date in ISO 8601 format (e.g., 2024-10-01T00:00:00). Max range 60 days. end_date: End date in ISO 8601 format (e.g., 2024-10-09T23:59:59). page: Page number to retrieve. per_page: Number of records per page.
create_order Create a Pine Labs checkout order (generate checkout link).
get_api_documentation Fetch structured docs for the given Pine Labs API.
list_pinelabs_apis List available Pine Labs APIs.
Permissions 3
network medium filesystem low env_vars low