> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.omegatheme.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to connect with Shipway?

## Step 1: Obtain your API Key

The Shipway API uses Basic HTTP authentication. Use your Shipway **`Email`** as the username and **`License Key`** as the password. You can find your License Key as the password from,
**Shipway >Profile>Manage profile.**
The Authorization header is constructed as follows:
* Username (Email) and Password (License Key) are combined into a string "username:password".
* The resulting string is then encoded in base64.
PHP example:
$token = base64_encode("email:License key");
$authHeaderString = 'Authorization: Basic ' . $token;

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/imgv302p63ff78598-5e8c-4c3f-b1_mnnhqr.jpg)
**Once you generate a new Token, your old token will stop working immediately**
* Once you generate your token, it will be visible for 5 minutes and then will be hidden from view
* To protect your data, you’ll only be able to reveal your API token once.
* Copy and save your API token in a secure place.
 
**How can I test Shipway APIs?**
You can read API documentation by logging in to Shipway
Please refer to this article on [Client Developer Portal](https://apidocs.shipway.com/#intro)

## Step 2: Connecting Your Account
Once you have your API Key:
* Log in to your Synctrack Returns dashboard.
* Navigate to the “Settings” section > “Logistics” tab
* Look for the Delhivery integration option and click “Connect” or “Set up”.
* You’ll be prompted to enter your API Key. Paste the key you received into this field.
* Click “Connect” to establish the connection.
![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_suenu8.png)
## Step 3: Configure Settings
After connecting:
* Set your default package sizes and types.
* Make sure method “Ship with pre-paid label” is enabled
![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_10icqhd.png)
## Step 4: Test the Connection
Before going live:
* Create a test return request on return page
* Choose “Ship pre-paid label” for return method (This method is only displayed on return page if you enable it in the app as the step above mentioned)
![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_14s3m05.png)
* Submit request
* Go into the app, open this request at tab “Return management”
* Click to approve the request & Select the appropriate shipping carrier if prompted.
![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1qg61am.png)
* Verify that the label is created correctly and contains accurate information.
| For more info of How to create and print return labels, [click here](https://help.omegatheme.com/en/article/create-and-print-return-labels-ddnoos/)
