Skip to content
Last updated

REVER calls your store through PrestaShop's webservice and the REVER module. Once installed, the module connects your store to REVER itself, as described in PrestaShop Integration. Use this guide to connect it from the REVER dashboard instead, for example when your server drops the Authorization header (see PrestaShop or PrestaShop (query key)). To connect it, you need:

  • Store URL: the address of your store, without a slash at the end, for example https://shop.example.com.
  • Webservice key: the REVER API Key that the REVER module shows in your back office.
  • Admin URL (optional): the address of your back office, for example https://shop.example.com/admin123. With it, REVER links each return to its order in your back office.

Prerequisites

  • A PrestaShop store served over HTTPS.
  • Access to your store's back office, with permission to install modules.
  • The REVER module, installed from the PrestaShop Addons Marketplace as described in PrestaShop Integration. REVER needs it to load orders, process returns and issue refunds.
  • A REVER dashboard user with write access to your group.

PrestaShop or PrestaShop (query key)

The dashboard offers PrestaShop twice. Both ask for the same fields. They differ in how REVER sends the key:

OptionHow REVER sends the keyChoose it when
PrestaShopIn the Authorization headerYour server passes that header on to PrestaShop. This is the usual case.
PrestaShop (query key)In the URL, as the ws_key parameterYour server drops the Authorization header, so PrestaShop rejects REVER's calls even with the right key.

Start with PrestaShop. If REVER's calls are rejected with 401 Unauthorized and the key is right, connect again with PrestaShop (query key). Your developer or hosting provider can tell you whether your server drops the header.

Step 1: Find your store URL

Your store URL is the address shoppers use to open your store, for example https://shop.example.com.

  • Enter it with https://.
  • If your store is in a folder, include it, for example https://www.example.com/shop.
  • Leave out /api. REVER adds the path of each call.
  • Enter it exactly as your REVER portal knows it. https://example.com and https://www.example.com are different stores to REVER.

If you are not sure, go to Shop Parameters > Traffic & SEO in your back office. Under Set shop URL, your store URL is https:// followed by the SSL domain and the Base URI.

Admin URL

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

Step 2: Create a webservice key

You don't create this key yourself. The REVER module creates it when you install it, enables PrestaShop's webservice and gives the key the permissions REVER needs.

  1. Install the REVER module as described in PrestaShop Integration.
  2. In your back office, go to Modules > Module Manager and click Configure on the REVER module.
  3. Copy the REVER API Key. This is the webservice key you enter in REVER.

Use this key, not a new one. The REVER module only accepts calls made with the key it created, so a key you add yourself in Advanced Parameters > Webservice does not work for returns and refunds.

The key is listed in Advanced Parameters > Webservice as REVER key - DO NOT EDIT. These are the permissions REVER uses:

ResourceMethods
addressesGET, POST
carriersGET
cart_rulesGET, POST, PUT
cartsPOST
categoriesGET
combinationsGET
configurationsGET
countriesGET
currenciesGET
customer_messagesPOST
customer_threadsGET, POST
customersGET
languagesGET
order_carriersGET
order_cart_rulesGET
order_detailsGET
order_historiesGET
order_paymentsGET
order_slipGET
order_statesGET
ordersGET, POST
product_option_valuesGET
product_optionsGET
productsGET
statesGET
stock_availablesGET

Step 3: Connect it in REVER

  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 PrestaShop, then PrestaShop or PrestaShop (query key).
  4. In the form that opens, enter your Store URL and Webservice key, and your Admin URL if you want each return linked to its order. Then submit it.

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
The form doesn't accept the keyREVER checks the key with the REVER module before saving it. Check that the module is installed and enabled, and that the key is the REVER API Key from its Configure page. If both are right, choose PrestaShop (query key).
Your store rejects REVER's calls with 401 UnauthorizedCheck that the key is the REVER API Key from the module's Configure page. If it is, your server may drop the Authorization header: connect with PrestaShop (query key) and use that connection in your portals.
This connection couldn't sign in to the store, so this portal can't use it.Copy the REVER API Key again and click Reconnect on the connection.
This one wasn't added after you connectYour group already has this connection for your store. To change its credentials, click Reconnect on it.
The connection is listed under Needs attentionYour store stopped accepting the key. The dashboard shows what your store answered. Click Reconnect and enter the current REVER API Key.