# Payhip — MCP server on mcp.ai > Connect your Payhip account and use 9 tools for ecommerce straight from your AI agent. Connect with your own API key. Payhip is an e-commerce platform that enables individuals and businesses to sell digital products, memberships, and physical goods directly to their audience. By: mcp.ai · official Page: https://mcp.ai/payhip ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_payhip?ms=1787293560000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/payhip/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/payhip/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/payhip/skill.md Postman collection (v2.1): https://mcp.ai/payhip/postman.json ## Tools - payhip_create_coupon(code: string, notes?: string, amount_off?: integer, coupon_type: string, percent_off?: number, product_key?: string, usage_limit?: integer, collection_id?: string) — 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 - payhip_delete_coupon(id: string) — Tool to delete a coupon by ID. Use when you need to remove a coupon from the Payhip account. Only available in v1 API. - payhip_get_coupon(id: integer) — Tool to retrieve a coupon with the given ID. Use when you need to fetch details about a specific coupon from Payhip. - payhip_update_coupon(id: string, code?: string, limit?: string, expiry?: string, percentage?: string, product_id?: string) — 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. - payhip_verify_coupon(code: string) — 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. - payhip_webhook_event_paid(id: string, date: integer, type: string, email: string, items: object[], price: integer, is_gift: boolean, currency: string, signature: string, ip_address: string, payhip_fee: integer, stripe_fee: integer, vat_applied: boolean, payment_type: string, unconsented_from_emails: boolean) — Tool to process Payhip's paid webhook event. Use when handling a purchase completion webhook from Payhip. - payhip_webhook_event_refunded(id: string, type: string, email: string, items: object[], price: integer, is_gift: boolean, currency: string, signature: string, ip_address: string, payhip_fee: integer, stripe_fee: integer, vat_applied: boolean, date_created: integer, payment_type: string, date_refunded: integer, amount_refunded: integer, unconsented_from_emails: boolean) — Tool to process Payhip's refunded webhook event. Use when handling a payment refund event from Payhip. - payhip_webhook_event_subscription_created(type: string, status: string, plan_name: string, signature: string, customer_id: string, gdpr_consent: string, product_link: string, product_name: string, customer_email: string, subscription_id: string, customer_last_name: string, customer_first_name: string, date_subscription_started: integer) — Tool to process Payhip's subscription.created webhook event. Use when handling a subscription start event from Payhip. - payhip_webhook_event_subscription_deleted(type: string, status: string, plan_name: string, signature: string, customer_id: string, gdpr_consent: string, product_link: string, product_name: string, customer_email: string, subscription_id: string, customer_last_name: string, customer_first_name: string, date_subscription_deleted: integer, date_subscription_started: integer) — Tool to process Payhip's 'subscription.deleted' webhook event. Use when handling a subscription cancellation event from Payhip. ## Example prompts - "What can I do in Payhip?" - "Show me a summary of my Payhip account" ## Links Docs: https://mcp.ai/docs/mcps/payhip Website: https://mcp.ai/mcps/payhip