Summary
Afterbuy multichannel e-commerce software (XML API): read orders from eBay, Amazon, Kaufland and the Afterbuy shop with payment, buyer and shipping data, products, stock, catalogs, shipping and payment methods; mark orders as shipped with tracking numbers, change order fields and delivery addresses, update stock, prices and product texts. Partner token and account token from the booked XML interface.
Guided setup
Connect Afterbuy to ChatGPT in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Afterbuy in the guided setup, then add your MCP URL to ChatGPT. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
AnythingMCP's plugin in ChatGPT's directory answers questions from your company databases on AnythingMCP Cloud (PostgreSQL, MySQL, SQL Server, Oracle, SAP HANA, SQLite, MongoDB, read-only): open the listing (opens in a new tab) and click Install plugin. Every other connector is added to ChatGPT as a custom MCP server with your AnythingMCP MCP URL.
Try asking
Example prompts for Afterbuy
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Afterbuy, paste the partner token and the account token of your Afterbuy XML interface, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Afterbuy + ChatGPT
Afterbuy multichannel e-commerce software (XML API): read orders from eBay, Amazon, Kaufland and the Afterbuy shop with payment, buyer and shipping data, products, stock, catalogs, shipping and payment methods; mark orders as shipped with tracking numbers, change order fields and delivery addresses, update stock, prices and product texts. Partner token and account token from the booked XML interface.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
AFTERBUY_PARTNER_TOKEN, AFTERBUY_ACCOUNT_TOKEN
Step 1 — Get credentials
Setup: the XML interface is a paid Afterbuy add-on (EUR 20 a month plus VAT, 50,000 calls a day included). Book it in Afterbuy under Management Center > Vertriebskanäle > Eigener Onlineshop > Schnittstellen zu Afterbuy (XML & Shop); Afterbuy then shows the access data, which can be looked up again under Management Center > Einstellungen > Tarif und Rechnung > Tarifinformation und Afterbuyrechnung (bottom of the page). Put the partner token in AFTERBUY_PARTNER_TOKEN and the account token in AFTERBUY_ACCOUNT_TOKEN. Every request carries both tokens in its XML AfterbuyGlobal block.
Answers are XML, handed over as JSON under Afterbuy: CallStatus is Success, Warning or Error, the data sits in Result, every value is a string, and a repeated element (Order, Product, SoldItem) is a list when there are several and a single object when there is one, so handle both. Warnings come in Result.WarningList.Warning (code and text) and do not stop the call: read them after every write, because Afterbuy reports a product or order it could not update as a warning. Errors are reported as failed tool calls with Afterbuy's code and text; "No items found" (code 15) and the other "nothing found" codes come back as an answer with that error in Result.ErrorList, which means the filter matched nothing.
Identifiers: an order is identified by its OrderID (Afterbuy's VorgangsID, a number such as 482915733), each order line by its ItemID. A product has a ProductID (Afterbuy's internal number), an article number Anr (numeric) and an EAN field, which many shops use for their SKU. Buyers have an AfterbuyUserID. Dates are written DD.MM.YYYY HH:MM:SS in German local time (26.11.2026 14:30:00); afterbuy_get_time gives the server time.
Paging: orders come at most 250 per call; when Result.HasMoreItems is 1, call afterbuy_list_orders again with after_order_id set to Result.LastOrderID. Products work the same way with HasMoreProducts, LastProductID and after_product_id (or page). detail_level chooses which parts are returned (for orders: 2 payment, 4 buyer, 8 items, 16 shipping, 32 item attributes, added up); a smaller value makes the answer smaller. Afterbuy allows 50,000 calls a day per account: filter by date or status instead of reading everything.
Where to start
- New and open orders:
afterbuy_list_orderswithstatus_filterNewAuctions, PaidAuctions or ReadyToShip, or withdate_fromanddate_fieldModDate to see what changed.newest_first1 withmax_itemsup to 100 shows the latest orders first. - A customer asks about an order:
afterbuy_list_orderswithbuyer_email, thenafterbuy_get_orderfor the details (payment, items, shipping date, tracking). - Products and stock:
afterbuy_list_productswitheans,anrsorproduct_ids(orchanged_fromfor recent changes);afterbuy_get_stockfor stock only.
Writing (all on the live account; confirm with the user first)
- Ship an order:
afterbuy_mark_order_shippedsets the shipping date (and can send Afterbuy's shipping e-mail withsend_shipping_mail1).afterbuy_set_order_trackingstores tracking numbers per order line and package; Afterbuy replaces all parcel data of the order on every call, so first read the order withafterbuy_get_orderand send the existing parcels again together with the new ones. Package numbers run 1, 2, 3 without gaps. afterbuy_update_orderchanges flags, memo, invoice data, payment (settingpayment_datemarks the order as paid) and the order info fields;afterbuy_update_shipping_addresssets a new delivery address.afterbuy_update_stock_and_pricessets stock (absolutequantity, or a booking withadd_quantity) and prices;afterbuy_update_product_detailschanges names, descriptions and master data. Both identify products by ProductID, Anr or EAN, never create products, and take up to 250 products per call.afterbuy_cancel_ordercancels an order and is installed switched off.
Not covered: creating products, orders or catalogs, images, variations and set composition, eBay listing (Lister) functions, mail templates and the one-way Shop interface (order import from an external shop). Other XML calls can be added as custom tools with the same request envelope.
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in ChatGPT
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
ChatGPT adds MCP servers as plugins on its Plugins page, on the web and on paid plans. Developer mode is no longer needed. In a Business workspace only admins and owners can add one; in Enterprise and Edu an admin can grant the Create plugins with MCPs permission.
- Go to chatgpt.com/plugins, click Add, then Add custom MCP server.
- Enter a name, e.g. Name:
Afterbuy. - Under Connection, enter the Server URL
https://cloud.anythingmcp.com/mcp/YOUR_SERVER_IDand keep Authentication on OAuth. - Select I understand and want to continue, then Create as a plugin. When ChatGPT asks, sign in to AnythingMCP and allow access.
- Install the new plugin from your personal plugins, then type @ in a chat and pick it.
Available tools
| Tool | What it does |
|---|---|
afterbuy_get_time | Read the current Afterbuy server time (AfterbuyTimeStamp, local German time, and AfterbuyUniversalTimeStamp, UTC). Costs one call and needs… |
afterbuy_list_orders | List orders (Verkäufe/Vorgänge) from Afterbuy with GetSoldItems: Result.Orders.Order (one object, or a list) with OrderID (the VorgangsID)… |
afterbuy_get_order | Read one order by its OrderID (VorgangsID) with GetSoldItems, with payment, buyer, items with attributes and shipping: Result.Orders.Order… |
afterbuy_list_products | List or find products (Artikel) in Afterbuy with GetShopProducts: Result.Products.Product (one object, or a list) with ProductID, Anr… |
afterbuy_get_stock | Read the stock of specific products with GetStockInfo: Result.Products.Product with ProductID, Anr, EAN, Quantity (shop stock)… |
afterbuy_list_catalogs | List the shop catalogs (categories) with GetShopCatalogs: Result.Catalogs.Catalog with CatalogID, Name, Description, Level, Position… |
afterbuy_list_shipping_services | List the shipping groups and shipping methods (Versandarten) set up in the account with GetShippingServices: names, countries, prices and… |
afterbuy_list_payment_services | List the payment methods (Zahlarten) set up in the account with GetPaymentServices, optionally only those allowed for a country, a channel… |
afterbuy_list_user_defined_flags | List the seller's own order flags (Markierungen) with GetUserDefinedFlags: id and name of each. The ids filter afterbuy_list_orders and are… |
afterbuy_mark_order_shipped | Mark an order as shipped with UpdateSoldItems: sets the shipping date (DeliveryDate) and, optionally, the shipping method, and can let… |
afterbuy_set_order_tracking | Set the parcel tracking numbers of an order with UpdateSoldItems (ShippingInfo.ParcelLabels). Afterbuy REPLACES all parcel data of the… |
afterbuy_update_order | Change fields of one order with UpdateSoldItems: seller flag, memo, invoice note, invoice number and date, export and hidden state, payment… |
afterbuy_update_shipping_address | Set a different delivery address on an order with UpdateSoldItems (BuyerInfo.ShippingAddress), for example when a buyer asks to change it… |
afterbuy_update_stock_and_prices | Update stock and prices of existing products with UpdateShopProducts, up to 250 products per call. Each product is identified by ProductID… |
afterbuy_update_product_details | Update the texts and master data of existing products with UpdateShopProducts (Artikelpflege), up to 250 products per call: name… |
afterbuy_cancel_order | Cancel an order in Afterbuy with CancelOrders, optionally booking the stock back and hiding the order. A cancellation cannot be undone… |
Example prompts
- "Which orders are paid but not shipped yet?"
- "A customer with the e-mail [email protected] asks where her order is: what is its payment and shipping status?"
- "Mark order 482915733 as shipped with DHL tracking number 00340434161234567890."
- "Which products with EAN starting 40123 have less than 5 pieces in stock?"
- "Change the delivery address of order 482915733 to Hauptstraße 12, 79098 Freiburg."
FAQ
What do I need to set up? The Afterbuy XML interface, a paid add-on (EUR 20 a month plus VAT, 50,000 calls a day included). Book it in Afterbuy under Management Center, Vertriebskanäle, Eigener Onlineshop, Schnittstellen zu Afterbuy (XML & Shop). Afterbuy then shows a partner token and an account token, which you find again under Einstellungen, Tarif und Rechnung, Tarifinformation und Afterbuyrechnung. Paste both into the connector.
What does it cover? Orders from eBay, Amazon, Kaufland, the Afterbuy shop and other channels with payment, buyer, items and shipping, products, stock, catalogs, shipping and payment methods and your own order flags. It marks orders as shipped, stores tracking numbers, changes order fields and delivery addresses, and updates stock, prices and product texts. It does not create products, orders or catalogs, and it has no images, variations or eBay listing functions.
Which tool installs switched off? afterbuy_cancel_order: a cancellation cannot be undone through the API. Switch it on on the connector page only if the AI should use it. The other writes are on and change the live account, so the AI shows each change and waits for your confirmation.
Does the free ChatGPT plan work with custom MCP servers? OpenAI documents custom MCP servers for paid plans only; the Free plan is not on its list.
Next steps
Was this guide helpful?