Purpose: This article explains how to connect Sendcloud to Zendesk, automatically create support tickets based on shipment events, and automate customer communication using shipment information.
By connecting Zendesk 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 Zendesk 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 Zendesk integration
Follow the steps below to connect your Zendesk account, configure which shipment events create tickets, map shipment information to Zendesk ticket fields, and set up triggers to automatically communicate with your customers.
Step 1 Connect Sendcloud to Zendesk
First, connect your Zendesk account to Sendcloud. The integration uses OAuth authentication to establish the connection between the two platforms.
- In your Sendcloud panel, go to Settings > Support automation > CRM settings.
- Select Zendesk and complete the connection process using OAuth authentication.
For general 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 Zendesk ticket. While your support team can read this information, Zendesk cannot automatically use individual shipment details in templates, automations or analytics.
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 Zendesk.
Once mapped, these fields can be used as dynamic placeholders in your Zendesk email templates. For example:
{{ticket.ticket_field_<FIELD_ID>}}
Replace <FIELD_ID> with the Field ID of the corresponding Zendesk custom field.
Example of a Zendesk ticket with mapped custom fields
The example below shows a Sendcloud test ticket in Zendesk. The tracking number, order number and tracking link are populated in the corresponding custom fields, while the complete shipment details are also included in the ticket.

Create custom fields in Zendesk
- Log in to your Zendesk account.
- In the Admin Center, go to Objects and rules > Tickets > 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 Zendesk 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 Zendesk Field ID, for example
27727853601425. - Click Add another custom field to map additional shipment information.
- Click Save.

Where can I find the Zendesk External ID?
The External ID identifies the custom field in Zendesk and allows Sendcloud to send information to the correct ticket field.
- In Zendesk, open the Admin Center.
- Go to Objects and rules > Tickets > Fields.
- Locate the custom field you want to map.
- Copy the corresponding ID from the Field ID column.
- Enter this ID in the External ID field in your Sendcloud CRM settings.
Add your custom fields to the ticket form
Make sure every custom field you map in Sendcloud is also included in the Zendesk ticket form used for Sendcloud exception tickets.
If a mapped field isn't included in the ticket form, it cannot be filled and its value won't appear on the ticket.
If you want to use a dedicated ticket form for Sendcloud tickets, see Step 5 below.
{{ticket.ticket_field_27727853601425}} in your Zendesk email templates. Replace the example ID with the Field ID of the custom field you want to include.Step 3 Configure delivery event filters
Delivery event filters determine which shipments trigger the creation of a Zendesk ticket.
By creating filter groups, you can control which shipment events are sent to Zendesk 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 Zendesk 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 Zendesk 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 triggers in Zendesk
Once your integration is configured, Sendcloud automatically creates a Zendesk 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 triggers in Zendesk to automatically communicate with your customers.
A trigger checks the tags Sendcloud adds to each ticket and performs an action, such as sending an email to the customer, when the configured conditions are met.
How are Sendcloud tags built?
Sendcloud adds tags to the tickets it creates in Zendesk. These tags follow the structure:
sendcloud_<type>_<value>
The type identifies the kind of shipment information the tag describes, while the value represents the specific information associated with that ticket.
Values are written in lowercase, with underscores between words.
| Type | Value | Example tag |
|---|---|---|
carrier |
The carrier code, for example dhl or bpost. |
sendcloud_carrier_dhl |
exception |
The exception that triggered the ticket, for example returned_to_sender or pup_near_expiration. |
sendcloud_exception_returned_to_sender |
phase |
The shipment phase, for example none. |
sendcloud_phase_none |
customer_country |
A two-letter country code, for example nl or be. |
sendcloud_customer_country_nl |
Example: Send a message for a DHL parcel returned to sender
To send a specific message when a DHL parcel is returned to the sender, add the following tag conditions under Meet ALL of the following conditions in your Zendesk trigger:
- Tags contain
sendcloud_carrier_dhl. - Tags contain
sendcloud_exception_returned_to_sender.
Both tag conditions must be met for this trigger to perform the configured action.
Create a trigger
- In Zendesk, go to Admin Center > Objects and rules > Business rules > Triggers.
- Click Create trigger.
-
Under Conditions, in the Meet ALL of the following conditions section, add the following conditions:
- Ticket > Ticket: Is > Created.
- Ticket > Tags: Contains at least one of, followed by the relevant Sendcloud tag.
For example, to trigger an action when a ticket is created for an address error, use the tag
sendcloud_exception_address_error.
-
Under Actions, select the action Zendesk should perform when the conditions are met. For example, to send an email to the customer, select:
- Category: Notify by > User email
- Recipient: Ticket > (requester)
Enter your email subject and body, including any relevant custom field placeholders.

- Optional: If you want to use a different ticket form for Sendcloud tickets, click Add action and select Ticket form. For more information, see Step 5 below.
- Click Create.
Personalise automated messages
You can use the custom fields you mapped in Step 2 to personalise your automated messages with shipment-specific information.
For example, you can automatically include the customer's tracking number and tracking link using the following placeholder format:
{{ticket.ticket_field_<FIELD_ID>}}
Replace <FIELD_ID> with the actual Field ID of the custom field you want to include.
Example of an automated customer message
The following example shows how you can notify a customer when their parcel cannot be delivered due to an address error.
Subject: Your parcel couldn't be delivered
Hi {{ticket.requester.first_name}},
Unfortunately, your parcel couldn't be delivered due to an incorrect address.
Tracking number: {{ticket.ticket_field_TRACKING_NUMBER_FIELD_ID}}
Track your parcel: {{ticket.ticket_field_TRACKING_URL_FIELD_ID}}
Please check the tracking link above for the latest delivery information and any available options to update your address details.
If you need further assistance, please reply to this email.
Kind regards,
{{ticket.brand.name}}
Before using this template, replace TRACKING_NUMBER_FIELD_ID and TRACKING_URL_FIELD_ID with the actual Field IDs of your mapped Zendesk custom fields.
Step 5 Use a different ticket form (optional)
By default, Sendcloud tickets arrive in Zendesk using your default ticket form.
If you want your support agents to see shipment information on a different ticket form, you can configure a Zendesk trigger to assign a dedicated form to Sendcloud tickets.
For example, you could create a dedicated Shipment ticket form containing the fields your agents need to handle shipping questions, such as:
- Track & Trace code
- Tracking link
- Order number
Tickets about other topics, such as refunds or product complaints, can continue to use your existing ticket forms without displaying unnecessary shipment fields.
Assign a different ticket form
- In Zendesk, go to Admin Center > Objects and rules > Business rules > Triggers.
- Open the trigger you configured for Sendcloud tickets in Step 4.
- Under Actions, click Add action.
- Select Ticket form.
- Select the ticket form you want to use for Sendcloud tickets.
- Save your changes.
Step 6 Test your integration (optional)
Before you start using your Zendesk integration, you can create a test ticket through the Sendcloud API to verify that your connection, custom fields, ticket form and triggers work as expected.
Good to know:
- The test request creates a real ticket in your Zendesk account.
- Your configured filter groups are bypassed, so the test request doesn't need to match your filter conditions.
- 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 Zendesk connection. You can find this ID in the URL when accessing your connection through Settings > Support automation > CRM settings in Sendcloud.
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 trigger cannot send you a real email. Make sure the test values also match the conditions of the Zendesk trigger you want to test.Check the result
A successful response contains "success": true and the Zendesk ticket ID in the external_ticket_id field.
Open the corresponding ticket in Zendesk and verify that:
- The ticket contains the expected shipment information.
- Your mapped custom fields, such as the Track & Trace code and tracking link, are populated.
- The ticket contains the expected Sendcloud tags, for example
sendcloud_carrier_dhl. - The correct ticket form is assigned, if you configured a different form in your trigger.
- Your trigger has sent an email to the requester, if configured to do so.
If the response indicates that Sendcloud rejected the credentials, check your Zendesk connection settings under Settings > Support automation > CRM settings.
Troubleshooting
If your Zendesk integration isn't working as expected, check the following common issues and solutions.
No tickets are appearing in Zendesk
Check the following:
- Your Zendesk 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.
- All required fields on the ticket form used to create Sendcloud tickets are mapped to Sendcloud values.
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 Zendesk custom fields are empty
Check the following:
- The corresponding custom fields exist in Zendesk.
- You selected the correct field type in your Sendcloud CRM settings.
- The External ID entered in Sendcloud matches the corresponding Zendesk Field ID.
- Every mapped custom field is included in the ticket form used for Sendcloud tickets.
- Your custom field configuration has been saved.
To verify your Zendesk Field IDs, go to Admin Center > Objects and rules > Tickets > Fields and check the Field ID column.
After checking your configuration, create a new test ticket to verify that the fields are populated.
My Zendesk trigger is not firing
Check the following in Zendesk:
- The trigger has been created and is active.
- The trigger includes the condition Ticket > Is > Created.
- The ticket contains the Sendcloud tags used in your trigger conditions.
- The tag conditions use the correct values, including the
sendcloud_prefix. - All required trigger conditions are met.
- The trigger action is configured correctly.
- If the action sends an email, the ticket requester has a valid email address.
customer_email field and use test values that match your trigger conditions. This allows you to verify that the trigger sends the expected message.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 Zendesk ticket.
Check that your email template uses the correct Zendesk placeholder format:
{{ticket.ticket_field_<FIELD_ID>}}
Replace <FIELD_ID> with the actual Field ID of the Zendesk custom field.
For example, if the Field ID of your custom field is 27727853601425, the corresponding placeholder is:
{{ticket.ticket_field_27727853601425}}
Make sure the mapped field is also included in the ticket form used for Sendcloud tickets.
Sendcloud tickets are using the wrong ticket form
By default, Sendcloud tickets arrive in Zendesk using your default ticket form.
If you configured a different ticket form, check the following:
- The Zendesk trigger includes the Ticket form action.
- The correct ticket form is selected in the trigger action.
- The ticket matches the conditions of the trigger that assigns the form.
- All mapped custom fields are included in the selected ticket form.
For more information, see Step 5 above.
My test ticket could not be created
Check the following:
- You are using the correct Zendesk connection ID in the API endpoint.
- Your Sendcloud API public key and secret key are correct.
- You are using Basic authentication.
- Your Zendesk connection settings are correct in Sendcloud.
- All required fields on the ticket form used to create Sendcloud tickets are mapped or configured as optional.
If the response indicates that Sendcloud rejected the credentials, review your Zendesk connection under Settings > Support automation > CRM settings.