{
  "info": {
    "name": "Moonclerk — mcp.ai",
    "description": "REST API for the Moonclerk 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/moonclerk",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "moonclerk_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 customers (plans) from MoonClerk. Use when you need to retrieve customer data with optional filters. Use after authenticating API credentials.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"status\": \"\",\n  \"form_id\": 0,\n  \"checkout_to\": \"\",\n  \"checkout_from\": \"\",\n  \"next_payment_to\": \"\",\n  \"next_payment_from\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "moonclerk_list_discounts",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/discounts",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "discounts"
          ]
        },
        "description": "Tool to retrieve a list of all discounts applied to customers. Use after authenticating API credentials.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"status\": \"\",\n  \"form_id\": 0,\n  \"checkout_to\": \"\",\n  \"checkout_from\": \"\",\n  \"next_payment_to\": \"\",\n  \"next_payment_from\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "moonclerk_list_forms",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/forms",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "forms"
          ]
        },
        "description": "Tool to retrieve a list of all payment forms. Use after authenticating to inspect available payment forms.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"page\": 0,\n  \"per_page\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "moonclerk_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 payments. Use when you need to retrieve all payments or filter by form, customer, date range, or status after authenticating.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"status\": \"\",\n  \"date_to\": \"\",\n  \"form_id\": 0,\n  \"date_from\": \"\",\n  \"customer_id\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "moonclerk_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 subscriptions. Use when you need to retrieve all subscriptions after authenticating.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"status\": \"\",\n  \"form_id\": \"\",\n  \"next_payment_to\": \"\",\n  \"next_payment_from\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}