Purpose: This article explains how to connect Sendcloud to Freshdesk, automatically create support tickets based on shipment events, and automate customer communication using shipment information.
By connecting Freshdesk to Sendcloud, your customer support team can proactively manage delivery exceptions without having to manually monitor individual shipments. Sendcloud automatically creates tickets containing relevant shipment details, allowing you to handle delivery issues manually or automate communication with your customers.
Before you get started
- Make sure you have an active Freshdesk account.
- Make sure you have access to the CRM settings in your Sendcloud account.
- For general information about connecting and managing CRM integrations, see Set up your CRM integration.
How to set up your Freshdesk integration
Follow the steps below to connect your Freshdesk account, configure which shipment events create tickets, and set up automations to communicate with your customers.
Step 1 Connect Sendcloud to Freshdesk
First, connect your Freshdesk account to Sendcloud.
- In your Sendcloud panel, go to Settings > Support automation > CRM settings.
- Select Freshdesk and follow the connection instructions.
For more information about connecting and managing CRM integrations, see Set up your CRM integration.
Step 2 Configure custom fields
By default, Sendcloud includes shipment details as plain text in each Freshdesk ticket. While your support team can read this information, Freshdesk cannot automatically use individual shipment details in templates or automations.
Custom fields allow you to map specific shipment information from Sendcloud, such as a tracking number, tracking URL or order number, to individual ticket fields in Freshdesk.
Once mapped, these fields can be used as dynamic placeholders in your Freshdesk email templates and automations, for example {{ticket.cf_tracking_url}}.
Examples: Tickets with and without mapped custom fields
|
Without mapped custom fields Shipment information is included as plain text in the ticket, but the individual custom fields remain empty. |
With mapped custom fields Sendcloud automatically populates the mapped fields with the corresponding shipment information. These values can then be used in your templates and automations. |
![]() |
![]() |
Create custom fields in Freshdesk
- Log in to your Freshdesk account.
- Go to Admin > Ticket Fields.
- Create the custom fields for the shipment information you want to receive from Sendcloud.
Map your custom fields in Sendcloud
- In your Sendcloud panel, go to Settings > Support automation > CRM settings.
- Open your Freshdesk integration settings.
- Under Custom fields, select the field type you want to map, such as Tracking Number, Tracking URL, or Order Number.
- In the External ID field, enter the corresponding Freshdesk field ID, for example
cf_tracking_url. - Click Add another custom field to map additional shipment information.
- Click Save.

Where can I find the Freshdesk External ID?
The External ID identifies the custom field in Freshdesk and allows Sendcloud to send information to the correct ticket field.
- Open a ticket in Freshdesk.
- Locate the relevant custom field in the right-hand panel.
- Right-click the field and select Inspect to open your browser's developer tools.
- In the highlighted input element, look for the field name containing
customFields. - Identify the field ID following
customFields, for examplecf_tracking_url. - Copy this ID into the External ID field in your Sendcloud CRM settings.
{{ticket.cf_tracking_url}} in your Freshdesk email templates to automatically include the tracking link for the relevant shipment.Step 3 Configure delivery event filters
Delivery event filters determine which shipments trigger the creation of a Freshdesk ticket.
By creating filter groups, you can control which shipment events are sent to Freshdesk and focus your customer support efforts on the delivery situations that are most relevant to your business.
A filter group can combine conditions based on:
- Carrier
- Origin country
- Destination country
- Exception type
A shipment must match the conditions configured within a filter group to be included.
Configure your filter groups
- In your Sendcloud panel, go to Settings > Support automation > CRM settings.
- Open the configuration settings for your Freshdesk integration.
- Create a filter group and give it a descriptive name.
- Select the filter conditions that determine which shipments should create a ticket.
- Enable the Active toggle to activate the filter group.
- Save your changes.
You can activate or deactivate individual filter groups at any time, or delete groups you no longer need.
Default filters
You don't need to create a filter group to start receiving Freshdesk tickets. If no filter groups are active, Sendcloud automatically applies the following default filters:
| Filter | Default value |
|---|---|
| Carrier | All |
| Origin country | All |
| Destination country | All |
| Exception |
|
| Phase | All |
| Sub status | All |
Step 4 Set up automations in Freshdesk
Once your integration is configured, Sendcloud automatically creates a Freshdesk ticket for shipments that match your configured filters. Each ticket contains relevant shipment and exception details.
You can leave these tickets open for your support team to handle manually, or configure automations in Freshdesk to automatically communicate with your customers.
How Sendcloud tags work
Sendcloud adds tags to the tickets it creates in Freshdesk. These tags allow Freshdesk to identify shipment information and trigger automation rules based on specific conditions.
How are Sendcloud tags built?
Sendcloud tags follow this structure:
sc_<type>_<value>
The type identifies the kind of shipment information the tag represents, while the value identifies the specific information associated with that ticket.
Tag values are lowercase, with underscores separating individual words.
| Type | Value | Example tag |
|---|---|---|
carrier |
The carrier code, for example dhl or bpost. |
sc_carrier_dhl |
exception |
The shipment exception that triggered the ticket, for example returned_to_sender. |
sc_exception_returned_to_sender |
phase |
The shipment phase, for example none. |
sc_phase_none |
customer_country |
A two-letter country code, for example nl or be. |
sc_customer_country_nl |
Example: Combine multiple tags in an automation rule
To send a specific message when a DHL parcel is returned to the sender, configure your automation rule to match both of the following conditions:
-
Tags contain:
sc_carrier_dhl -
Tags contain:
sc_exception_returned_to_sender
Make sure the rule requires both conditions to be met so that it only applies to DHL shipments that are returned to the sender.
Create an automation rule
- In Freshdesk, go to Settings > Automations.
- Click New Rule.
-
Add a Tags contain condition using the Sendcloud tag that should trigger the automation, following the format
sc_<type>_<value>.You can combine multiple tag conditions to target specific shipment exceptions, carriers or customer countries.

- Choose the action Freshdesk should perform when the conditions are met, such as sending a reply to the customer. Configure your email subject and message, including any relevant custom field placeholders.
- Click Save.

Personalise automated messages
You can use the custom fields you mapped in Step 2 to personalise your automated messages with shipment-specific information, such as the customer's tracking number, tracking link or order number.
For example, use the placeholder {{ticket.cf_tracking_url}} to automatically include the tracking link associated with the shipment.
The placeholders you use depend on the External IDs of the custom fields you created and mapped in your Freshdesk integration.
Example: Send an automated pickup reminder
The following example shows how you can remind a customer to collect their parcel before the pickup period expires.
Subject: Your parcel with tracking number {{ticket.cf_return}} is ready for pickup!
Dear {{ticket.contact.firstname}},
Your parcel with tracking number {{ticket.cf_return}} has not yet been collected from the pickup point.
Your parcel is still waiting for you, but the pickup period will expire soon. We recommend collecting it as soon as possible to prevent it from being returned to the sender.
You can check the current status of your shipment and the pickup point details using the tracking link below:
{{ticket.cf_tracking_url}}
If you have already collected your parcel, please disregard this email.
Kind regards,
Your customer support team
cf_return is the External ID of the custom field mapped to the Sendcloud tracking number. Your External IDs may be different. Replace the example placeholders with the ones corresponding to your own Freshdesk custom fields.Step 5 Test your integration (optional)
Before you start using your Freshdesk integration, you can create a test ticket through the Sendcloud API to verify that your connection, custom fields and automation rules work as expected.
Good to know:
- The test request creates a real ticket in your Freshdesk account.
- Your configured filter groups are bypassed, so the test ticket is created regardless of your filter conditions, provided the request and connection are valid.
- The ticket contains simulated shipment data, so you don't need a real shipment to test your configuration.
Send a test request
Send a POST request to the following endpoint:
https://panel.sendcloud.sc/api/v3/support-integrations/tickets/test/{connection_id}
Replace {connection_id} with the ID of your Freshdesk connection. You can find this ID in the URL when accessing your connection through Settings > Support automation > CRM settings.
Use Basic authentication with your Sendcloud API public key as the username and your secret key as the password.
Optional request body
If you send the request without a body, Sendcloud uses default test values. Alternatively, you can customise the test ticket using the following fields:
| Field | Description |
|---|---|
phase |
The shipment phase. |
sub_status |
The shipment sub status. |
exception |
The shipment exception that triggers the ticket. |
carrier_code |
The carrier code, for example dhl. |
customer_email |
The email address of the ticket requester. |
Example API request
curl -X POST "https://panel.sendcloud.sc/api/v3/support-integrations/tickets/test/{connection_id}" \
-u "PUBLIC_KEY:SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"carrier_code": "dhl",
"customer_email": "your.name@yourcompany.com"
}'
Replace PUBLIC_KEY, SECRET_KEY and {connection_id} with your own values.
customer_email value when testing. Otherwise, the ticket requester uses a placeholder email address and your automation rule cannot send you a real email.Check the result
A successful response contains "success": true and the Freshdesk ticket ID in the external_ticket_id field.
Open the corresponding ticket in Freshdesk and verify that:
- The ticket contains the expected shipment information.
- Your mapped custom fields, such as the tracking number and tracking link, are populated.
- The ticket contains the expected Sendcloud tags, for example
sc_carrier_dhl. - Your automation rule has sent an email to the requester, if configured to do so and the test ticket matches the rule's conditions.
If the response indicates that Sendcloud rejected the credentials, check your Freshdesk connection settings under Settings > Support automation > CRM settings.
Troubleshooting
If your Freshdesk integration isn't working as expected, check the following common issues and solutions.
No tickets are appearing in Freshdesk
Check the following:
- Your Freshdesk account is connected to Sendcloud.
- If you have active filter groups, the shipment event matches the conditions of an active filter group.
- If no filter groups are active, the shipment exception matches one of the default exceptions: damaged, address error or missing.
You can also create a test ticket through the API to verify that your connection is working independently of your configured filters.
I'm not receiving tickets for certain shipment exceptions
Check whether you have an active filter group that includes the relevant shipment exception.
If no filter groups are active, Sendcloud only creates tickets for the following exceptions:
- Damaged (
damaged) - Address error (
address_error) - Missing (
missing)
To receive tickets for other exceptions, create and activate a filter group that includes them.
My Freshdesk custom fields are empty
Check the following:
- The corresponding custom fields exist in Freshdesk.
- You selected the correct field type in your Sendcloud CRM settings.
- The External ID entered in Sendcloud matches the corresponding Freshdesk custom field ID.
- Your custom field configuration has been saved.
After checking your configuration, create a new test ticket to verify that the fields are populated.
My Freshdesk automation rule is not triggering
Check the following in Freshdesk:
- The automation rule has been saved and is enabled.
- The ticket contains the Sendcloud tags used in your automation rule.
- The Tags contain conditions use the correct Sendcloud tags.
- If your automation rule requires multiple conditions to be met, the ticket matches all the required conditions.
- The automation action is configured correctly.
- If the action sends an email, the ticket requester has a valid email address.
customer_email field to verify that your automation sends the expected message. You can also customise the test request so that the generated ticket matches your automation rule's conditions.My automated messages are missing shipment information
Make sure the shipment information is mapped to the correct custom fields in Sendcloud and that these fields are populated in the Freshdesk ticket.
Check that your email template uses the correct Freshdesk placeholders. For example, if your tracking URL field has the External ID cf_tracking_url, use:
{{ticket.cf_tracking_url}}
If your custom field has a different External ID, use the placeholder corresponding to that field instead.
My test ticket could not be created
Check the following:
- You are using the correct Freshdesk connection ID in the API endpoint.
- Your Sendcloud API public key and secret key are correct.
- You are using Basic authentication.
- Your Freshdesk connection settings are correct in Sendcloud.
If the response indicates that Sendcloud rejected the credentials, review your Freshdesk connection under Settings > Support automation > CRM settings.

