docs
Get startedTroubleshootingPaymentsWebhooksAgent paymentsSwop MCPOviIdentity (swop.id)SwivyRPC (preview)API reference
Tool reference

Products & checkout

Create and manage products, take checkout on your own site, webhooks and embed origins.

13 tools. Generated from the Swop MCP server’s own tools/list (server version 0.2.2), so names, inputs and limits match what your client sees.

swop_create_product

Create a product · Sign-in: commerce.write · /mcp and /mcp/commerce

Start selling something in one call: creates a product that people can buy on the linked account's Swop SmartSite and AI agents can buy in USDC over x402, with no store setup, payment processor, or verification needed. To change an existing product use swop_update_product instead. name, description and image are all REQUIRED by the backend. Confirm name and price with the user before creating. Then call swop_feature_product to show it on the SmartSite and swop_get_product_link to share it.

InputTypeRequiredDescription
namestringYesProduct name (min length 1; max length 120)
descriptionstringYesProduct description (required) (min length 1; max length 2000)
priceUsdnumberYesPrice in USD (settles in USDC) (> 0)
imagestringYesPrimary product image URL (required) (format uri)
extraImagesarray of stringNoAdditional image URLs, shown after the primary one (max items 9)
productType"physical" | "digital" | "in_person_checkout"Nophysical (ships), digital (default), or in_person_checkout
nftType"phygital" | "menu" | "collectible" | "subscription" | "membership" | "coupon"NoFine-grained type; overrides productType. phygital/menu are physical, the rest digital
mintLimitintegerNoInventory available, default 1 (> 0)
keywordsarray of stringNoSearch keywords (max items 20)
variantsarray of object (name, options)NoBuyer-selectable options. Replaces the existing set when given.
requiresShippingbooleanNoPhysical goods: collect a shipping address
shippingCostnumberNoFlat shipping cost in USD (min 0)
digitalDeliveryNotestringNoDigital goods: what the buyer receives after purchase (max length 500)
royaltyPercentagenumberNoResale royalty percent (min 0; max 100)
royaltyRecipientstringNoWallet receiving royalties

swop_update_product

Update or unlist a product · Sign-in: commerce.write · /mcp and /mcp/commerce · Changes or moves things

Edit one of the linked account's products, or unlist it. Pass its productId (from swop_list_my_products) plus ONLY the fields to change — anything omitted keeps its current value. To unlist it, set status to 'archived'. Confirm price and name changes with the user first.

InputTypeRequiredDescription
productIdstringYesThe product id from swop_list_my_products
namestringNoNew product name (max length 120)
descriptionstringNoNew description (max length 2000)
priceUsdnumberNoNew price in USD (settles in USDC) (> 0)
imagestringNoNew primary image URL (format uri)
extraImagesarray of stringNoReplaces the additional images. Requires image, since the full list is rewritten (max items 9)
mintLimitintegerNoNew inventory available (> 0)
keywordsarray of stringNoReplaces the keywords (max items 20)
variantsarray of object (name, options)NoBuyer-selectable options. Replaces the existing set when given.
requiresShippingbooleanNoCollect a shipping address
shippingCostnumberNoFlat shipping cost in USD (min 0)
digitalDeliveryNotestringNoWhat a buyer receives (max length 500)
royaltyPercentagenumberNoResale royalty percent (min 0; max 100)
royaltyRecipientstringNoWallet receiving royalties
status"active" | "archived"NoSet 'archived' to unlist

swop_list_my_products

List my products · Sign-in: commerce.write · /mcp and /mcp/commerce · Read-only

List the linked account's OWN products (each with its id, name, price, inventory, and status); to browse another seller's products use swop_get_store. Use the id with swop_update_product (to edit or unlist) or swop_feature_product (to show it on the SmartSite).

No inputs.

swop_feature_product

Feature a product on my SmartSite · Sign-in: commerce.write · /mcp and /mcp/commerce

Show an existing product on the linked account's SmartSite as a tile visitors can buy from. Pass the templateId returned by swop_create_product (or the id from swop_list_my_products). Each call ADDS a new tile and never replaces existing ones, so check swop_get_my_smartsite first to avoid duplicates; remove a tile with swop_remove_link. The product must belong to the linked account.

InputTypeRequiredDescription
templateIdstringYesThe product/template id from swop_create_product
carouselTitlestringNoOptional heading for the product section (max length 80)
smartsiteIdstringNoSpecific SmartSite id (default: primary)

swop_create_checkout

Create a checkout for a cart · Sign-in: commerce.write · /mcp and /mcp/commerce

Take payment on the seller's own website: creates a checkout for a cart of the linked account's OWN products, so a buyer pays there instead of being sent to Swop. For a single shareable link use swop_get_product_link instead. Prices come from the seller's catalogue and must NOT be sent — a price in the request is rejected. Shipping is charged automatically for physical products, and for those the buyer's name, email and delivery address are REQUIRED (the call is refused otherwise, naming what is missing). Rails: USDC on Solana always; set offerCard when the seller is card-enabled and every item is a physical good — then the response has cardOffered: true and paymentRequest is null until the buyer picks a rail on the seller's page via the public URLs POST /api/v5/checkout-intents/{intentId}/card-payment-intents (Stripe client secret for a Payment Element) or POST .../select-crypto (publishes the Solana Pay request). Otherwise paymentRequest is returned at once (a solana: URL the buyer's wallet opens, also fine as a QR code). Settlement is automatic once the payment lands — nothing to confirm; poll swop_get_checkout for status. Show the buyer the products, quantities and total before creating.

InputTypeRequiredDescription
itemsarray of object (productId, quantity, selectedOptions)YesThe cart. Ids only — prices come from the catalogue (min items 1; max items 50)
buyerNamestringNoBuyer's name (required for physical items) (max length 120)
buyerEmailstringNoBuyer's email, for the receipt (required for physical items) (format email)
buyerPhonestringNoBuyer's phone, for the courier (max length 60)
shippingAddressobject (line1, line2, city, state, postalCode, country)NoDelivery address. Required when any item is a physical product
offerCardbooleanNoOffer card as well as USDC. Only takes effect when the seller is card-enabled and every item is physical; otherwise the checkout is USDC-only
descriptionstringNoWhat this checkout is for (max length 200)

swop_get_checkout

Check a checkout · Sign-in: commerce.write · /mcp and /mcp/commerce · Read-only

Read back a checkout created with swop_create_checkout: its status (active, pending_payment, paid, settled, expired, cancelled), the payment request if one is published, and the line items. Poll this after the buyer has been shown the payment to learn when it lands — paid means the buyer's money arrived; settled means the seller has been paid out. Only the linked account's own checkouts are visible.

InputTypeRequiredDescription
intentIdstringYesThe intentId returned by swop_create_checkout (pattern ^co_[A-Za-z0-9_-]\{4,40\}$)

swop_list_webhooks

List my webhooks · Sign-in: commerce.write · /mcp and /mcp/commerce · Read-only

Show the webhook endpoints Swop notifies when the linked account gets paid, and the events available. Two events: checkout.paid (the buyer's money arrived and an order exists) and payout.released (Swop released the seller's money — for a card sale that can be days later). Use before adding or removing one.

No inputs.

swop_register_webhook

Add a webhook · Sign-in: commerce.write · /mcp and /mcp/commerce

Get notified the moment the user gets paid. Register an https URL that Swop will POST a signed JSON event to when the linked account gets paid (checkout.paid) and paid out (payout.released). Returns a signing secret ONCE — tell the user to store it now; it cannot be retrieved again. Deliveries carry a Swop-Signature header: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with the secret>; failed deliveries retry for about 15 hours. Confirm the exact URL with the user first.

InputTypeRequiredDescription
urlstringYeshttps URL to POST events to (http allowed for localhost only) (max length 2000; format uri)
eventsarray of "checkout.paid" | "payout.released"NoWhich events to send. Default: both (min items 1)
labelstringNoA name for this endpoint (max length 80)

swop_test_webhook

Send a test event to a webhook · Sign-in: commerce.write · /mcp and /mcp/commerce

POST a signed 'ping' event to one of the linked account's webhooks right now and report the HTTP status the endpoint returned. Use to confirm an integration before relying on it.

InputTypeRequiredDescription
idstringYesWebhook id from swop_list_webhooks

swop_remove_webhook

Remove a webhook · Sign-in: commerce.write · /mcp and /mcp/commerce · Changes or moves things

Stop sending events to one of the linked account's webhook URLs. Pending deliveries to it are dropped. Confirm with the user first.

InputTypeRequiredDescription
idstringYesWebhook id from swop_list_webhooks

swop_list_embed_origins

List sites allowed to frame my checkout · Sign-in: commerce.write · /mcp and /mcp/commerce · Read-only

Show which websites may currently display the linked account's Swop checkout in a frame. Use before adding or removing one so the user can see what is already allowed.

No inputs.

swop_register_embed_origin

Allow a site to frame my checkout · Sign-in: commerce.write · /mcp and /mcp/commerce

Allow ONE website to display the linked account's Swop checkout inside a frame. This is a security setting: only registered origins can ever frame the checkout, so a leaked API key still cannot put it on someone else's site. Give a bare origin — scheme and host only, https (http allowed for localhost), no wildcards, no path. Confirm the exact origin with the user first.

InputTypeRequiredDescription
originstringYesBare origin, e.g. https://acme.com (min length 1)
labelstringNoA note to recognise it later (max length 80)

swop_remove_embed_origin

Stop a site framing my checkout · Sign-in: commerce.write · /mcp and /mcp/commerce · Changes or moves things

Remove a website from the list allowed to frame the linked account's checkout. Takes an id from swop_list_embed_origins. Afterwards that site can no longer display the checkout.

InputTypeRequiredDescription
idstringYesOrigin id from swop_list_embed_origins (min length 1)

On this page