parcelLab Gorgias Integration Guide
This tutorial describes how to build a widget in Gorgias to display order and tracking data from parcelLab.
Overview
With the parcelLab Gorgias integration, your customer service agents can access order and tracking data from parcelLab directly in tickets within Gorgias. The widget can be configured to display the most important order information needed to resolve customer service inquiries.
In this tutorial, you will learn:
how to create a HTTP integration that connects Gorgias and parcelLab
how to create a widget in Gorgias that displays data from parcelLab in your helpdesk tickets.
Requirements
Before you start, ensure the following prerequisites are met:
Gorgias
Access to create HTTP Integrations (that is: Admin user role)
REST API access
Credentials required: username (email address of your Gorgias account) and password (API key)
parcelLab
Account tracking data enabled
API access
Credentials required: parcelLab account ID and API token with
read
scope
Configuring the parcelLab Gorgias Integration
Create a widget to display order data from parcelLab
After creating the integration, you can proceed to creating the widget. The widget will display in the ticket sidebar on the right-hand side.

To create a widget, you will need to send a POST request to the Gorgias API at https://your-domain.gorgias.com/api/widgets.
Replace the variables in the JSON body with the actual values:
integration_id
: the ID for the integration you created in the previous step.
Alternatively, you can use the following cURL example and replace the variables for your actual values.
{
"context": "ticket",
"deactivated_datetime": null,
"integration_id": ### INTEGRATION ID ###,
"app_id": null,
"order": 0,
"template": {
"type": "wrapper",
"widgets": [
{
"meta": {
"link": "",
"color": "",
"pictureUrl": "https://config.gorgias.io/production/3RBN0xMVVqb649GJ/widget/59c27126-f8b0-472f-9678-2e00c138e201.jpg",
"displayCard": true
},
"path": "",
"type": "card",
"title": "{{title}}",
"widgets": [
{
"meta": {
"limit": 3,
"orderBy": ""
},
"path": "orders",
"type": "list",
"widgets": [
{
"meta": {
"link": "",
"color": "",
"pictureUrl": "https://config.gorgias.io/production/3RBN0xMVVqb649GJ/widget/9d1cb488-fd23-49ae-9840-92774ce0ea10.jpg",
"displayCard": true
},
"type": "card",
"title": "{{title}}",
"widgets": [
{
"meta": {
"limit": 3,
"orderBy": ""
},
"path": "outboundTrackings",
"type": "list",
"order": 0,
"widgets": [
{
"meta": {
"link": "",
"color": "",
"pictureUrl": "",
"displayCard": true
},
"type": "card",
"title": "{{name}}",
"widgets": [
{
"path": "address",
"type": "text",
"title": "Address"
},
{
"path": "status",
"type": "text",
"title": "Status"
},
{
"path": "statusTime",
"type": "date",
"title": "Status time"
},
{
"path": "checkpoints",
"type": "list",
"widgets": [
{
"type": "card",
"title": "{{status_details}}",
"widgets": [
{
"path": "city",
"type": "text",
"title": "City"
},
{
"path": "country",
"type": "text",
"title": "Country"
},
{
"path": "event_timestamp",
"type": "date",
"title": "Event timestamp"
},
{
"path": "status",
"type": "text",
"title": "Code"
},
{
"path": "status_details",
"type": "text",
"title": "Status details"
},
{
"path": "matching",
"type": "card",
"title": "Matching",
"widgets": [
{
"path": "DeliveryStatus",
"type": "text",
"order": 0,
"title": "Status"
},
{
"path": "DeliveryLocation",
"type": "text",
"order": 1,
"title": " delivery location"
}
]
}
]
}
]
}
]
}
]
},
{
"meta": {
"limit": 3,
"orderBy": ""
},
"path": "returnTrackings",
"type": "list",
"order": 1,
"widgets": [
{
"meta": {
"link": "",
"color": "",
"pictureUrl": "",
"displayCard": true
},
"type": "card",
"title": "{{name}}",
"widgets": [
{
"path": "address",
"type": "text",
"title": "Address"
},
{
"path": "status",
"type": "text",
"title": "Status"
},
{
"path": "statusTime",
"type": "date",
"title": "Status time"
},
{
"meta": {
"limit": 3,
"orderBy": ""
},
"path": "articles",
"type": "list",
"widgets": [
{
"meta": {
"link": "",
"color": "",
"pictureUrl": "",
"displayCard": true
},
"type": "card",
"title": "{{articleName}}",
"widgets": [
{
"path": "articleNo",
"type": "text",
"title": "Article no"
},
{
"path": "quantity",
"type": "text",
"title": "Quantity"
},
{
"path": "returnable",
"type": "boolean",
"title": "Returnable"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
"type": "http"
}
If you receive a 201 CREATED
success message, the widget is created and visible in Gorgias.
Last updated
Was this helpful?