{
  "info": {
    "name": "Payhip — mcp.ai",
    "description": "REST API for the Payhip 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/payhip",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "payhip_create_coupon",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/coupon",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "coupon"
          ]
        },
        "description": "Tool to create a coupon for discounts in Payhip. Use when you need to create a new coupon code with either percentage or fixed amount discounts. Coupons can apply to single products, all products, or ",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"code\": \"\",\n  \"notes\": \"\",\n  \"amount_off\": 0,\n  \"coupon_type\": \"\",\n  \"percent_off\": 0,\n  \"product_key\": \"\",\n  \"usage_limit\": 0,\n  \"collection_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhip_delete_coupon",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/coupon",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "coupon"
          ]
        },
        "description": "Tool to delete a coupon by ID. Use when you need to remove a coupon from the Payhip account. Only available in v1 API.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhip_get_coupon",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/coupon",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "coupon"
          ]
        },
        "description": "Tool to retrieve a coupon with the given ID. Use when you need to fetch details about a specific coupon from Payhip.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhip_update_coupon",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/coupon",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "coupon"
          ]
        },
        "description": "Tool to edit an existing coupon in Payhip. Use when you need to modify coupon details like code, percentage, expiry, or usage limit. Only available in v1 API.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"code\": \"\",\n  \"limit\": \"\",\n  \"expiry\": \"\",\n  \"percentage\": \"\",\n  \"product_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhip_verify_coupon",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/verify/coupon",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "verify",
            "coupon"
          ]
        },
        "description": "Tool to verify a Payhip coupon code. Use when you need to check if a coupon code is valid and retrieve its details. Only available in v1 API.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"code\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhip_webhook_event_paid",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhook/event/paid",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhook",
            "event",
            "paid"
          ]
        },
        "description": "Tool to process Payhip's paid webhook event. Use when handling a purchase completion webhook from Payhip.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"date\": 0,\n  \"type\": \"\",\n  \"email\": \"\",\n  \"items\": \"\",\n  \"price\": 0,\n  \"is_gift\": false,\n  \"currency\": \"\",\n  \"signature\": \"\",\n  \"ip_address\": \"\",\n  \"payhip_fee\": 0,\n  \"stripe_fee\": 0,\n  \"vat_applied\": false,\n  \"payment_type\": \"\",\n  \"unconsented_from_emails\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhip_webhook_event_refunded",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhook/event/refunded",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhook",
            "event",
            "refunded"
          ]
        },
        "description": "Tool to process Payhip's refunded webhook event. Use when handling a payment refund event from Payhip.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"email\": \"\",\n  \"items\": \"\",\n  \"price\": 0,\n  \"is_gift\": false,\n  \"currency\": \"\",\n  \"signature\": \"\",\n  \"ip_address\": \"\",\n  \"payhip_fee\": 0,\n  \"stripe_fee\": 0,\n  \"vat_applied\": false,\n  \"date_created\": 0,\n  \"payment_type\": \"\",\n  \"date_refunded\": 0,\n  \"amount_refunded\": 0,\n  \"unconsented_from_emails\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhip_webhook_event_subscription_created",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhook/event/subscription/created",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhook",
            "event",
            "subscription",
            "created"
          ]
        },
        "description": "Tool to process Payhip's subscription.created webhook event. Use when handling a subscription start event from Payhip.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"type\": \"\",\n  \"status\": \"\",\n  \"plan_name\": \"\",\n  \"signature\": \"\",\n  \"customer_id\": \"\",\n  \"gdpr_consent\": \"\",\n  \"product_link\": \"\",\n  \"product_name\": \"\",\n  \"customer_email\": \"\",\n  \"subscription_id\": \"\",\n  \"customer_last_name\": \"\",\n  \"customer_first_name\": \"\",\n  \"date_subscription_started\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "payhip_webhook_event_subscription_deleted",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhook/event/subscription/deleted",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhook",
            "event",
            "subscription",
            "deleted"
          ]
        },
        "description": "Tool to process Payhip's 'subscription.deleted' webhook event. Use when handling a subscription cancellation event from Payhip.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"type\": \"\",\n  \"status\": \"\",\n  \"plan_name\": \"\",\n  \"signature\": \"\",\n  \"customer_id\": \"\",\n  \"gdpr_consent\": \"\",\n  \"product_link\": \"\",\n  \"product_name\": \"\",\n  \"customer_email\": \"\",\n  \"subscription_id\": \"\",\n  \"customer_last_name\": \"\",\n  \"customer_first_name\": \"\",\n  \"date_subscription_deleted\": 0,\n  \"date_subscription_started\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}