With the **Return portal** (*Retourenportal*) the customers of your shop register their returns themselves: enter order number and last name, choose **Withdrawal** or **Complaint**, select the items with reason and quantity, download the return label. The portal is a page of its own without login at `https://app.x-sitter.com/retouren/<short-name>` – with your logo, your colours and your texts. Under **Company Settings › Return portal** (*Firmen Einstellungen › Retourenportal*) you switch it on and design it.

![Screenshot: Return portal page with the address of the portal, the tabs General, Appearance, Texts and Return reasons and the General tab](/company/images/returns-portal-general.png)

## Before you start

- Your user needs the permission *Company Settings › Return portal*. Nobody gets it automatically. Ask your administrator.
- A return is only possible once the order has the status **Sent** (*Versendet*).
- For the return label: the order was shipped with a label from X-Sitter (the return label is then created with the same carrier), or ShipCloud access is set up for the client (see [ShipCloud accounts](/company/shipcloud-accounts.md)). If the label fails, the return is saved anyway.

## Every company has its own portal

A portal always belongs to exactly one company: the company whose orders come back through it. Short name, logo, colours, texts and return reasons are stored per company; the logo comes from the Media Management of that company. The portal of a client and the portal of the logistics provider are separate – changing one changes nothing in the other.

There are two ways to set up the portal of a client:

| Who | How |
|---|---|
| The client itself | A user of the client with the permission *Company Settings › Return portal* opens the page. They see and change only the portal of their own company. |
| The logistics provider for the client | Select the client in the company selector at the top, then open **Company Settings › Return portal**. You now edit the portal of that client. When you switch back to your own company, you see your own portal again. |

!!!
Before you save, check which company is selected at the top. The company name is also the suggestion for the **Short name in the address** (*Kürzel in der Adresse*) and the field **Name of the shop** (*Name des Shops*).
!!!

## Step by step

### 1. Set the address and the basics

1. Open **Company Settings › Return portal** (*Firmen Einstellungen › Retourenportal*). You start on the tab **General** (*Allgemein*).
2. Enter the **Short name in the address** (*Kürzel in der Adresse*). It is the part behind `/retouren/`. The name of your company is suggested.
3. Enter the **Name of the shop** (*Name des Shops*) and, if you like, the **Customer service phone** (*Telefon Kundenservice*) and the **Customer service email** (*E-Mail Kundenservice*).
4. Choose the **Language on opening** (*Sprache beim Öffnen*): *German* or *English*.
5. Set the switches (see [Fields and options](#fields-and-options)).
6. Click **Save** (*Speichern*). You see "The settings have been saved". At the top you now find **Address of your portal:** (*Adresse Deines Portals:*) with the button **Copy address** (*Adresse kopieren*).

### 2. Choose logo and colours

The logo is an image from your [Media Management](/company/media.md). It is shown up to 52 pixels high.

1. Switch to the tab **Appearance** (*Aussehen*).
2. Set the logo:
   - Click **Choose from Media Management** (*Aus Medien-Verwaltung wählen*). The dialog **Choose logo from the Media Management** (*Logo aus der Medien-Verwaltung wählen*) shows all images of your Media Management by folder. Type a name into the search field to narrow the list, then click the image.
   - Or click **Upload logo** (*Logo hochladen*) and choose an image file (PNG, JPG, WebP or GIF, 2 MB at most). When you save, it is stored in the Media Management in the folder *Retourenportal*.
3. Set the four colours: **Main colour (buttons and links)** (*Hauptfarbe (Buttons und Links)*), **Text on the buttons** (*Schrift auf den Buttons*), **Background of the page** (*Hintergrund der Seite*) and **Text of the page** (*Schrift der Seite*).
4. Check the result under **This is how it looks** (*So sieht es aus*). The preview changes at once.
5. Click **Save**.

![Screenshot: Appearance tab with the logo, the buttons "Choose from Media Management" and "Upload logo", the four colours and the preview "This is how it looks"](/company/images/returns-portal-appearance.png)

With **Remove logo** (*Logo entfernen*) and **Save** you take the logo out again. The image stays in the Media Management. The top of the customer page then shows the **Name of the shop**.

![Screenshot: Dialog "Choose logo from the Media Management" with the search field, the images by folder and the buttons Media Management and Update](/company/images/returns-portal-logo-dialog.png)

!!!
If you delete, move or rename the image in the Media Management, the portal shows the **Name of the shop** instead of the logo. Choose the logo again and save.
!!!

### 3. Adjust the texts

1. Switch to the tab **Texts** (*Texte*). The texts of the customer page are grouped in the order your customer sees them: **Find the order** (*Auftrag suchen*), **Type of return** (*Art der Rücksendung*), **Choose items** (*Artikel auswählen*), **Order already has a return** (*Auftrag hat bereits eine Rücksendung*), **Completion** (*Abschluss*), **Notices and error messages** (*Hinweise und Fehlermeldungen*) and **Standard return reasons** (*Standard-Rückgabegründe*).
2. Every text has a field for **German** and one for **English**. An empty field shows the standard text in grey.
3. Enter your own text where you want to differ from the standard. Leave the field empty to keep the standard text.
4. Click **Save**.

![Screenshot: Texts tab with the group "Find the order", one field for German and one for English per text, standard texts in grey](/company/images/returns-portal-texts.png)

### 4. Define the return reasons

1. Switch to the tab **Return reasons** (*Rückgabegründe*).
2. Click **Add reason** (*Grund hinzufügen*) and enter the text under **Reason (German)** (*Grund (Deutsch)*). **Reason (English)** (*Grund (Englisch)*) is optional – without it your customer reads the German text on the English page as well.
3. Remove a reason with the button **Remove reason** (*Grund entfernen*) in its row.
4. Click **Save**.

Without own reasons the standard reasons apply: *Defective / Damaged*, *Did not like it*, *Wrong size*, *Wrong item delivered*, *Delivered too late*, *Found better alternative*.

![Screenshot: Return reasons tab with own reasons in German and English and the button "Add reason"](/company/images/returns-portal-reasons.png)

### 5. Look at the preview and switch the portal on

1. Open the address of your portal. As long as **Activate return portal** (*Retourenportal aktivieren*) is off, the note next to the address reads *not active – only visible to you as a preview*: signed-in users of your company see the portal with a preview notice, everybody else sees a neutral page.
2. Go through the steps with an order that has been sent.
3. On the tab **General** switch on **Activate return portal** and click **Save**. The note next to the address now reads *active*.
4. Pass the address on to your customers – for example in the shipping confirmation, on the delivery note or in your shop.

!!!warning
The preview creates a real return with label and advance notice. Cancel a test return afterwards under [Returns](/orders/returns.md).
!!!

### 6. Embed the portal in your shop (optional)

You can show the portal in a frame (iframe) in your shop.

1. On the tab **General** enter the address of your shop under **Embedding in the shop (iframe)** (*Einbettung im Shop (iframe)*), one per line. Only https addresses are allowed, also with a wildcard such as `https://*.my-shop.com`. Without an entry the portal cannot be embedded anywhere.
2. Switch off **Show logo or shop name at the top** (*Logo bzw. Shop-Name oben anzeigen*) when the header of your shop already shows the logo.
3. Click **Save**.
4. Add the frame to your shop page. The portal reports its height to the shop page so the frame grows with it:

```html
<iframe id="returns-portal" src="https://app.x-sitter.com/retouren/your-short-name" style="width: 100%; border: 0;" height="700"></iframe>
<script>
window.addEventListener('message', function (event) {
	if (event.origin === 'https://app.x-sitter.com' && event.data && event.data.type === 'xsitter-returns-height') {
		document.getElementById('returns-portal').style.height = event.data.height + 'px';
	}
});
</script>
```

With `?lang=de` or `?lang=en` at the address you set the language from your shop.

## Fields and options

| Field | Meaning |
|---|---|
| **Activate return portal** (*Retourenportal aktivieren*) | On: the portal can be reached by your customers. Off: customers see a neutral page, signed-in users of your company a preview. |
| **Short name in the address** (*Kürzel in der Adresse*) | Part of the address behind `/retouren/`. 3 to 64 characters: lower-case letters, digits and hyphens. Every short name exists only once. If you change it, the old address no longer works. |
| **Name of the shop** (*Name des Shops*) | Shown in the title of the page, in the footer and at the top when no logo is stored. |
| **Customer service phone** (*Telefon Kundenservice*) | Shown in the footer of the page. Empty = no entry. |
| **Customer service email** (*E-Mail Kundenservice*) | Shown in the footer of the page. Where the portal sends your customer to customer service (for example when the label could not be created), “customer service” becomes a link to this address. A single address such as `service@my-shop.com` only. Empty = no entry. |
| **Language on opening** (*Sprache beim Öffnen*) | *German* or *English*. |
| **Show logo or shop name at the top** (*Logo bzw. Shop-Name oben anzeigen*) | Off when the portal runs in the frame of your shop and its header already shows the logo. |
| **Show the German / English selection at the top** (*Auswahl Deutsch / Englisch oben anzeigen*) | Shows the language selection on the customer page. |
| **Allow a further return for an order** (*Weitere Rücksendung zu einem Auftrag erlauben*) | If an order already has a return, the customer always sees a notice and their label. With the switch on they can register the remaining items afterwards. |
| **Embedding in the shop (iframe)** (*Einbettung im Shop (iframe)*) | Shop addresses that may show the portal in a frame, one per line. |
| **Logo** | An image from the Media Management: PNG, JPG, WebP or GIF, 2 MB at most. SVG is not supported. |
| Colours | Four colours in the format `#rrggbb`. |

## What your customer sees

1. **Find the order:** your customer enters **Order number** and **Last name**. The search uses the order number of your shop. The name has to match the delivery address as a whole word (last name, first name or company) – single letters are not enough.

![Screenshot: Customer page of the return portal with logo, the fields Order number and Last name and the button Continue](/company/images/returns-portal-customer-search.png)

2. **Type of return:** *Withdrawal* (return items within the withdrawal period) or *Complaint*.
3. **Choose items:** one card per item with image, name, item number, price and ordered quantity. Your customer chooses reason and quantity. For a bundle they see only the bundle, not its components.

![Screenshot: Customer page with the items of the order, per item image, price, the selection of reason and quantity and the button "Send return"](/company/images/returns-portal-customer-items.png)

4. **Completion:** "Return successfully registered!" or "Complaint successfully registered!" with the button **Download return label** and the tracking ID.

![Screenshot: Completion page "Return successfully registered!" with the button "Download return label" and the tracking ID](/company/images/returns-portal-customer-success.png)

If the order already has a return, your customer sees "A return already exists for this order" with type, date, tracking ID and their label.

## What happens next

- The return appears under [Returns](/orders/returns.md) with the source **Return portal** and the note **Registered by the customer in the return portal** (*Vom Kunden im Retourenportal angemeldet*).
- X-Sitter creates the return label with the carrier of the original shipment and announces the parcel at goods receipt (see [Advance notices](/inbound/advance-notices.md)).
- When the parcel arrives, you review the positions as for any other return.

## Returns in Plenty

If the orders come from Plenty, the job **Retouren an Plenty melden** (*plenty-report-returns*, see [Jobs & connections](/administration/jobs-and-connections.md)) keeps the return in Plenty up to date. The return label always comes from X-Sitter, never from Plenty. Every 15 minutes the job does three steps:

1. **On registration**: with **Create in Plenty right away** (*Sofort in Plenty anlegen*) set to *Yes, as soon as the label exists*, the return goes to Plenty as soon as its label exists – with all registered items, the tracking number, the tag from **Tag on creation** (*Tag beim Anlegen*) and the label PDF as document. Then it gets the **Status after the label**, for example 9.05. An event procedure in Plenty can email the label to your customer at this status.
2. **On arrival**: as soon as the parcel is scanned at goods receipt or you start the check, the return gets the **Status on arrival**, for example 9.1.
3. **After the check**: every item gets the item status of its condition, the return gets **Status withdrawal** (*Status Widerruf*, for example 9.5 – Plenty creates the credit note) or **Status complaint** (*Status Reklamation*). This completion status only follows when everything in the Plenty return came back and was accepted. If something is missing or you reject something, the return keeps the **Status on arrival** and the shop completes it in Plenty by hand – nothing is credited that did not come back.

| Field | What it does |
|---|---|
| **Report from** (*Melden ab*) | Only returns registered or checked from this day on go to Plenty. Empty = the job does nothing. |
| **Create in Plenty right away** (*Sofort in Plenty anlegen*) | *No, only after the check* (default): Plenty gets the return after the check, with the accepted pieces only. *Yes, as soon as the label exists*: step 1 above. |
| **Status on registration** (*Status bei der Anmeldung*) | Status the return starts with in Plenty, for example 9. Empty = Plenty default. |
| **Store label as** (*Label hinterlegen als*) | Document type of the label in Plenty: **Return slip** (*Retourenschein*), **Uploaded document** (*Hochgeladenes Dokument*) or **Do not upload** (*Nicht hochladen*). Choose the type your email to the customer attaches. |
| **Status after the label** (*Status nach dem Label*) | For example 9.05. Empty = status stays. |
| **Status on arrival** (*Status bei Eingang*) | For example 9.1. A return that did not come back complete keeps this status too. Empty = status stays. |

!!! warning Two labels
The tag is set right after the return is created in Plenty. An event procedure in Plenty that creates its own return label when a return is created does not see the tag yet – exclude the returns of the portal there in another way, otherwise your customer gets two labels.
!!!

If you cancel a return that is already in Plenty, cancel it in Plenty as well.

## Good to know / troubleshooting

- The customer page works without login and without cookies.
- To stop guessing, a visitor has to wait after 10 unsuccessful searches within 15 minutes.

| Message | Cause | Solution |
|---|---|---|
| The menu item **Return portal** is missing. | Your user lacks the permission. | Ask for the permission *Company Settings › Return portal*. |
| **The short name has 3 to 64 characters: lower-case letters, digits and hyphens. Some words (e.g. “admin”, “api”) are reserved.** | The short name is too short, contains other characters or is reserved. | Choose another short name. |
| **Another return portal already uses this short name. Please choose a different one.** | Another company already uses the short name. | Choose another short name. |
| **“…” is not a valid colour. Please enter it in the format #rrggbb.** | The colour is not a hex value. | Enter the colour as, for example, `#c8102e`. |
| **“…” is not a valid shop address. Allowed are https addresses such as https://www.my-shop.com.** | The address has no https or contains a path. | Enter only `https://` and the name of the shop. |
| **“…” is not a valid email address. Please enter a single address such as service@my-shop.com.** | The field **Customer service email** holds a name, several addresses or a character such as `?` or `&`. | Enter exactly one address, for example `service@my-shop.com`. |
| **The logo may be 2 MB at most.** | The file is too large. | Reduce the size of the logo. |
| **This file type is not allowed. …** | The logo has another format, for example SVG. | Save the logo as PNG, JPG, WebP or GIF. |
| **The chosen image no longer exists in the Media Management. Please choose another one.** | The image was deleted, moved or renamed in the Media Management. | Click **Update** (*Aktualisieren*) in the dialog and choose an image. |
| The portal shows the name of the shop instead of the logo. | The image of the logo no longer exists in the Media Management, or **Show logo or shop name at the top** is off. | Choose the logo again on the tab **Appearance** and save. |
| *Order not found.* (customer page) | Number or name do not match, or the order belongs to another company. | Your customer uses the order number from the order confirmation and the last name of the delivery address. |
| *A return is only possible once the order has been shipped.* (customer page) | The order has not been sent yet. | Try again after shipping. |
| *Too many attempts. Please try again in a few minutes.* (customer page) | Too many unsuccessful searches in a short time. | Wait a few minutes. |
| *The return label could not be created automatically. …* (customer page) | The carrier did not return a label. The return is saved anyway. | Your customer searches the order again, the portal requests the label once more. Otherwise create the label under [Returns](/orders/returns.md) and send it to the customer. With a **Customer service email** your customer can write to you straight from the notice. |
| History of the order: *Plenty: … nicht alles vollständig angenommen zurück, Abschluss bitte von Hand in Plenty* | Items were missing in the parcel or rejected. | Check the return in Plenty and complete it by hand. |
| Telegram: *The label PDF of return … cannot be read.* | The label file is missing. | Check or create the label under [Returns](/orders/returns.md); the job tries again. |
| Telegram: *POST orders/…/documents/… -> HTTP 4xx* | Plenty refuses the document type. | Choose the other type under **Store label as**. |
