Fewsats MCP Server

Official

pay_offer

Process payments for offers by validating and completing transactions using the provided payment context token and request URL. Returns payment status, and notifies users if manual approval is required.

Instructions

Pays an offer_id from the l402_offers.

The l402_offer parameter must be a dict with this structure: { 'offers': [ { 'offer_id': 'test_offer_2', # String identifier for the offer 'amount': 1, # Numeric cost value 'currency': 'usd', # Currency code 'description': 'Test offer', # Text description 'title': 'Test Package' # Title of the package } ], 'payment_context_token': '60a8e027-8b8b-4ccf-b2b9-380ed0930283', # Payment context token 'payment_request_url': 'https://api.fewsats.com/v0/l402/payment-request', # Payment URL 'version': '0.2.2' # API version } Returns payment status response. If payment status is `needs_review` inform the user he will have to approve it at app.fewsats.com

Input Schema

NameRequiredDescriptionDefault
l402_offerYes
offer_idYes

Input Schema (JSON Schema)

{ "properties": { "l402_offer": { "title": "L402 Offer", "type": "object" }, "offer_id": { "title": "Offer Id", "type": "string" } }, "required": [ "offer_id", "l402_offer" ], "title": "pay_offerArguments", "type": "object" }

You must be authenticated.

Other Tools from Fewsats MCP Server

Related Tools

ID: kq6rxsdgs2