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.
- 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.
The dashboard offers PrestaShop twice. Both ask for the same fields. They differ in how REVER sends the key:
| Option | How REVER sends the key | Choose it when |
|---|---|---|
| PrestaShop | In the Authorization header | Your server passes that header on to PrestaShop. This is the usual case. |
| PrestaShop (query key) | In the URL, as the ws_key parameter | Your 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.
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.comandhttps://www.example.comare 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.
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.
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.
- Install the REVER module as described in PrestaShop Integration.
- In your back office, go to Modules > Module Manager and click Configure on the REVER module.
- 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:
| Resource | Methods |
|---|---|
addresses | GET, POST |
carriers | GET |
cart_rules | GET, POST, PUT |
carts | POST |
categories | GET |
combinations | GET |
configurations | GET |
countries | GET |
currencies | GET |
customer_messages | POST |
customer_threads | GET, POST |
customers | GET |
languages | GET |
order_carriers | GET |
order_cart_rules | GET |
order_details | GET |
order_histories | GET |
order_payments | GET |
order_slip | GET |
order_states | GET |
orders | GET, POST |
product_option_values | GET |
product_options | GET |
products | GET |
states | GET |
stock_availables | GET |
- In the REVER dashboard, pick your group in the selector, not one of its portals.
- Open Integrations. On eCommerce platform, click Manage.
- Click Connect a platform, choose PrestaShop, then PrestaShop or PrestaShop (query key).
- 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.
Each portal keeps using its current connection until you switch it.
- Pick the portal in the selector.
- Open Integrations and, on eCommerce platform, click Manage.
- 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.
| What you see | What to do |
|---|---|
| The form doesn't accept the key | REVER 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 Unauthorized | Check 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 connect | Your group already has this connection for your store. To change its credentials, click Reconnect on it. |
| The connection is listed under Needs attention | Your store stopped accepting the key. The dashboard shows what your store answered. Click Reconnect and enter the current REVER API Key. |