Get customer history

Earlier tickets of a customer, with Shopify orders when a store is connected.

GET https://cotlet.dev/api/v1/gorgias/customer-history

read

Returns the tickets linked to the customer by contact email, newest first, and, for connected Shopify stores, the 10 most recent orders with number, status, date, total and item count. Use it before replying to see whether the customer wrote before.

Parameters

Parameters: get_customer_history
NameTypeDescription
ticket_id integer integer Ticket ID whose customer to look up. Use this or email.
email string string Customer email. Use this or ticket_id.

Request

cURL
curl https://cotlet.dev/api/v1/gorgias/customer-history \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("gorgias", "get_customer_history")
Node.js
const result = await cotlet.call('gorgias', 'get_customer_history');
CLI
cotlet call gorgias get_customer_history

Example response

JSON

{
  "customer": {
    "name": "Dana W.",
    "email": "dana@example.com"
  },
  "tickets": [
    {
      "ticket_id": 10311,
      "subject": "Wrong size",
      "status": "closed"
    }
  ],
  "orders": [
    {
      "order": "#4471",
      "status": "Paid",
      "date": "2026-10-08",
      "total": "64.00",
      "items": 2
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.