M1-shop postback and API → lidvanto: integration setup
How to connect M1 (M1-shop) to lidvanto: API key and webmaster ID, landing page orders sent via API, postback with new, approved, declined and trash statuses, testing.
M1-shop is built into lidvanto more deeply than the networks from the general catalog. The tracker doesn’t just accept the M1 postback — it also sends M1 the orders from the form on your landing page itself, via API, with the click ID and your campaign and ad IDs. This guide shows how to connect the API, set up the offer and the form, where to paste the postback URL and how to test the setup without sending a single real order to the network.
What M1 is#
M1 is a CPA network in the nutra vertical — that’s how it describes itself on m1.top. The lidvanto tracker sends orders via API to the same address. In the lidvanto network catalog the network is called M1-shop.
Unlike catalog networks, M1-shop in lidvanto has no fields for macros or status names: the tracker knows the M1 postback format on its own. You only set up API access and the offer.
What you need#
- an M1 affiliate account: the API key, your webmaster ID (ref) and the “Product ID (API)” from the offer card in the M1 dashboard;
- access to Tracker in lidvanto: affiliate networks, offers, landing pages and campaigns;
- a landing page with the tracker’s order form and a campaign that will send traffic to it.
Ready-made settings from the catalog#
M1-shop template in the lidvanto affiliate network catalog: the “Add affiliate network” form fills in these values. Vertical: Nutra and e-commerce goods.
Offer link parameters
w={click_id}
Add them to the offer link: the tracker will substitute the click ID for {click_id}.
Postback link
https://lidvanto.com/traffic/affiliate-postback/ID/?token=TOKEN&w={w}&order_id={order_id}&status={status}&trash={trash}&web_total={web_total}¤cy={currency}
- ID and TOKEN are your affiliate network’s number and secret token: copy the ready link from its card.
- The tracker already knows this network’s postback format: no macros or statuses to set up.
Step 1. Create the M1-shop network and connect the API#
- Open Tracker → Affiliate networks and click Add affiliate network.
- Find M1-shop in the catalog.
- In the Affiliate network API access block, enter the API key and the M1 webmaster ID (ref) — both are required for M1, and the webmaster ID is digits only. The key is stored hidden: to keep the current one when editing later, leave the field empty.
- Keep Test mode on and click Save.
The fields are described in Connecting a network.
Step 2. Set up the offer#
Open the offer card (Tracker → Offers) and connect M1-shop in the Affiliate networks block:
- Offer in the affiliate network — Offer ID in the affiliate network, Product ID for API (M1 product_id) — the “Product ID (API)” from the offer card in the M1 dashboard, digits only — and Commission currency, the currency M1 pays you in;
- Product and price — price, delivery, currency, country and quantity. The country is an ISO code: the tracker uses it to check the phone number, and sends it to M1 as the order language,
langCode; - Lead intake — turn on Accept orders from our form. Without the product ID, or without the API key and webmaster ID in the network, the offer won’t save, and the form tells you exactly what to fill in.
The block is described in Offers.
Step 3. Put the order form on the landing page#
Orders are accepted by the tracker’s order form. The tracker inserts it by itself into any landing page whose HTML contains the line <!--TRACKER_ORDER_FORM-->; a Lead form landing page created by the AI generator already has it. See Website leads.
When a visitor submits an order, the tracker sends M1 the name, phone, IP, the click ID in the w parameter, the product ID, your webmaster ID and the offer’s country code. If the campaign has ad tracking parameters set up, M1 also gets the campaign, ad group, creative and placement IDs in its sub-IDs. At the same time the lead appears in the CRM pipeline, if one is selected in the offer.
The tracker doesn’t send M1 a repeat order from the same buyer — this protects you from duplicates.
The w={click_id} parameter in the block above is only needed if the visitor goes to an M1 page through the offer link instead of filling in your form: that’s how the lidvanto template passes the click ID in the link. For that setup, check with your M1 manager that the flow link accepts w and returns it in the postback.
Step 4. Paste the postback URL into M1#
- In lidvanto, open the M1-shop network card and click Copy in the Postback link block. The link already contains the network number and a secret token — don’t publish it.
- Paste the link into the postback settings in the M1 dashboard.
The link uses M1’s format: the click ID arrives in w, the order ID in order_id, the status in status, the trash flag in trash, the payout in web_total and the currency in currency. The tracker maps new to Pending, approved to Confirmed and declined to Declined; an order with trash=1 is Declined whatever its status.
The tracker finds the order by the click ID, even if the order ID in the postback differs from M1’s API response. If M1 sends the same postback twice — say, the global one and a flow postback — the second one counts as a duplicate and changes nothing.
Step 5. Test in test mode#
- While the network has Test mode on, orders from the form aren’t sent to M1: the tracker creates a test order but sends nothing to the network. Submit an order on the landing page yourself.
- Open Statistics → Logs, Order form tab: it shows every form submission, even ones that never became an order, and its result.
- Statistics → Conversions shows the order: Lead delivery — whether the network accepted it, Status — what the network reported in the postback.
When everything matches, turn test mode off: if the network already has test orders, duplicate it and uncheck test mode in the copy, as described in Conversions and logs. After that, orders go to M1 via API.
Common mistakes#
- “Missing: …” — the network has no API key or webmaster ID, or the offer’s “Product ID for API” is empty. The tracker doesn’t send such an order and names the missing field.
- “M1: not all parameters were passed (visit_ok)” — M1 replied
visit_okand no order was created. The tracker lists the parameters that went out empty. - Lead delivery “Result unknown”. M1 didn’t give a clear answer. The tracker never resends such an order, so as not to create a duplicate: check it in the M1 dashboard and, if needed, send the lead manually from the lead card.
- A different currency. If the currency in the postback differs from Commission currency in the offer, the tracker rejects the postback — the log shows
currency_mismatch. If M1 doesn’t fill in the currency and the log rejects the postback withCurrency required, remove¤cy={currency}from the link: without a currency, the tracker uses the offer’s commission currency. - The link was copied without the token. The tracker rejects requests without the correct token. Use the Copy button.
FAQ#
Where do I get the M1 API key and webmaster ID?#
In your M1 affiliate dashboard. In lidvanto, enter them in the M1-shop network card, Affiliate network API access block. The “Product ID (API)” comes from the offer card in the M1 dashboard and goes into the lidvanto offer.
Which M1 statuses does lidvanto understand?#
new is Pending, approved is Confirmed, declined is Declined. An order with trash=1 counts as Declined. You don’t need to set up status names for M1.
Why use your own form if M1 has its own landing pages?#
Your own form lets orders come from your landing page: lidvanto saves the lead in the CRM and sends the order to M1 via API, and if the offer has several networks with chain sending, it moves on to the next one when M1 rejects the order. The M1 postback then updates the status and payout.
Can I send orders to M1 and another network at once?#
Yes. If the offer has several networks, choose how to send orders in the offer: Chain, In turn or To all at once — see Website leads.
How do I test M1 without real orders?#
Turn on Test mode for the network: orders aren’t sent to M1 and are marked as test. The order form and postback logs work as usual.
Further reading#
- How to set up an S2S postback — how conversions travel from an affiliate network to a tracker.
- lidvanto tracker — campaigns, flows, offers and ROI per funnel.
- All integrations — other networks from the catalog.