• AUTOMATED
  • AUTOMATED
  • MANUAL
  • MANUAL

How to cancel orders and trigger refunds with your agent

Connect VTEX Orders to your AI client to manage order cancellations. You can handle refund requests directly in your chat window.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

Can I cancel VTEX orders using my AI?

Yes. You can use your agent to find and cancel orders in VTEX via chat. This allows you to trigger the refund process without opening the VTEX admin panel.

Where each request lands.

Order management outcomes

Your agent handles the order status changes so you don't have to switch tabs.

AUTOMATED

Order cancellations

Your agent executes the cancellation in VTEX. You get a confirmation in your chat once the order status updates.

AUTOMATED

Refund initiation

Your agent triggers the necessary steps to start a refund. This moves the order into the correct state for your payment processor.

MANUAL

Shipped orders

If an order has already shipped, your agent cannot cancel it. You'll need to handle these returns manually in VTEX.

MANUAL

Complex disputes

For edge cases like partial refunds or specific billing errors, your agent flags the order for you to review personally.

The workflow

What your agent does when a cancellation request arrives.

Your agent acts as the interface between your chat and the VTEX order system.

  1. Identify the order

    Your agent pulls the order details from VTEX to confirm it's the right one.

    cancel_order
  2. Cancel the order

    Your agent sends the cancellation command to VTEX to stop the order.

    cancel_order
  3. Trigger the refund

    Your agent ensures the order is set up to receive a refund in the system.

    cancel_order
  4. Confirm completion

    Your agent verifies the new status in VTEX and tells you it's done.

    cancel_order

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute VTEX tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to act on your VTEX orders.

Starting points

Swap the order numbers for the actual ones you need to process.

VTEX Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_j7X6HiwX1bBJXST5tZZMutxUuUBghIML8gfccIJU/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, VTEX capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "vtex-orders-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_j7X6HiwX1bBJXST5tZZMutxUuUBghIML8gfccIJU/mcp"
    }
  }
}
Copy into chat04
  • 01

    Cancel order #88291 in VTEX.

  • 02

    Can you cancel order 44521 for me?

  • 03

    I need to trigger a refund for order #10023.

  • 04

    Check if order 99283 can still be cancelled.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect VTEX Orders once, then ask.

Connect your store once and your credentials stay encrypted. You can then manage orders through any compatible client.

Connect VTEX Orders to your agent

FAQ

How this task behaves

  • 01

    Can your agent cancel an order that is already being shipped?

    No. If the order status in VTEX prevents cancellation, your agent cannot proceed.

  • 02

    Does your agent handle the actual money transfer?

    No. Your agent triggers the refund in VTEX, but your payment gateway handles the actual movement of money.

  • 03

    Can your agent delete an order from my history?

    No. Your agent can only change the status of an order via the cancel_order tool; it cannot delete records.

  • 04

    Can I cancel multiple orders at once?

    Yes. You can give your agent a list of order numbers and ask it to cancel them.

  • 05

    What happens if the cancellation fails?

    Your agent will show you the error returned by VTEX so you can fix it in the admin panel.

  • More questions about VTEX Orders? The Connector page answers them. See everything the VTEX Orders Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from VTEX to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    VTEX plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect VTEX to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.