Skip to content
Last updated

REVER calls your store through the Magento REST API, with the credentials of an integration you create for REVER in your Magento admin. To connect it, you need:

  • Callback URL: the address your REVER account manager gives you. With it, Magento sends the integration's credentials to REVER when you activate it, and you don't copy anything.
  • Or, to enter the credentials in the REVER dashboard yourself:
    • Store URL: the address of your store, without a slash at the end, for example https://www.example.com.
    • The credentials of that integration: its access token, or its four OAuth 1 values.
    • Admin URL (optional): the address of your Magento admin, for example https://www.example.com/admin. With it, REVER links each return to its order in your admin.

This guide applies to Magento 2 and Adobe Commerce.

Prerequisites

  • A Magento 2 or Adobe Commerce store served over HTTPS.
  • A Magento admin user who can create integrations, in System > Extensions > Integrations.
  • A REVER dashboard user with write access to your group.

Magento or Magento (OAuth 1)

The dashboard offers Magento twice. Both use the integration you create in Step 2. They differ in which of its credentials REVER uses:

OptionWhat you enterHow REVER uses it
Magento (OAuth 1)Nothing, with the Callback URL: Magento sends the Consumer Key, Consumer Secret, Access Token and Access Token Secret to REVER. Without it, you enter the four in the dashboardREVER signs every call with them (OAuth 1, HMAC-SHA256).
MagentoThe integration's Access TokenREVER sends it as a bearer token in every call.

Choose Magento (OAuth 1) with the Callback URL: you copy no credentials and change no store setting. Choose Magento only if you'd rather enter the access token yourself; from Magento 2.4.4, your store only accepts it as a bearer token when the setting described in Step 2 is on.

Step 1: Find your store URL

With a Callback URL, skip this step: Magento sends your store URL to REVER.

Your store URL is the address your Magento REST API is served under, without the API path. If your API answers at https://www.example.com/rest/V1/..., your store URL is https://www.example.com.

  • Enter it with https://.
  • Leave out /rest, /V1 and any store code. REVER adds them to each call.
  • Enter it exactly as your REVER portal knows it. https://example.com and https://www.example.com are different stores to REVER.

Admin URL

Optional. It's the address of your Magento admin, for example https://www.example.com/admin: open your admin and copy the address up to the admin path, without what follows it. With it, REVER links each return to its order in your admin.

Step 2: Create an integration

  1. In your Magento admin, go to System > Extensions > Integrations and click Add New Integration.

  2. Enter a name, for example REVER, and your admin password.

  3. To have Magento send the credentials to REVER, also fill in:

    • Callback URL: the address your REVER account manager gave you, copied exactly. It ends in ?group= followed by your group's name in REVER, where capital letters count.
    • Identity link URL: https://itsrever.com/

    To enter the credentials in the dashboard yourself, leave both empty.

  4. Open the API tab and choose the resources REVER can access. All covers every call in the table below. If you choose Custom, select the resources that cover them.

  5. Click Save.

  6. In the list of integrations, click Activate next to the new one, then Allow.

  7. With a Callback URL, Magento sends the credentials to REVER, and your store appears as a card in Integrations, already used by your group's Magento portals on that store and by those not connected yet. Skip Step 3, and go to Step 4 only for a portal whose card doesn't show Used by this portal.

    Without one, Magento shows the Consumer Key, Consumer Secret, Access Token and Access Token Secret. Copy the ones your option needs, then click Done.

If you chose Magento, also let your store accept the access token as a bearer token: go to Stores > Settings > Configuration > Services > OAuth > Consumer Settings, set Allow OAuth Access Tokens to be used as standalone Bearer tokens to Yes, and save.

These are the calls REVER makes with the integration:

What REVER doesREST API
Reads orders, invoices, credit memos and shipmentsGET /V1/orders, GET /V1/invoices, GET /V1/creditmemos, GET /V1/shipments
Adds comments to orders and credit memosPOST /V1/orders/{id}/comments, POST /V1/creditmemo/{id}/comments
Refunds ordersPOST /V1/order/{id}/refund, POST /V1/invoice/{id}/refund
Invoices exchange ordersPOST /V1/order/{id}/invoice
Creates exchange orders/V1/guest-carts and its sub-resources
Reads products, variants, attributes and stockGET /V1/products, GET /V1/configurable-products/{sku}/children, GET /V1/configurable-products/{sku}/options/all, GET /V1/products/attributes, GET /V1/stockItems/{sku}
Creates and deletes promo codes/V1/salesRules, POST /V1/coupons/generate, GET /V1/coupons/search, DELETE /V1/coupons/{code}
Reads store views and settingsGET /V1/store/storeViews, GET /V1/store/storeConfigs, GET /V1/customerGroups/default
Creates returns, only when REVER is set up to create them in your storePOST /V1/returns, GET /V1/returns/{id}, PUT /V1/returns/{id}

Step 3: Connect it in REVER

Only if you didn't use a Callback URL.

  1. In the REVER dashboard, pick your group in the selector, not one of its portals.
  2. Open Integrations. On eCommerce platform, click Manage.
  3. Click Connect a platform, choose Magento, then Magento or Magento (OAuth 1).
  4. In the form that opens, enter your Store URL, the credentials and, if you want each return linked to its order, your Admin URL. Then submit it:
OptionForm fields, with the Magento value of the same name
MagentoAccess token
Magento (OAuth 1)Consumer key, Consumer secret, Access token and Access token secret

Your store now appears as a card in the list. It belongs to your group, so every portal of the group can use it.

Step 4: Use it in your portals

Each portal keeps using its current connection until you switch it.

  1. Pick the portal in the selector.
  2. Open Integrations and, on eCommerce platform, click Manage.
  3. On your store's card, click Use in this portal and confirm.

The card now shows Used by this portal. Repeat for each portal of the store.

If the portal uses another store URL, the dashboard asks you to switch the portal to the connection's store. Switch it only if it is the same shop on a new domain. Otherwise, check the URL from Step 1 and connect again.

Troubleshooting

What you seeWhat to do
Your store rejects every call with 401 Unauthorized on a Magento connectionYour store doesn't accept the access token as a bearer token. Turn on the setting in Step 2, or connect with Magento (OAuth 1) instead.
Your store rejects some calls but not othersThe integration lacks access to those resources. Edit it in System > Extensions > Integrations, add them on the API tab and save.
Your store's card doesn't appear after you activate the integration with a Callback URLAsk your REVER account manager: REVER tells them why. Once it's fixed, click Reauthorize next to the integration in System > Extensions > Integrations.
This one wasn't added after you connectYour group already has this connection for your store. To change its credentials, click Reconnect on it.
Calls to your store start failing after the integration was deleted or its tokens were reissuedClick Reconnect on the connection and enter the current values or, if you connected with a Callback URL, click Reauthorize next to the integration in Magento.