← Gorgias

Update Ticket with Gorgias API

Pipedream makes it easy to connect APIs for Gorgias and 2,400+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Update Ticket with the Gorgias API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

Create a workflow to Update Ticket with the Gorgias API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Update Ticket action
    1. Connect your Gorgias account
    2. Select a Ticket ID
    3. Optional- Select a Assignee Team ID
    4. Optional- Select a User ID
    5. Optional- Select a Channel
    6. Optional- Configure Closed Datetime
    7. Optional- Select a Customer ID
    8. Optional- Configure Customer Email
    9. Optional- Configure External ID
    10. Optional- Configure From Agent
    11. Optional- Configure Is Unread
    12. Optional- Select a Language
    13. Optional- Configure Spam
    14. Optional- Select a Status
    15. Optional- Configure Subject
    16. Optional- Configure Tags
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Update Ticket with Gorgias API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Gorgias
 
Try it
Update Ticket with Gorgias API on New Submission from Typeform API
Typeform + Gorgias
 
Try it
Update Ticket with Gorgias API on New Submission (Instant) from Jotform API
Jotform + Gorgias
 
Try it
Update Ticket with Gorgias API on New Scheduled Tasks from Pipedream API
Pipedream + Gorgias
 
Try it
Update Ticket with Gorgias API on New Download Counts from npm API
npm + Gorgias
 
Try it

Details

This is a pre-built, source-available component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Update Ticket on Gorgias
Description:Updates a predefined ticket in the Gorgias system. [See the documentation](https://developers.gorgias.com/reference/update-ticket)
Version:0.0.2
Key:gorgias_oauth-update-ticket

Code

import { parseObject } from "../../common/utils.mjs";
import gorgiasOauth from "../../gorgias_oauth.app.mjs";

export default {
  key: "gorgias_oauth-update-ticket",
  name: "Update Ticket",
  description: "Updates a predefined ticket in the Gorgias system. [See the documentation](https://developers.gorgias.com/reference/update-ticket)",
  version: "0.0.2",
  type: "action",
  props: {
    gorgiasOauth,
    ticketId: {
      propDefinition: [
        gorgiasOauth,
        "ticketId",
      ],
    },
    assigneeTeamId: {
      propDefinition: [
        gorgiasOauth,
        "assigneeTeamId",
      ],
      optional: true,
    },
    assigneeUserId: {
      propDefinition: [
        gorgiasOauth,
        "userId",
      ],
      optional: true,
    },
    channel: {
      propDefinition: [
        gorgiasOauth,
        "channel",
      ],
    },
    closedDatetime: {
      type: "string",
      label: "Closed Datetime",
      description: "When the ticket was closed (ISO 8601 format)",
      optional: true,
    },
    customerId: {
      propDefinition: [
        gorgiasOauth,
        "customerId",
      ],
      optional: true,
    },
    customerEmail: {
      type: "string",
      label: "Customer Email",
      description: "The email of the customer linked to the ticket",
      optional: true,
    },
    externalId: {
      propDefinition: [
        gorgiasOauth,
        "externalId",
      ],
    },
    fromAgent: {
      type: "boolean",
      label: "From Agent",
      description: "Whether the first message of the ticket was sent by your company to a customer, or the opposite",
      optional: true,
    },
    isUnread: {
      type: "boolean",
      label: "Is Unread",
      description: "Whether the ticket is unread for you",
      optional: true,
    },
    language: {
      propDefinition: [
        gorgiasOauth,
        "language",
      ],
    },
    spam: {
      type: "boolean",
      label: "Spam",
      description: "Whether the ticket is considered as spam or not",
      optional: true,
    },
    status: {
      type: "string",
      label: "Status",
      description: "The status of the ticket. Default: `open`",
      options: [
        "open",
        "closed",
      ],
      optional: true,
    },
    subject: {
      propDefinition: [
        gorgiasOauth,
        "subject",
      ],
      optional: true,
    },
    tags: {
      type: "string[]",
      label: "Tags",
      description: "Tags linked to the ticket",
      optional: true,
    },
  },
  async run({ $ }) {
    const response = await this.gorgiasOauth.updateTicket({
      $,
      ticketId: this.ticketId,
      data: {
        assignee_team: this.assigneeTeamId
          ? {
            id: this.assigneeTeamId,
          }
          : undefined,
        assignee_user: this.assigneeUserId
          ? {
            id: this.assigneeUserId,
          }
          : undefined,
        channel: this.channel,
        closed_datetime: this.closedDatetime,
        customer: this.customerId
          ? {
            id: this.customerId,
            email: this.customerEmail,
          }
          : undefined,
        external_id: this.externalId,
        from_agent: this.fromAgent,
        is_unread: this.isUnread,
        language: this.language,
        spam: this.spam,
        status: this.status,
        subject: this.subject,
        tags: this.tags
          ? parseObject(this.tags)?.map((tag) => ({
            name: tag,
          }))
          : undefined,
      },
    });

    $.export("$summary", `Successfully updated ticket with ID ${this.ticketId}`);
    return response;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
GorgiasgorgiasOauthappThis component uses the Gorgias app.
Ticket IDticketIdintegerSelect a value from the drop down menu.
Assignee Team IDassigneeTeamIdintegerSelect a value from the drop down menu.
User IDassigneeUserIdintegerSelect a value from the drop down menu.
ChannelchannelstringSelect a value from the drop down menu:aircallapichatemailfacebookfacebook-mentionfacebook-messengerfacebook-recommendationshelp-centerinstagram-ad-commentinstagram-commentinstagram-mentioninstagram-direct-messageinternal-notephonesmstwittertwitter-direct-messageyotpo-review
Closed DatetimeclosedDatetimestring

When the ticket was closed (ISO 8601 format)

Customer IDcustomerIdintegerSelect a value from the drop down menu.
Customer EmailcustomerEmailstring

The email of the customer linked to the ticket

External IDexternalIdstring

ID of the customer in a foreign system. This field is not used by Gorgias

From AgentfromAgentboolean

Whether the first message of the ticket was sent by your company to a customer, or the opposite

Is UnreadisUnreadboolean

Whether the ticket is unread for you

LanguagelanguagestringSelect a value from the drop down menu:{ "label": "Abkhazian", "value": "ab" }{ "label": "Afar", "value": "aa" }{ "label": "Afrikaans", "value": "af" }{ "label": "Akan", "value": "ak" }{ "label": "Albanian", "value": "sq" }{ "label": "Amharic", "value": "am" }{ "label": "Arabic", "value": "ar" }{ "label": "Aragonese", "value": "an" }{ "label": "Armenian", "value": "hy" }{ "label": "Assamese", "value": "as" }{ "label": "Avaric", "value": "av" }{ "label": "Avestan", "value": "ae" }{ "label": "Aymara", "value": "ay" }{ "label": "Azerbaijani", "value": "az" }{ "label": "Bambara", "value": "bm" }{ "label": "Bashkir", "value": "ba" }{ "label": "Basque", "value": "eu" }{ "label": "Belarusian", "value": "be" }{ "label": "Bengali", "value": "bn" }{ "label": "Bislama", "value": "bi" }{ "label": "Bosnian", "value": "bs" }{ "label": "Breton", "value": "br" }{ "label": "Bulgarian", "value": "bg" }{ "label": "Burmese", "value": "my" }{ "label": "Catalan, Valencian", "value": "ca" }{ "label": "Chamorro", "value": "ch" }{ "label": "Chechen", "value": "ce" }{ "label": "Chichewa, Chewa, Nyanja", "value": "ny" }{ "label": "Chinese", "value": "zh" }{ "label": "Church Slavic, Old Slavonic, Church Slavonic, Old Bulgarian, Old Church Slavonic", "value": "cu" }{ "label": "Chuvash", "value": "cv" }{ "label": "Cornish", "value": "kw" }{ "label": "Corsican", "value": "co" }{ "label": "Cree", "value": "cr" }{ "label": "Croatian", "value": "hr" }{ "label": "Czech", "value": "cs" }{ "label": "Danish", "value": "da" }{ "label": "Divehi, Dhivehi, Maldivian", "value": "dv" }{ "label": "Dutch, Flemish", "value": "nl" }{ "label": "Dzongkha", "value": "dz" }{ "label": "English", "value": "en" }{ "label": "Esperanto", "value": "eo" }{ "label": "Estonian", "value": "et" }{ "label": "Ewe", "value": "ee" }{ "label": "Faroese", "value": "fo" }{ "label": "Fijian", "value": "fj" }{ "label": "Finnish", "value": "fi" }{ "label": "French", "value": "fr" }{ "label": "Western Frisian", "value": "fy" }{ "label": "Fulah", "value": "ff" }{ "label": "Gaelic, Scottish Gaelic", "value": "gd" }{ "label": "Galician", "value": "gl" }{ "label": "Ganda", "value": "lg" }{ "label": "Georgian", "value": "ka" }{ "label": "German", "value": "de" }{ "label": "Greek, Modern(1453–)", "value": "el" }{ "label": "Kalaallisut, Greenlandic", "value": "kl" }{ "label": "Guarani", "value": "gn" }{ "label": "Gujarati", "value": "gu" }{ "label": "Haitian, Haitian Creole", "value": "ht" }{ "label": "Hausa", "value": "ha" }{ "label": "Hebrew", "value": "he" }{ "label": "Herero", "value": "hz" }{ "label": "Hindi", "value": "hi" }{ "label": "Hiri Motu", "value": "ho" }{ "label": "Hungarian", "value": "hu" }{ "label": "Icelandic", "value": "is" }{ "label": "Ido", "value": "io" }{ "label": "Igbo", "value": "ig" }{ "label": "Indonesian", "value": "id" }{ "label": "Interlingua(International Auxiliary Language Association)", "value": "ia" }{ "label": "Interlingue, Occidental", "value": "ie" }{ "label": "Inuktitut", "value": "iu" }{ "label": "Inupiaq", "value": "ik" }{ "label": "Irish", "value": "ga" }{ "label": "Italian", "value": "it" }{ "label": "Japanese", "value": "ja" }{ "label": "Javanese", "value": "jv" }{ "label": "Kannada", "value": "kn" }{ "label": "Kanuri", "value": "kr" }{ "label": "Kashmiri", "value": "ks" }{ "label": "Kazakh", "value": "kk" }{ "label": "Central Khmer", "value": "km" }{ "label": "Kikuyu, Gikuyu", "value": "ki" }{ "label": "Kinyarwanda", "value": "rw" }{ "label": "Kirghiz, Kyrgyz", "value": "ky" }{ "label": "Komi", "value": "kv" }{ "label": "Kongo", "value": "kg" }{ "label": "Korean", "value": "ko" }{ "label": "Kuanyama, Kwanyama", "value": "kj" }{ "label": "Kurdish", "value": "ku" }{ "label": "Lao", "value": "lo" }{ "label": "Latin", "value": "la" }{ "label": "Latvian", "value": "lv" }{ "label": "Limburgan, Limburger, Limburgish", "value": "li" }{ "label": "Lingala", "value": "ln" }{ "label": "Lithuanian", "value": "lt" }{ "label": "Luba - Katanga", "value": "lu" }{ "label": "Luxembourgish, Letzeburgesch", "value": "lb" }{ "label": "Macedonian", "value": "mk" }{ "label": "Malagasy", "value": "mg" }{ "label": "Malay", "value": "ms" }{ "label": "Malayalam", "value": "ml" }{ "label": "Maltese", "value": "mt" }{ "label": "Manx", "value": "gv" }{ "label": "Maori", "value": "mi" }{ "label": "Marathi", "value": "mr" }{ "label": "Marshallese", "value": "mh" }{ "label": "Mongolian", "value": "mn" }{ "label": "Nauru", "value": "na" }{ "label": "Navajo, Navaho", "value": "nv" }{ "label": "North Ndebele", "value": "nd" }{ "label": "South Ndebele", "value": "nr" }{ "label": "Ndonga", "value": "ng" }{ "label": "Nepali", "value": "ne" }{ "label": "Norwegian", "value": "no" }{ "label": "Norwegian Bokmål", "value": "nb" }{ "label": "Norwegian Nynorsk", "value": "nn" }{ "label": "Sichuan Yi, Nuosu", "value": "ii" }{ "label": "Occitan", "value": "oc" }{ "label": "Ojibwa", "value": "oj" }{ "label": "Oriya", "value": "or" }{ "label": "Oromo", "value": "om" }{ "label": "Ossetian, Ossetic", "value": "os" }{ "label": "Pali", "value": "pi" }{ "label": "Pashto, Pushto", "value": "ps" }{ "label": "Persian", "value": "fa" }{ "label": "Polish", "value": "pl" }{ "label": "Portuguese", "value": "pt" }{ "label": "Punjabi, Panjabi", "value": "pa" }{ "label": "Quechua", "value": "qu" }{ "label": "Romanian, Moldavian, Moldovan", "value": "ro" }{ "label": "Romansh", "value": "rm" }{ "label": "Rundi", "value": "rn" }{ "label": "Russian", "value": "ru" }{ "label": "Northern Sami", "value": "se" }{ "label": "Samoan", "value": "sm" }{ "label": "Sango", "value": "sg" }{ "label": "Sanskrit", "value": "sa" }{ "label": "Sardinian", "value": "sc" }{ "label": "Serbian", "value": "sr" }{ "label": "Shona", "value": "sn" }{ "label": "Sindhi", "value": "sd" }{ "label": "Sinhala, Sinhalese", "value": "si" }{ "label": "Slovak", "value": "sk" }{ "label": "Slovenian", "value": "sl" }{ "label": "Somali", "value": "so" }{ "label": "Southern Sotho", "value": "st" }{ "label": "Spanish, Castilian", "value": "es" }{ "label": "Sundanese", "value": "su" }{ "label": "Swahili", "value": "sw" }{ "label": "Swati", "value": "ss" }{ "label": "Swedish", "value": "sv" }{ "label": "Tagalog", "value": "tl" }{ "label": "Tahitian", "value": "ty" }{ "label": "Tajik", "value": "tg" }{ "label": "Tamil", "value": "ta" }{ "label": "Tatar", "value": "tt" }{ "label": "Telugu", "value": "te" }{ "label": "Thai", "value": "th" }{ "label": "Tibetan", "value": "bo" }{ "label": "Tigrinya", "value": "ti" }{ "label": "Tonga(Tonga Islands)", "value": "to" }{ "label": "Tsonga", "value": "ts" }{ "label": "Tswana", "value": "tn" }{ "label": "Turkish", "value": "tr" }{ "label": "Turkmen", "value": "tk" }{ "label": "Twi", "value": "tw" }{ "label": "Uighur, Uyghur", "value": "ug" }{ "label": "Ukrainian", "value": "uk" }{ "label": "Urdu", "value": "ur" }{ "label": "Uzbek", "value": "uz" }{ "label": "Venda", "value": "ve" }{ "label": "Vietnamese", "value": "vi" }{ "label": "Volapük", "value": "vo" }{ "label": "Walloon", "value": "wa" }{ "label": "Welsh", "value": "cy" }{ "label": "Wolof", "value": "wo" }{ "label": "Xhosa", "value": "xh" }{ "label": "Yiddish", "value": "yi" }{ "label": "Yoruba", "value": "yo" }{ "label": "Zhuang, Chuang", "value": "za" }{ "label": "Zulu", "value": "zu" }
Spamspamboolean

Whether the ticket is considered as spam or not

StatusstatusstringSelect a value from the drop down menu:openclosed
Subjectsubjectstring

The subject of the ticket

Tagstagsstring[]

Tags linked to the ticket

Authentication

Gorgias uses OAuth authentication. When you connect your Gorgias account, Pipedream will open a popup window where you can sign into Gorgias and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Gorgias API.

Pipedream requests the following authorization scopes when you connect your account:

openidemailprofileofflinewrite:all

About Gorgias

Gorgias is the ecommerce helpdesk that turns your customer service into a profit center.

More Ways to Use Gorgias

Triggers

New Ticket from the Gorgias API

Emit new event when a ticket is created. See the documentation

 
Try it
New Ticket Message from the Gorgias API

Emit new event when a ticket message is created. See the documentation

 
Try it
New Updated Ticket from the Gorgias API

Emit new event when a ticket is updated. See the documentation

 
Try it

Actions

Create Customer with the Gorgias API

Create a new customer. See the docs

 
Try it
Create Ticket with the Gorgias API

Create a new ticket. See the docs

 
Try it
List Tickets with the Gorgias API

List all tickets. See the docs

 
Try it
Retrieve a Customer with the Gorgias API

Retrieve a customer. See the docs

 
Try it
Update Customer with the Gorgias API

Update a customer. See the docs

 
Try it

Explore Other Apps

1
-
24
of
2,400+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Premium
Salesforce
Salesforce
Web services API for interacting with Salesforce
Premium
HubSpot
HubSpot
HubSpot's CRM platform contains the marketing, sales, service, operations, and website-building software you need to grow your business.
Premium
Zoho CRM
Zoho CRM
Zoho CRM is an online Sales CRM software that manages your sales, marketing, and support in one CRM platform.
Premium
Stripe
Stripe
Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Premium
WooCommerce
WooCommerce
WooCommerce is the open-source ecommerce platform for WordPress.
Premium
Snowflake
Snowflake
A data warehouse built for the cloud
Premium
MongoDB
MongoDB
MongoDB is an open source NoSQL database management program.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.