/swiggy:swiggy-payfrom swiggy
Complete an in-flight Swiggy UPI payment with swiggy-cli — share the pay link, poll payment status on Swiggy's cadence, confirm the order, handle failure/refund/timeout. Use after a checkout, table booking or ticket booking returned PENDING_PAYMENT, or when the user asks "did my payment go through".
Ships in swiggy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A UPI order is created in PENDING_PAYMENT and becomes PLACED only after payment succeeds and confirm_order runs. The CLI does the whole loop for you; your job is to hand the user the link and report the terminal state truthfully.
swiggy <server> payment-status --paas-id <paasId> --order-id <orderId> --wait --json --no-interactive
# Food additionally REQUIRES the echo values from the place-order response:
swiggy food payment-status --paas-id <paasId> --order-id <orderId> --address-id <addressId> --lat <lat> --lng <lng> --wait --json --no-interactive
meta.payment.next on the pending checkout response is this exact command — copy it. Without addressId/lat/lng, Swiggy cannot reconcile a Food order and it stays pending forever.
--wait polls check_payment_status every pollingIntervalInMs (a ~19 s server long-poll) up to maxTimeToPollForInMs, then calls confirm_order once on success (or once at the cap). It blocks; that is intended. Never poll faster than the server's interval by hand — it stresses Swiggy's payment cache and buys nothing.
Give the user meta.payment.bridgeUrl from the checkout response: "Pay here — scan on desktop, tap on mobile: ". That link renders a QR plus an "open in UPI app" button, so you never need the device type or a UPI ID.
| exit | meta.payment.outcome | tell the user |
|---|---|---|
| 0 | confirmed | order placed; quote meta.message; hand off to swiggy-track |
| 10 | failed | payment failed, nothing charged; offer to retry: swiggy <server> payment-options then checkout again (fresh transaction, same cart) |
| 10 | cancelled | order cancelled; any debit is refunded automatically; do not retry on your own |
| 10 | cart_changed | price/stock changed so the order was NOT placed; re-read the cart with the user, then place again |
| 10 | refund_initiated | money was debited and a refund is already underway; stop |
| 10 | timeout | still pending at the cap; confirm_order was called once; a late success reconciles on Swiggy's side — check swiggy <server> orders --active before doing anything else |
swiggy <server> payment-status --paas-id <paasId> --json returns data.status, data.terminal, data.confirmed. Use it once when the user asks "did it go through?", not in a loop.
Only if --wait reported success but data.confirmed is false and no confirm ran:
swiggy food confirm-order --order-id <o> --address-id <a> --lat <lat> --lng <lng> --json --no-interactive
swiggy instamart confirm-order --order-id <o> --paas-id <p> --json --no-interactive
swiggy dineout confirm-order --order-id <o> --paas-id <p> --json --no-interactive
swiggy scenes confirm-order --order-id <o> --paas-id <p> --json --no-interactive
Food confirms by address + coordinates and never takes paasId; Instamart, Dineout and Scenes confirm by paasId. confirm_order is idempotent and never places an unpaid order, so a duplicate call is harmless; confirming after a terminal failure is pointless — skip it.
Swiggy Money is available on Food and Instamart (not Dineout, not Scenes). It appears in payment-options as data.swiggyMoney with available: true and the method id SwiggyPay. If listed and the user chose it, --pay swiggypay on checkout debits the balance during order placement: there is no pay link, no payment-status --wait and no confirm step, so this skill does not apply. If it is not listed for this cart, do not pass it. Listed does not mean the balance is enough; on a failure, relay error.message and ask the user to check their balance and recent orders in the Swiggy app before trying again.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub hktitan/swiggy-cli --plugin swiggy16 skills in this plugin
/swiggy-addressList, create, delete and default Swiggy delivery addresses with swiggy-cli. Use when a Food/Instamart command needs an addressId, when the user says "deliver to my office", "add a new address", or when the CLI exits 2 asking for --address-id./swiggy-cartRead and change a Swiggy Food or Instamart cart with swiggy-cli — add items, change quantities, apply Food coupons, clear. Use when the user says "add X", "make it two", "what's in my cart", "apply coupon", "empty my cart"./swiggy-checkoutPlace a Swiggy Food or Instamart order with swiggy-cli, choosing Cash, UPI or Swiggy Money and getting explicit consent first. Use only when the user has said to place/confirm the order — never as an automatic continuation of adding to cart./swiggy-cliDrive the swiggy CLI, a direct client for Swiggy's public API (Food, Instamart, Dineout, Scenes), from an agent. Use when the user wants to search, order, pay for, book or track anything on Swiggy through the terminal, including table bookings and event tickets. Covers machine-mode flags, the JSON envelope, exit codes, auth detection and when NOT to use the CLI./swiggy-dineout-bookingFind a restaurant, check table slots and book (free or paid deal) on Swiggy Dineout with swiggy-cli; also check a booking and handle a cancellation request. Use when the user says "book a table", "reserve", "is X free at 8pm", "cancel my reservation"./swiggy-mcpCall Swiggy's four servers directly (Food at mcp.swiggy.com/food, Instamart at /im, Dineout at /dineout, Scenes at /scenes, 62 tools) from any MCP client or agent framework. Use when an agent has Swiggy tools available, or when writing code that calls them. Covers auth (OAuth 2.1 + PKCE, one login, 5-day token, refresh), how to read a tool result, error handling, rate limits and handshake hygiene, and the safety rules every Swiggy tool call must follow.