{
  "info": {
    "name": "Payhere — mcp.ai",
    "description": "REST API for the Payhere MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/payhere",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "payhere_create_hook",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/hook",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "hook"
          ]
        },
        "description": "Tool to subscribe to a REST hook for receiving webhook events. Use when you need to register a webhook endpoint to receive real-time notifications for payment_received, subscription_cancelled, or subs",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"post_url\": \"\",\n  \"resource\": \"\",\n  \"integration\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_create_plan",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/plan",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "plan"
          ]
        },
        "description": "Tool to create a new payment plan in PayHere. Use when you need to set up either a recurring subscription or one-off payment plan for accepting payments.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"price\": 0,\n  \"hidden\": false,\n  \"currency\": \"\",\n  \"show_qty\": false,\n  \"setup_fee\": 0,\n  \"billing_day\": 0,\n  \"description\": \"\",\n  \"success_url\": \"\",\n  \"webhook_url\": \"\",\n  \"cancel_after\": 0,\n  \"payment_type\": \"\",\n  \"receipt_text\": \"\",\n  \"pay_button_text\": \"\",\n  \"billing_interval\": \"\",\n  \"min_billing_cycles\": 0,\n  \"user_selects_amount\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_delete_hook",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/hook",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "hook"
          ]
        },
        "description": "Tool to remove a REST hook listener subscription. Use when you need to stop receiving webhook events for a specific hook.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_get_current_company",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/current/company",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "current",
            "company"
          ]
        },
        "description": "Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associate",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_get_current_company_stats",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/current/company/stats",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "current",
            "company",
            "stats"
          ]
        },
        "description": "Tool to fetch payment statistics for the last 30 days with comparison data from the preceding 30-day period (30-60 days ago). Use when you need to analyze recent payment trends, subscriber growth, or ",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_get_user",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/user",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "user"
          ]
        },
        "description": "Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_list_customers",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/customers",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "customers"
          ]
        },
        "description": "Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagi",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"page\": 0,\n  \"per_page\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_list_hooks",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/hooks",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "hooks"
          ]
        },
        "description": "Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_list_payments",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/payments",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "payments"
          ]
        },
        "description": "Tool to list all payments ordered chronologically, most recent first. Use when you need to retrieve payment history or check payment statuses. Supports pagination with page and per_page parameters.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"page\": 0,\n  \"per_page\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_list_plans",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/plans",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "plans"
          ]
        },
        "description": "Tool to list all plans in your PayHere account. Use when you need to retrieve and paginate through available plans.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"page\": 0,\n  \"per_page\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_list_subscriptions",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/subscriptions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "subscriptions"
          ]
        },
        "description": "Tool to list all subscriptions ordered chronologically by most recent payment first. Use when you need to retrieve subscription data with customer and plan details.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"page\": 0,\n  \"per_page\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_update_current_company",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/current/company",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "current",
            "company"
          ]
        },
        "description": "Tool to update the company information for the currently authenticated user. Use when modifying company details such as name, legal name, address, logo, support email, website, or branding preferences",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"logo\": {},\n  \"name\": \"\",\n  \"address\": \"\",\n  \"website\": \"\",\n  \"legal_name\": \"\",\n  \"button_text\": \"\",\n  \"button_color\": \"\",\n  \"support_email\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhere_update_plan",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/plan",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "plan"
          ]
        },
        "description": "Tool to update an existing plan's configuration and settings. Use when you need to modify plan properties like name, description, pricing, or other settings for both one-off and subscription plans.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"price\": 0,\n  \"hidden\": false,\n  \"currency\": \"\",\n  \"show_qty\": false,\n  \"setup_fee\": 0,\n  \"billing_day\": 0,\n  \"description\": \"\",\n  \"success_url\": \"\",\n  \"webhook_url\": \"\",\n  \"cancel_after\": 0,\n  \"receipt_text\": \"\",\n  \"pay_button_text\": \"\",\n  \"min_billing_cycles\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}