Store connections

Set up ROASaurus on Magento 1.9

Updated

Yes, as a legacy connection. Create a SOAP/XML-RPC API user in the Magento 1 admin and enter its user name and API key in ROASaurus: orders in the processing or complete state are fetched every 5 minutes. Magento 2 and Adobe Commerce have their own connection.

Before you start

  • Magento 1 admin access to System › Web Services.
  • The shop's API reachable over HTTPS at /api/xmlrpc/.

Steps

  1. Add the store

    In ROASaurus, open the store menu at the top of the sidebar, choose Add a store, then Magento 1.9 (legacy). Enter the address your customers visit and click Continue.

    You should see: Connect Magento 1.9 (legacy), with Last order received: none yet, Last sync: never, the numbered setup steps and the credential fields.

  2. Add the tracking script

    Copy the script tag from step 1 of the connection page. It contains your store key. Add it to every page of the shop, for example in System › Configuration › Design › HTML Head › Miscellaneous Scripts.

    You should see: Open your shop with ?roasaurus=connected at the end of the address: the browser says "ROASaurus is connected."

  3. Create the API user

    In the Magento admin, open System › Web Services › SOAP/XML-RPC - Roles and create a role that may read sales orders. Then, under SOAP/XML-RPC - Users, create a user with that role and an API key.

  4. Fill in the credentials

    In ROASaurus, enter the User name and API key. Fill in Shop domain only when the API answers on another domain than the store's. Save and click Test connection.

    You should see: "Connected to Magento 1."

  5. Add the thank-you page snippet

    The connection page shows a snippet that fires the browser purchase with the order id. Fill in the order number, total and currency on the checkout success page. It links the order to the visitor and their ad click exactly; without it, ROASaurus matches by email or by IP address and browser.

  6. Fetch the first orders

    Press Fetch orders now. The first fetch reads the last 3 days of paid orders; after that ROASaurus fetches every 5 minutes by itself.

    You should see: "Fetched n paid orders, m new." and Last sync with the time. On Getting started, Connect the store turns green.

What you should see

Paid Magento 1.9 orders appear under Profit › Orders with their channel, and purchases go out to the ad platforms you connected (Data quality › Deliveries). Getting started shows Connected on with the date.

How orders arrive

Every 5 minutes ROASaurus asks the XML-RPC API for orders changed since the last check and reads each order in the processing or complete state (invoiced, so paid) with its items and billing address. Magento 1 no longer receives updates from Adobe; this connection is kept for shops that still run it.

What ROASaurus reads

Only paid orders, with their products, totals, currency, customer contact details and address. Contact details are hashed before they go to an ad platform. Refunds follow where the platform reports them. Your shop is never changed.

Common problems

"Connection failed: … Save your credentials first, then test."
Test connection, Create webhook and Fetch orders now use the saved credentials. Click Save after you change a field, then test again. The text after "Connection failed" is the platform's own answer, for example a refused key.
"Sync failed: …" or the Connect the store step turns red
The platform refused the fetch, most often because the key was removed or lacks read access to orders. Create a new key with the access listed on the connection page, save it and press Fetch orders now.
Test connection fails
The API user's role may not read sales orders, or the API key was mistyped. Check the role's resources and save the key again.

Next step

Next: connect your ad platforms and add your costs.

Continue with Getting started

Still stuck? Email us.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.