# BenchKey

> Manage BenchKey repair tickets, customers, leads and appointments, and read invoices, estimates and payments.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/benchkey

## Actions

### Add ticket note

Add a note for the team to a ticket. Customers never see it.

**Inputs**

- Ticket (`id`, text, required): The ticket's ID (its order number), such as TK-10042.
- Repeat-safe key (`idempotency_key`, text): Any text of 8 or more characters, new for each request. Sending the same key again within 24 hours replays the first result instead of writing twice.
- Note (`note`, text, required): The note's text. @mentions notify the team member.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "author": "API",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer_visible": false,
    "id": "note_1",
    "note": "Waiting on screen part.",
    "object": "ticket_note",
    "pinned": false,
    "ticket_id": "ticket id"
  }
}
```

### Cancel appointment

Cancel an appointment.

**Inputs**

- Appointment (`id`, number, required): The appointment's ID, from List appointments.
- Repeat-safe key (`idempotency_key`, text): Any text of 8 or more characters, new for each request. Sending the same key again within 24 hours replays the first result instead of writing twice.
- Reason (`reason`, text): Why it is cancelled.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "cancellation_reason": "Customer rescheduled",
    "cancelled_at": "2026-01-15T10:00:00.000Z",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer_email": "jane@example.com",
    "customer_name": "Jane Smith",
    "customer_phone": "+15555550100",
    "duration_minutes": 30,
    "id": 501,
    "location_id": 1,
    "notes": "notes",
    "object": "appointment",
    "onsite": {
      "address": {
        "city": "Austin",
        "country": "US",
        "line1": "100 Main St",
        "line2": "Suite 2",
        "postal_code": "78701",
        "region": "TX"
      },
      "arrived_at": "2026-01-15T10:00:00.000Z",
      "assigned_user_id": 7,
      "eta_at": "2026-01-15T10:00:00.000Z",
      "on_the_way_at": "2026-01-15T10:00:00.000Z",
      "stage": "cancelled",
      "travel_after_minutes": 1,
      "travel_before_minutes": 1,
      "version": 1
    },
    "scheduled_date": "2026-01-20",
    "scheduled_time": "14:30",
    "service_description": "Screen repair",
    "source": "api",
    "status": "cancelled",
    "tech_id": "tech id",
    "ticket_id": "ticket id",
    "updated_at": "2026-01-15T10:00:00.000Z",
    "visit_type": "in_store"
  }
}
```

### Change ticket status

Move a ticket to another status, with the notifications that status sends.

**Inputs**

- Ticket (`id`, text, required): The ticket's ID (its order number), such as TK-10042.
- Repeat-safe key (`idempotency_key`, text): Any text of 8 or more characters, new for each request. Sending the same key again within 24 hours replays the first result instead of writing twice.
- Status (`status`, text, required): The new status, exactly as your shop names it.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "Austin",
      "line1": "100 Main St",
      "line2": "Suite 2",
      "postal_code": "78701",
      "state": "TX"
    },
    "amount_paid": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "assigned_to": "alex",
    "business_company": "business company",
    "business_reference": "business reference",
    "category_id": "category id",
    "closed_at": "2026-01-15T10:00:00.000Z",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer": {
      "email": "jane@example.com",
      "name": "Jane Smith",
      "object": "ticket",
      "phone": "+15555550100"
    },
    "deleted": false,
    "deleted_at": "2026-01-15T10:00:00.000Z",
    "device": "iPhone 15 Pro",
    "devices": [
      {
        "asset_id": "asset id",
        "id": "TK-10042",
        "issue_reported": "Cracked screen",
        "object": "ticket",
        "status": "In Repair",
        "work_performed": "Replaced screen"
      }
    ],
    "due_at": "2026-01-15T10:00:00.000Z",
    "hidden": false,
    "how_did_you_find_us": "how did you find us",
    "id": "TK-10042",
    "internal_id": "internal id",
    "is_business": false,
    "is_mailin": false,
    "lead_id": "lead id",
    "location_id": "1",
    "object": "ticket",
    "priority": "normal",
    "queue_name": "Bench",
    "source": "api",
    "status": "In Repair",
    "terms_accepted_at": "2026-01-15T10:00:00.000Z",
    "ticket_type": "walk_in",
    "updated_at": "2026-01-15T10:00:00.000Z"
  }
}
```

### Convert lead to ticket

Turn a lead into a repair ticket. Converting twice never makes a second ticket.

**Inputs**

- Lead (`id`, text, required): The lead's ID, from List leads.
- Repeat-safe key (`idempotency_key`, text): Any text of 8 or more characters, new for each request. Sending the same key again within 24 hours replays the first result instead of writing twice.
- Service (`service_name`, text, required): The service or issue, such as Screen replacement.
- Customer name (`customer_name`, text): The name for the ticket. BenchKey uses the lead's if left empty.
- Customer email (`customer_email`, text): Their email address.
- Customer phone (`customer_phone`, text): Their phone number.
- Device (`device_name`, text): The device.
- Ticket type (`task_type`, number): Walk-in or mail-in. BenchKey uses walk-in if left empty. One of: `2` (Walk-in), `1` (Mail-in).
- Assigned to (`assigned_to`, text): The tech to assign it to.
- Queue (`queue_name`, text): The queue to put it in.
- Price (`price`, text): The quoted price.
- Notes (`notes`, text): Notes for the team.
- Address line 1 (`address1`, text): Street address.
- Address line 2 (`address2`, text): Apartment, suite or unit.
- City (`city`, text): City.
- State (`state`, text): State or region.
- ZIP code (`zip`, text): ZIP or postal code.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "ai_summary": "ai summary",
    "archived_at": "2026-01-15T10:00:00.000Z",
    "assigned_to": "alex",
    "category_id": "category id",
    "channel": "manual",
    "contact_email": "contact email",
    "contact_name": "contact name",
    "contact_phone": "contact phone",
    "converted_at": "2026-01-15T10:00:00.000Z",
    "converted_ticket_id": "TK-10043",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer": {
      "email": "jane@example.com",
      "id": "lead_1",
      "name": "Jane Smith",
      "object": "lead",
      "phone": "+15555550100"
    },
    "customer_email": "jane@example.com",
    "customer_name": "Jane Smith",
    "customer_phone": "+15555550100",
    "duplicate_of_lead_id": "duplicate of lead id",
    "first_response_at": "2026-01-15T10:00:00.000Z",
    "id": "lead_1",
    "last_activity_at": "2026-01-15T10:00:00.000Z",
    "lead_category": "lead category",
    "lead_path": "local",
    "linked_ticket_id": "linked ticket id",
    "matched_customer_id": "matched customer id",
    "matched_ticket_customer_id": "matched ticket customer id",
    "merged_into_lead_id": "merged into lead id",
    "object": "lead",
    "priority": "normal",
    "quoted_price": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "source": "api",
    "source_page_url": "source page url",
    "source_referrer": "source referrer",
    "status": "won",
    "type": "type",
    "updated_at": "2026-01-15T10:00:00.000Z",
    "urgency_tag": "urgency tag",
    "utm_campaign": "utm campaign",
    "utm_content": "utm content",
    "utm_medium": "utm medium",
    "utm_source": "utm source",
    "utm_term": "utm term"
  }
}
```

### Create appointment

Book an appointment.

**Inputs**

- Repeat-safe key (`idempotency_key`, text): Any text of 8 or more characters, new for each request. Sending the same key again within 24 hours replays the first result instead of writing twice.
- Customer name (`customer_name`, text, required): The customer's name.
- Customer phone (`customer_phone`, text, required): Their phone number.
- Customer email (`customer_email`, text): Their email address.
- Date (`scheduled_date`, date, required): The day of the appointment.
- Time (`scheduled_time`, text, required): The start time, in 24-hour HH:MM.
- Duration (`duration_minutes`, number): How long it lasts, in minutes. At least 1.
- Service (`service_description`, text): What the appointment is for.
- Notes (`notes`, text): Notes for the team.
- Ticket (`ticket_id`, text): A ticket to link it to.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "cancellation_reason": "cancellation reason",
    "cancelled_at": "2026-01-15T10:00:00.000Z",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer_email": "jane@example.com",
    "customer_name": "Jane Smith",
    "customer_phone": "+15555550100",
    "duration_minutes": 30,
    "id": 501,
    "location_id": 1,
    "notes": "notes",
    "object": "appointment",
    "onsite": {
      "address": {
        "city": "Austin",
        "country": "US",
        "line1": "100 Main St",
        "line2": "Suite 2",
        "postal_code": "78701",
        "region": "TX"
      },
      "arrived_at": "2026-01-15T10:00:00.000Z",
      "assigned_user_id": 7,
      "eta_at": "2026-01-15T10:00:00.000Z",
      "on_the_way_at": "2026-01-15T10:00:00.000Z",
      "stage": "scheduled",
      "travel_after_minutes": 1,
      "travel_before_minutes": 1,
      "version": 1
    },
    "scheduled_date": "2026-01-20",
    "scheduled_time": "14:30",
    "service_description": "Screen repair",
    "source": "api",
    "status": "scheduled",
    "tech_id": "tech id",
    "ticket_id": "ticket id",
    "updated_at": "2026-01-15T10:00:00.000Z",
    "visit_type": "in_store"
  }
}
```

### Create customer

Add a customer. If one already has the email address, that customer is returned unchanged.

**Inputs**

- Repeat-safe key (`idempotency_key`, text): Any text of 8 or more characters, new for each request. Sending the same key again within 24 hours replays the first result instead of writing twice.
- Name (`name`, text, required): The customer's name.
- Email (`email`, text, required): Their email address, which BenchKey uses as their ID. If a customer already has it, that customer is returned.
- Phone (`phone`, text): Their phone number.
- Address line 1 (`address1`, text): Street address.
- Address line 2 (`address2`, text): Apartment, suite or unit.
- City (`city`, text): City.
- State (`state`, text): State or region.
- ZIP code (`zip`, text): ZIP or postal code.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "Austin",
      "line1": "100 Main St",
      "line2": "Suite 2",
      "postal_code": "78701",
      "state": "TX"
    },
    "created_at": "2026-01-15T10:00:00.000Z",
    "display_name": "Jane Smith",
    "email": "jane@example.com",
    "emails": [
      "jane@example.com"
    ],
    "id": "lodol-qa@example.com",
    "is_business": false,
    "language": "en",
    "object": "customer",
    "phone": "+15555550100",
    "phone_details": [
      {
        "is_primary": false,
        "label": "Mobile",
        "phone": "+15555550100"
      }
    ],
    "phones": [
      "+15555550100"
    ],
    "ticket_count": 3,
    "updated_at": "2026-01-15T10:00:00.000Z"
  }
}
```

### Create lead

Add a lead, with the follow-ups and assignment BenchKey gives a lead made by staff.

**Inputs**

- Repeat-safe key (`idempotency_key`, text): Any text of 8 or more characters, new for each request. Sending the same key again within 24 hours replays the first result instead of writing twice.
- Customer name (`customer_name`, text): Their name. Give a name, email or phone.
- Customer email (`customer_email`, text): Their email address.
- Customer phone (`customer_phone`, text): Their phone number.
- Channel (`channel`, text): How the lead came in. BenchKey uses Manual if left empty. One of: `email`, `sms` (Text message), `phone`, `voicemail`, `widget` (Website widget), `manual`.
- Assigned to (`assigned_to`, text): The team member to assign it to.
- Category (`lead_category`, text): The lead's category.
- Repair type (`lead_path`, text): Local or mail-in. One of: `local`, `mail_in` (Mail-in).
- Notes (`notes`, text): Saved as an internal note on the lead.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "ai_summary": "ai summary",
    "archived_at": "2026-01-15T10:00:00.000Z",
    "assigned_to": "alex",
    "category_id": "category id",
    "channel": "manual",
    "contact_email": "contact email",
    "contact_name": "contact name",
    "contact_phone": "contact phone",
    "converted_at": "2026-01-15T10:00:00.000Z",
    "converted_ticket_id": "converted ticket id",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer": {
      "email": "jane@example.com",
      "id": "lead_1",
      "name": "Jane Smith",
      "object": "lead",
      "phone": "+15555550100"
    },
    "customer_email": "jane@example.com",
    "customer_name": "Jane Smith",
    "customer_phone": "+15555550100",
    "duplicate_of_lead_id": "duplicate of lead id",
    "first_response_at": "2026-01-15T10:00:00.000Z",
    "id": "lead_1",
    "last_activity_at": "2026-01-15T10:00:00.000Z",
    "lead_category": "lead category",
    "lead_path": "local",
    "linked_ticket_id": "linked ticket id",
    "matched_customer_id": "matched customer id",
    "matched_ticket_customer_id": "matched ticket customer id",
    "merged_into_lead_id": "merged into lead id",
    "object": "lead",
    "priority": "normal",
    "quoted_price": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "source": "api",
    "source_page_url": "source page url",
    "source_referrer": "source referrer",
    "status": "new",
    "type": "type",
    "updated_at": "2026-01-15T10:00:00.000Z",
    "urgency_tag": "urgency tag",
    "utm_campaign": "utm campaign",
    "utm_content": "utm content",
    "utm_medium": "utm medium",
    "utm_source": "utm source",
    "utm_term": "utm term"
  }
}
```

### Create ticket

Open a repair ticket, with the same routing and notifications as one made in BenchKey.

**Inputs**

- Repeat-safe key (`idempotency_key`, text, required): Any text of 8 to 255 characters, new for each ticket. Sending the same key again replays the first result instead of creating a second ticket.
- Customer name (`customer_name`, text, required): The customer's name.
- Customer email (`customer_email`, text): Their email address. Give this or a phone number.
- Customer phone (`customer_phone`, text): Their phone number. Give this or an email address.
- Service (`service_name`, text, required): The service or issue, such as Screen replacement.
- Device (`device_name`, text): The device, such as iPhone 15 Pro.
- Device category (`device_category`, text): The kind of device, such as Phone.
- Ticket type (`task_type`, number): Walk-in or mail-in. BenchKey uses walk-in if left empty. One of: `2` (Walk-in), `1` (Mail-in).
- Assigned to (`assigned_to`, text): The tech to assign it to.
- Queue (`queue_name`, text): The queue to put it in.
- Location (`location_id`, text): The location it belongs to.
- IMEI (`imei`, text): The device's IMEI.
- Serial number (`serial`, text): The device's serial number.
- Notes (`notes`, text): Notes for the team.
- How they found you (`how_did_you_find_us`, text): How the customer found the shop.
- Lead (`lead_id`, text): The lead this ticket comes from.
- Address line 1 (`address1`, text): Street address.
- Address line 2 (`address2`, text): Apartment, suite or unit.
- City (`city`, text): City.
- State (`state`, text): State or region.
- ZIP code (`zip`, text): ZIP or postal code.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "Austin",
      "line1": "100 Main St",
      "line2": "Suite 2",
      "postal_code": "78701",
      "state": "TX"
    },
    "amount_paid": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "assigned_to": "alex",
    "business_company": "business company",
    "business_reference": "business reference",
    "category_id": "category id",
    "closed_at": "2026-01-15T10:00:00.000Z",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer": {
      "email": "jane@example.com",
      "name": "Jane Smith",
      "object": "ticket",
      "phone": "+15555550100"
    },
    "deleted": false,
    "deleted_at": "2026-01-15T10:00:00.000Z",
    "device": "iPhone 15 Pro",
    "devices": [
      {
        "asset_id": "asset id",
        "id": "TK-10042",
        "issue_reported": "Cracked screen",
        "object": "ticket",
        "status": "In Repair",
        "work_performed": "Replaced screen"
      }
    ],
    "due_at": "2026-01-15T10:00:00.000Z",
    "hidden": false,
    "how_did_you_find_us": "how did you find us",
    "id": "TK-10042",
    "internal_id": "internal id",
    "is_business": false,
    "is_mailin": false,
    "lead_id": "lead id",
    "location_id": "1",
    "object": "ticket",
    "priority": "normal",
    "queue_name": "Bench",
    "source": "api",
    "status": "In Repair",
    "terms_accepted_at": "2026-01-15T10:00:00.000Z",
    "ticket_type": "walk_in",
    "updated_at": "2026-01-15T10:00:00.000Z"
  }
}
```

### Get appointment

Get one appointment.

**Inputs**

- Appointment (`id`, number, required): The appointment's ID, from List appointments.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "cancellation_reason": "cancellation reason",
    "cancelled_at": "2026-01-15T10:00:00.000Z",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer_email": "jane@example.com",
    "customer_name": "Jane Smith",
    "customer_phone": "+15555550100",
    "duration_minutes": 30,
    "id": 501,
    "location_id": 1,
    "notes": "notes",
    "object": "appointment",
    "onsite": {
      "address": {
        "city": "Austin",
        "country": "US",
        "line1": "100 Main St",
        "line2": "Suite 2",
        "postal_code": "78701",
        "region": "TX"
      },
      "arrived_at": "2026-01-15T10:00:00.000Z",
      "assigned_user_id": 7,
      "eta_at": "2026-01-15T10:00:00.000Z",
      "on_the_way_at": "2026-01-15T10:00:00.000Z",
      "stage": "scheduled",
      "travel_after_minutes": 1,
      "travel_before_minutes": 1,
      "version": 1
    },
    "scheduled_date": "2026-01-20",
    "scheduled_time": "14:30",
    "service_description": "Screen repair",
    "source": "api",
    "status": "scheduled",
    "tech_id": "tech id",
    "ticket_id": "ticket id",
    "updated_at": "2026-01-15T10:00:00.000Z",
    "visit_type": "in_store"
  }
}
```

### Get customer

Get one customer by email address.

**Inputs**

- Customer email (`id`, text, required): The customer's email address, which is their ID in BenchKey.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "Austin",
      "line1": "100 Main St",
      "line2": "Suite 2",
      "postal_code": "78701",
      "state": "TX"
    },
    "created_at": "2026-01-15T10:00:00.000Z",
    "display_name": "Jane Smith",
    "email": "jane@example.com",
    "emails": [
      "jane@example.com"
    ],
    "id": "jane@example.com",
    "is_business": false,
    "language": "en",
    "object": "customer",
    "phone": "+15555550100",
    "phone_details": [
      {
        "is_primary": false,
        "label": "Mobile",
        "phone": "+15555550100"
      }
    ],
    "phones": [
      "+15555550100"
    ],
    "ticket_count": 3,
    "updated_at": "2026-01-15T10:00:00.000Z"
  }
}
```

### Get invoice

Get one invoice with its line items and totals.

**Inputs**

- Invoice (`id`, text, required): The invoice's ID, from List invoices.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "amount_paid": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "attributed_to": "attributed to",
    "balance_due": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "balance_due_cents": 1,
    "created_at": "2026-01-15T10:00:00.000Z",
    "currency": "USD",
    "customer": {
      "email": "jane@example.com",
      "name": "Jane Smith",
      "phone": "+15555550100"
    },
    "deposit": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "derived_status": "paid",
    "discount": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "id": "INV-1",
    "invoice_number": "1001",
    "line_items": [
      {
        "amount": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "name": "Jane Smith",
        "object": "invoice",
        "quantity": 1,
        "unit_cost": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "unit_price": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        }
      }
    ],
    "location_id": "1",
    "needs_review": false,
    "object": "invoice",
    "over_refund_cents": 1,
    "paid_at": "2026-01-15T10:00:00.000Z",
    "payment_link_error": "payment link error",
    "payment_link_retryable": false,
    "payment_link_status": "ready",
    "payment_method": "card",
    "payments": {
      "object": "invoice",
      "url": "/api/v1/payments?invoice_id=INV-1"
    },
    "po_number": "po number",
    "public_url": "public url",
    "sent_via": "sent via",
    "source_invoice_number": "source invoice number",
    "status": "paid",
    "subtotal": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "tax_amount": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "tax_rate": 8.25,
    "ticket_id": "ticket id",
    "total": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    }
  }
}
```

### Get lead

Get one lead.

**Inputs**

- Lead (`id`, text, required): The lead's ID, from List leads.
- Include archived (`include_archived`, true/false): Turn on to get the lead even if it is archived.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "ai_summary": "ai summary",
    "archived_at": "2026-01-15T10:00:00.000Z",
    "assigned_to": "alex",
    "category_id": "category id",
    "channel": "manual",
    "contact_email": "contact email",
    "contact_name": "contact name",
    "contact_phone": "contact phone",
    "converted_at": "2026-01-15T10:00:00.000Z",
    "converted_ticket_id": "converted ticket id",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer": {
      "email": "jane@example.com",
      "id": "lead_1",
      "name": "Jane Smith",
      "object": "lead",
      "phone": "+15555550100"
    },
    "customer_email": "jane@example.com",
    "customer_name": "Jane Smith",
    "customer_phone": "+15555550100",
    "duplicate_of_lead_id": "duplicate of lead id",
    "first_response_at": "2026-01-15T10:00:00.000Z",
    "id": "lead_1",
    "last_activity_at": "2026-01-15T10:00:00.000Z",
    "lead_category": "lead category",
    "lead_path": "local",
    "linked_ticket_id": "linked ticket id",
    "matched_customer_id": "matched customer id",
    "matched_ticket_customer_id": "matched ticket customer id",
    "merged_into_lead_id": "merged into lead id",
    "object": "lead",
    "priority": "normal",
    "quoted_price": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "source": "api",
    "source_page_url": "source page url",
    "source_referrer": "source referrer",
    "status": "new",
    "type": "type",
    "updated_at": "2026-01-15T10:00:00.000Z",
    "urgency_tag": "urgency tag",
    "utm_campaign": "utm campaign",
    "utm_content": "utm content",
    "utm_medium": "utm medium",
    "utm_source": "utm source",
    "utm_term": "utm term"
  }
}
```

### Get ticket

Get one repair ticket.

**Inputs**

- Ticket (`id`, text, required): The ticket's ID (its order number), such as TK-10042.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "Austin",
      "line1": "100 Main St",
      "line2": "Suite 2",
      "postal_code": "78701",
      "state": "TX"
    },
    "amount_paid": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "assigned_to": "alex",
    "business_company": "business company",
    "business_reference": "business reference",
    "category_id": "category id",
    "closed_at": "2026-01-15T10:00:00.000Z",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer": {
      "email": "jane@example.com",
      "name": "Jane Smith",
      "object": "ticket",
      "phone": "+15555550100"
    },
    "deleted": false,
    "deleted_at": "2026-01-15T10:00:00.000Z",
    "device": "iPhone 15 Pro",
    "devices": [
      {
        "asset_id": "asset id",
        "id": "TK-10042",
        "issue_reported": "Cracked screen",
        "object": "ticket",
        "status": "In Repair",
        "work_performed": "Replaced screen"
      }
    ],
    "due_at": "2026-01-15T10:00:00.000Z",
    "hidden": false,
    "how_did_you_find_us": "how did you find us",
    "id": "TK-10042",
    "internal_id": "internal id",
    "is_business": false,
    "is_mailin": false,
    "lead_id": "lead id",
    "location_id": "1",
    "object": "ticket",
    "priority": "normal",
    "queue_name": "Bench",
    "source": "api",
    "status": "In Repair",
    "terms_accepted_at": "2026-01-15T10:00:00.000Z",
    "ticket_type": "walk_in",
    "updated_at": "2026-01-15T10:00:00.000Z"
  }
}
```

### List appointments

List one page of appointments, optionally for a date range.

**Inputs**

- From (`date_from`, date): Only appointments on or after this day.
- To (`date_to`, date): Only appointments on or before this day.
- Status (`status`, text): Only appointments in this status. One of: `scheduled`, `confirmed`, `cancelled`, `completed`, `pending`, `no_show` (No show), `checked_in` (Checked in).
- Location (`location_id`, number): Only appointments at this location.
- Customer email (`customer_email`, text): Only this customer's appointments.
- Ticket (`ticket_id`, text): Only appointments linked to this ticket.
- Tech (`tech_id`, text): Only appointments assigned to this tech, by roster ID.
- Page size (`limit`, number): How many to return, up to 100. BenchKey returns 25 if left empty. From 1 to 100.
- Page cursor (`cursor`, text): The Next page cursor from the previous page. Leave empty for the first page.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "cancellation_reason": "cancellation reason",
        "cancelled_at": "2026-01-15T10:00:00.000Z",
        "created_at": "2026-01-15T10:00:00.000Z",
        "customer_email": "jane@example.com",
        "customer_name": "Jane Smith",
        "customer_phone": "+15555550100",
        "duration_minutes": 30,
        "id": 501,
        "location_id": 1,
        "notes": "notes",
        "object": "appointment",
        "onsite": {
          "address": {
            "city": "Austin",
            "country": "US",
            "line1": "100 Main St",
            "line2": "Suite 2",
            "postal_code": "78701",
            "region": "TX"
          },
          "arrived_at": "2026-01-15T10:00:00.000Z",
          "assigned_user_id": 7,
          "eta_at": "2026-01-15T10:00:00.000Z",
          "on_the_way_at": "2026-01-15T10:00:00.000Z",
          "stage": "scheduled",
          "travel_after_minutes": 1,
          "travel_before_minutes": 1,
          "version": 1
        },
        "scheduled_date": "2026-01-20",
        "scheduled_time": "14:30",
        "service_description": "Screen repair",
        "source": "api",
        "status": "scheduled",
        "tech_id": "tech id",
        "ticket_id": "ticket id",
        "updated_at": "2026-01-15T10:00:00.000Z",
        "visit_type": "in_store"
      }
    ],
    "has_more": false,
    "next_cursor": "next cursor",
    "object": "appointment"
  }
}
```

### List customers

List one page of customers, most recent activity first.

**Inputs**

- Search (`q`, text): Search by name, email or phone.
- Changed since (`updated_since`, date and time): Only those with activity on or after this time.
- Page size (`limit`, number): How many to return, up to 100. BenchKey returns 25 if left empty. From 1 to 100.
- Page cursor (`cursor`, text): The Next page cursor from the previous page. Leave empty for the first page.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "address": {
          "city": "Austin",
          "line1": "100 Main St",
          "line2": "Suite 2",
          "postal_code": "78701",
          "state": "TX"
        },
        "created_at": "2026-01-15T10:00:00.000Z",
        "display_name": "Jane Smith",
        "email": "jane@example.com",
        "emails": [
          "jane@example.com"
        ],
        "id": "jane@example.com",
        "is_business": false,
        "language": "en",
        "object": "customer",
        "phone": "+15555550100",
        "phone_details": [
          {
            "is_primary": false,
            "label": "Mobile",
            "phone": "+15555550100"
          }
        ],
        "phones": [
          "+15555550100"
        ],
        "ticket_count": 3,
        "updated_at": "2026-01-15T10:00:00.000Z"
      }
    ],
    "has_more": false,
    "next_cursor": "next cursor",
    "object": "customer"
  }
}
```

### List estimates

List one page of estimates, newest first.

**Inputs**

- Status (`status`, text): Only estimates in this status. One of: `draft`, `sent`, `pending`, `quote`, `viewed`, `approved`, `declined`, `converted`.
- Ticket (`ticket_id`, text): Only estimates for this ticket.
- Customer email (`customer_email`, text): Only this customer's estimates.
- Created after (`created_after`, date and time): Only estimates created on or after this time.
- Created before (`created_before`, date and time): Only estimates created on or before this time.
- Page size (`limit`, number): How many to return, up to 100. BenchKey returns 25 if left empty. From 1 to 100.
- Page cursor (`cursor`, text): The Next page cursor from the previous page. Leave empty for the first page.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "approved_at": "2026-01-15T10:00:00.000Z",
        "approved_by": "approved by",
        "approved_via": "approved via",
        "converted_invoice_id": "converted invoice id",
        "created_at": "2026-01-15T10:00:00.000Z",
        "currency": "USD",
        "customer": {
          "email": "jane@example.com",
          "name": "Jane Smith",
          "phone": "+15555550100"
        },
        "declined_at": "2026-01-15T10:00:00.000Z",
        "deposit": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "discount": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "id": "EST-1",
        "line_items": [
          {
            "amount": {
              "amount": "129.99",
              "amount_cents": 12999,
              "currency": "USD"
            },
            "name": "Jane Smith",
            "object": "estimate",
            "quantity": 1,
            "unit_cost": {
              "amount": "129.99",
              "amount_cents": 12999,
              "currency": "USD"
            },
            "unit_price": {
              "amount": "129.99",
              "amount_cents": 12999,
              "currency": "USD"
            }
          }
        ],
        "object": "estimate",
        "public_url": "public url",
        "reissued_at": "2026-01-15T10:00:00.000Z",
        "sent_via": "sent via",
        "status": "approved",
        "subtotal": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "tax_amount": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "tax_rate": 8.25,
        "ticket_id": "ticket id",
        "total": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "valid_days": 1,
        "valid_until": "2026-01-15T10:00:00.000Z"
      }
    ],
    "has_more": false,
    "next_cursor": "next cursor",
    "object": "estimate"
  }
}
```

### List invoices

List one page of invoices, newest first.

**Inputs**

- Status (`status`, text): Only invoices in this status. One of: `draft`, `sent`, `pending`, `partial`, `paid`, `voided`, `refunded`.
- Ticket (`ticket_id`, text): Only invoices for this ticket.
- Customer email (`customer_email`, text): Only this customer's invoices.
- Location (`location_id`, number): Only invoices from this location.
- Created after (`created_after`, date and time): Only invoices created on or after this time.
- Created before (`created_before`, date and time): Only invoices created on or before this time.
- Page size (`limit`, number): How many to return, up to 100. BenchKey returns 25 if left empty. From 1 to 100.
- Page cursor (`cursor`, text): The Next page cursor from the previous page. Leave empty for the first page.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "amount_paid": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "attributed_to": "attributed to",
        "balance_due": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "balance_due_cents": 1,
        "created_at": "2026-01-15T10:00:00.000Z",
        "currency": "USD",
        "customer": {
          "email": "jane@example.com",
          "name": "Jane Smith",
          "phone": "+15555550100"
        },
        "deposit": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "derived_status": "paid",
        "discount": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "id": "INV-1",
        "invoice_number": "1001",
        "line_items": [
          {
            "amount": {
              "amount": "129.99",
              "amount_cents": 12999,
              "currency": "USD"
            },
            "name": "Jane Smith",
            "object": "invoice",
            "quantity": 1,
            "unit_cost": {
              "amount": "129.99",
              "amount_cents": 12999,
              "currency": "USD"
            },
            "unit_price": {
              "amount": "129.99",
              "amount_cents": 12999,
              "currency": "USD"
            }
          }
        ],
        "location_id": "1",
        "needs_review": false,
        "object": "invoice",
        "over_refund_cents": 1,
        "paid_at": "2026-01-15T10:00:00.000Z",
        "payment_link_error": "payment link error",
        "payment_link_retryable": false,
        "payment_link_status": "ready",
        "payment_method": "card",
        "payments": {
          "object": "invoice",
          "url": "/api/v1/payments?invoice_id=INV-1"
        },
        "po_number": "po number",
        "public_url": "public url",
        "sent_via": "sent via",
        "source_invoice_number": "source invoice number",
        "status": "paid",
        "subtotal": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "tax_amount": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "tax_rate": 8.25,
        "ticket_id": "ticket id",
        "total": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        }
      }
    ],
    "has_more": false,
    "next_cursor": "next cursor",
    "object": "invoice"
  }
}
```

### List lead statuses

List the lead statuses in your pipeline, in order.

**Inputs**: None.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "color": "blue",
        "follow_up_after_days": 2,
        "is_system": false,
        "is_terminal": false,
        "key": "new",
        "label": "New",
        "object": "lead_status",
        "order_index": 1
      }
    ],
    "has_more": false,
    "next_cursor": "next cursor",
    "object": "lead_status"
  }
}
```

### List leads

List one page of leads, newest first.

**Inputs**

- Status (`status`, text): Only leads in this status.
- Source (`source`, text): Only leads from this source, such as lead_widget.
- Channel (`channel`, text): Only leads that came in by this channel.
- Customer email (`customer_id`, text): Only leads matched to this customer, by email address.
- Converted (`converted`, true/false): Turn on for only leads converted to tickets, or off for only those not converted.
- Search (`q`, text): Search by customer or contact name, email or phone.
- Changed since (`updated_since`, date and time): Only those with activity on or after this time.
- Include archived (`include_archived`, true/false): Turn on to include archived leads.
- Page size (`limit`, number): How many to return, up to 100. BenchKey returns 25 if left empty. From 1 to 100.
- Page cursor (`cursor`, text): The Next page cursor from the previous page. Leave empty for the first page.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "ai_summary": "ai summary",
        "archived_at": "2026-01-15T10:00:00.000Z",
        "assigned_to": "alex",
        "category_id": "category id",
        "channel": "manual",
        "contact_email": "contact email",
        "contact_name": "contact name",
        "contact_phone": "contact phone",
        "converted_at": "2026-01-15T10:00:00.000Z",
        "converted_ticket_id": "converted ticket id",
        "created_at": "2026-01-15T10:00:00.000Z",
        "customer": {
          "email": "jane@example.com",
          "id": "lead_1",
          "name": "Jane Smith",
          "object": "lead",
          "phone": "+15555550100"
        },
        "customer_email": "jane@example.com",
        "customer_name": "Jane Smith",
        "customer_phone": "+15555550100",
        "duplicate_of_lead_id": "duplicate of lead id",
        "first_response_at": "2026-01-15T10:00:00.000Z",
        "id": "lead_1",
        "last_activity_at": "2026-01-15T10:00:00.000Z",
        "lead_category": "lead category",
        "lead_path": "local",
        "linked_ticket_id": "linked ticket id",
        "matched_customer_id": "matched customer id",
        "matched_ticket_customer_id": "matched ticket customer id",
        "merged_into_lead_id": "merged into lead id",
        "object": "lead",
        "priority": "normal",
        "quoted_price": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "source": "api",
        "source_page_url": "source page url",
        "source_referrer": "source referrer",
        "status": "new",
        "type": "type",
        "updated_at": "2026-01-15T10:00:00.000Z",
        "urgency_tag": "urgency tag",
        "utm_campaign": "utm campaign",
        "utm_content": "utm content",
        "utm_medium": "utm medium",
        "utm_source": "utm source",
        "utm_term": "utm term"
      }
    ],
    "has_more": false,
    "next_cursor": "next cursor",
    "object": "lead"
  }
}
```

### List locations

List your shop's locations.

**Inputs**

- Active only (`is_active`, true/false): Turn on for only active locations, or off for only inactive ones.
- Page size (`limit`, number): How many to return, up to 100. BenchKey returns 25 if left empty. From 1 to 100.
- Page cursor (`cursor`, text): The Next page cursor from the previous page. Leave empty for the first page.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "address": {
          "city": "Austin",
          "country": "US",
          "line1": "100 Main St",
          "line2": "Suite 2",
          "postal_code": "78701",
          "state": "TX"
        },
        "created_at": "2026-01-15T10:00:00.000Z",
        "currency": "USD",
        "email": "jane@example.com",
        "id": 1,
        "is_active": false,
        "is_warehouse": false,
        "name": "Downtown",
        "object": "location",
        "phone": "+15555550100",
        "sort_order": 1,
        "timezone": "America/Chicago"
      }
    ],
    "has_more": false,
    "next_cursor": "next cursor",
    "object": "location"
  }
}
```

### List payments

List one page of recorded payments, newest first.

**Inputs**

- Invoice (`invoice_id`, text): Only payments on this invoice.
- Ticket (`ticket_id`, text): Only payments for this ticket.
- Payment method (`payment_method`, text): Only payments made this way, such as card.
- Processor (`processor`, text): Only payments through this processor, such as square.
- Location (`location_id`, number): Only payments at this location.
- Paid after (`paid_after`, date and time): Only payments made on or after this time.
- Paid before (`paid_before`, date and time): Only payments made on or before this time.
- Page size (`limit`, number): How many to return, up to 100. BenchKey returns 25 if left empty. From 1 to 100.
- Page cursor (`cursor`, text): The Next page cursor from the previous page. Leave empty for the first page.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "amount": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "charged_amount_cents": 1,
        "created_at": "2026-01-15T10:00:00.000Z",
        "currency": "USD",
        "entry_type": "payment",
        "id": "pay_1",
        "invoice_amount_cents": 1,
        "invoice_id": "invoice id",
        "location_id": "1",
        "object": "payment",
        "paid_at": "2026-01-15T10:00:00.000Z",
        "payment_method": "card",
        "processor": "square",
        "processor_reference": "processor reference",
        "status": "succeeded",
        "ticket_id": "ticket id",
        "tip_amount_cents": 1,
        "voided_at": "2026-01-15T10:00:00.000Z"
      }
    ],
    "has_more": false,
    "next_cursor": "next cursor",
    "object": "payment"
  }
}
```

### List ticket statuses

List the ticket statuses your shop uses, in order.

**Inputs**: None.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "color_category": "accent",
        "is_system": false,
        "name": "In Repair",
        "object": "ticket_status"
      }
    ],
    "has_more": false,
    "next_cursor": "next cursor",
    "object": "ticket_status"
  }
}
```

### List tickets

List one page of repair tickets, newest first.

**Inputs**

- Status (`status`, text): Only tickets in this status, exactly as your shop names it.
- Customer email (`customer_email`, text): Only this customer's tickets.
- Location (`location_id`, text): Only tickets at this location.
- Mail-in only (`is_mailin`, true/false): Turn on for only mail-in tickets, or off for only walk-in.
- Search (`q`, text): Search by order number, customer, email, phone or device.
- Changed since (`updated_since`, date and time): Only those with activity on or after this time.
- Include deleted (`include_deleted`, true/false): Turn on to include deleted tickets.
- Include hidden (`include_hidden`, true/false): Turn on to include hidden tickets.
- Page size (`limit`, number): How many to return, up to 100. BenchKey returns 25 if left empty. From 1 to 100.
- Page cursor (`cursor`, text): The Next page cursor from the previous page. Leave empty for the first page.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "address": {
          "city": "Austin",
          "line1": "100 Main St",
          "line2": "Suite 2",
          "postal_code": "78701",
          "state": "TX"
        },
        "amount_paid": {
          "amount": "129.99",
          "amount_cents": 12999,
          "currency": "USD"
        },
        "assigned_to": "alex",
        "business_company": "business company",
        "business_reference": "business reference",
        "category_id": "category id",
        "closed_at": "2026-01-15T10:00:00.000Z",
        "created_at": "2026-01-15T10:00:00.000Z",
        "customer": {
          "email": "jane@example.com",
          "name": "Jane Smith",
          "object": "ticket",
          "phone": "+15555550100"
        },
        "deleted": false,
        "deleted_at": "2026-01-15T10:00:00.000Z",
        "device": "iPhone 15 Pro",
        "devices": [
          {
            "asset_id": "asset id",
            "id": "TK-10042",
            "issue_reported": "Cracked screen",
            "object": "ticket",
            "status": "In Repair",
            "work_performed": "Replaced screen"
          }
        ],
        "due_at": "2026-01-15T10:00:00.000Z",
        "hidden": false,
        "how_did_you_find_us": "how did you find us",
        "id": "TK-10042",
        "internal_id": "internal id",
        "is_business": false,
        "is_mailin": false,
        "lead_id": "lead id",
        "location_id": "1",
        "object": "ticket",
        "priority": "normal",
        "queue_name": "Bench",
        "source": "api",
        "status": "In Repair",
        "terms_accepted_at": "2026-01-15T10:00:00.000Z",
        "ticket_type": "walk_in",
        "updated_at": "2026-01-15T10:00:00.000Z"
      }
    ],
    "has_more": false,
    "next_cursor": "next cursor",
    "object": "ticket"
  }
}
```

### Update customer

Change a customer's name, contact details or address. Only the fields you fill in change.

**Inputs**

- Customer email (`id`, text, required): The customer's email address, which is their ID in BenchKey.
- Repeat-safe key (`idempotency_key`, text): Any text of 8 or more characters, new for each request. Sending the same key again within 24 hours replays the first result instead of writing twice.
- Name (`name`, text): The customer's name.
- Email (`email`, text): Their email address, which BenchKey uses as their ID. Changing it updates their tickets too.
- Phone (`phone`, text): Their phone number.
- Address line 1 (`address1`, text): Street address.
- Address line 2 (`address2`, text): Apartment, suite or unit.
- City (`city`, text): City.
- State (`state`, text): State or region.
- ZIP code (`zip`, text): ZIP or postal code.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "Austin",
      "line1": "100 Main St",
      "line2": "Suite 2",
      "postal_code": "78701",
      "state": "TX"
    },
    "created_at": "2026-01-15T10:00:00.000Z",
    "display_name": "Jane Smith",
    "email": "jane@example.com",
    "emails": [
      "jane@example.com"
    ],
    "id": "jane@example.com",
    "is_business": false,
    "language": "en",
    "object": "customer",
    "phone": "+15555550100",
    "phone_details": [
      {
        "is_primary": false,
        "label": "Mobile",
        "phone": "+15555550100"
      }
    ],
    "phones": [
      "+15555550100"
    ],
    "ticket_count": 3,
    "updated_at": "2026-01-15T10:00:00.000Z"
  }
}
```

### Update lead

Change a lead's status, assignee or details. Only the fields you fill in change.

**Inputs**

- Lead (`id`, text, required): The lead's ID, from List leads.
- Repeat-safe key (`idempotency_key`, text): Any text of 8 or more characters, new for each request. Sending the same key again within 24 hours replays the first result instead of writing twice.
- Status (`status`, text): The lead's new status. Changing it starts or stops its follow-ups.
- Assigned to (`assigned_to`, text): The team member to assign it to.
- Customer name (`customer_name`, text): The customer's name.
- Customer email (`customer_email`, text): Their email address.
- Customer phone (`customer_phone`, text): Their phone number.
- Contact name (`contact_name`, text): The contact's name.
- Contact email (`contact_email`, text): The contact's email address.
- Contact phone (`contact_phone`, text): The contact's phone number.
- Urgency (`urgency_tag`, text): Its urgency tag.
- Quoted price (`quoted_price`, number): The price quoted. At least 0.
- Category (`lead_category`, text): The lead's category.
- Repair type (`lead_path`, text): Local or mail-in. One of: `local`, `mail_in` (Mail-in).

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "ai_summary": "ai summary",
    "archived_at": "2026-01-15T10:00:00.000Z",
    "assigned_to": "alex",
    "category_id": "category id",
    "channel": "manual",
    "contact_email": "contact email",
    "contact_name": "contact name",
    "contact_phone": "contact phone",
    "converted_at": "2026-01-15T10:00:00.000Z",
    "converted_ticket_id": "converted ticket id",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer": {
      "email": "jane@example.com",
      "id": "lead_1",
      "name": "Jane Smith",
      "object": "lead",
      "phone": "+15555550100"
    },
    "customer_email": "jane@example.com",
    "customer_name": "Jane Smith",
    "customer_phone": "+15555550100",
    "duplicate_of_lead_id": "duplicate of lead id",
    "first_response_at": "2026-01-15T10:00:00.000Z",
    "id": "lead_1",
    "last_activity_at": "2026-01-15T10:00:00.000Z",
    "lead_category": "lead category",
    "lead_path": "local",
    "linked_ticket_id": "linked ticket id",
    "matched_customer_id": "matched customer id",
    "matched_ticket_customer_id": "matched ticket customer id",
    "merged_into_lead_id": "merged into lead id",
    "object": "lead",
    "priority": "normal",
    "quoted_price": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "source": "api",
    "source_page_url": "source page url",
    "source_referrer": "source referrer",
    "status": "new",
    "type": "type",
    "updated_at": "2026-01-15T10:00:00.000Z",
    "urgency_tag": "urgency tag",
    "utm_campaign": "utm campaign",
    "utm_content": "utm content",
    "utm_medium": "utm medium",
    "utm_source": "utm source",
    "utm_term": "utm term"
  }
}
```

### Update ticket

Change a ticket's assignee, customer details, device or address. Only the fields you fill in change.

**Inputs**

- Ticket (`id`, text, required): The ticket's ID (its order number), such as TK-10042.
- Repeat-safe key (`idempotency_key`, text): Any text of 8 or more characters, new for each request. Sending the same key again within 24 hours replays the first result instead of writing twice.
- Assigned to (`assigned_to`, text): The tech to assign it to.
- Customer name (`customer_name`, text): The customer's name.
- Customer email (`customer_email`, text): Their email address.
- Customer phone (`customer_phone`, text): Their phone number.
- Device (`device`, text): The device.
- Address line 1 (`address1`, text): Street address.
- Address line 2 (`address2`, text): Apartment, suite or unit.
- City (`city`, text): City.
- State (`state`, text): State or region.
- ZIP code (`zip`, text): ZIP or postal code.

**Outputs**

- `data` (object): The response from BenchKey.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "Austin",
      "line1": "100 Main St",
      "line2": "Suite 2",
      "postal_code": "78701",
      "state": "TX"
    },
    "amount_paid": {
      "amount": "129.99",
      "amount_cents": 12999,
      "currency": "USD"
    },
    "assigned_to": "alex",
    "business_company": "business company",
    "business_reference": "business reference",
    "category_id": "category id",
    "closed_at": "2026-01-15T10:00:00.000Z",
    "created_at": "2026-01-15T10:00:00.000Z",
    "customer": {
      "email": "jane@example.com",
      "name": "Jane Smith",
      "object": "ticket",
      "phone": "+15555550100"
    },
    "deleted": false,
    "deleted_at": "2026-01-15T10:00:00.000Z",
    "device": "iPhone 15 Pro",
    "devices": [
      {
        "asset_id": "asset id",
        "id": "TK-10042",
        "issue_reported": "Cracked screen",
        "object": "ticket",
        "status": "In Repair",
        "work_performed": "Replaced screen"
      }
    ],
    "due_at": "2026-01-15T10:00:00.000Z",
    "hidden": false,
    "how_did_you_find_us": "how did you find us",
    "id": "TK-10042",
    "internal_id": "internal id",
    "is_business": false,
    "is_mailin": false,
    "lead_id": "lead id",
    "location_id": "1",
    "object": "ticket",
    "priority": "normal",
    "queue_name": "Bench",
    "source": "api",
    "status": "In Repair",
    "terms_accepted_at": "2026-01-15T10:00:00.000Z",
    "ticket_type": "walk_in",
    "updated_at": "2026-01-15T10:00:00.000Z"
  }
}
```
