Skip to main content

Update Gorgias Connection

PUT 

/api/integrations/gorgias/:gorgiasInstance

Edits the connection. Every key is optional; only what is sent changes.

Required scope: integrations:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Credentials (re-checked with Gorgias before saving): domain (must stay the connected account), email, api_key. Sending an api_key switches an app (OAuth) connection back to API-key auth.

order_support (partial — keys not sent keep their value):

  • enabled (boolean) — order support on/off
  • allow_cancel (boolean) — allow cancellation from Gorgias
  • customer_self_service (boolean) — customers may cancel through Gorgias AI Agent / Flows
  • cancel_window (until_picked | until_submitted | minutes)
  • cancel_window_minutes (integer 1–10080, used with minutes)
  • provider_recall (recall | hold_for_review) — what to do when the order is already with a 3PL
  • partial_shipments (needs_human | cancel_remaining)
  • sales_channel_ids (array of sales channel ids, or null for every channel)
  • cancel_on_channel, channel_refund, channel_restock (boolean)
  • cancelled_tag, hold_tag (string, max 64) — tags written on the Gorgias ticket and the order hold
  • customer_messages (object keyed by outcome — cancelled, held_for_review, not_allowed, already_cancelled, channel_pending, channel_manual, held … — value max 1000 characters; also the action outcomes address_updated, address_updated_partial, reshipped, return_created, refunded, refund_pending; tokens {order_number}, {refund_amount}, {reason}, {replacement_order}, {eta}, {rma_number})
  • address_edit (object) — enabled (boolean): let Gorgias change the shipping address before the order ships
  • reship (object) — enabled (boolean); max_per_order (integer 1–20); reasons (1–20 distinct lowercase_underscore strings, default damaged, lost_in_transit, wrong_item, missing_item)
  • returns (object) — enabled (boolean); window_days (integer 1–365, days after shipping); auto_approve (boolean); warehouse_id (integer warehouse id the return goes back to, or null)
  • refunds (object) — enabled (boolean); max_amount (number 0–1000000, or null for no cap); restock (boolean)

The four nested policies merge key by key: sending {"reship": {"enabled": true}} keeps the saved reasons.

Unknown order_support keys, nested policy keys and outcomes are rejected with 422.

proactive_tickets (partial; tickets SKU.io opens or notes in Gorgias when something goes wrong with an order):

  • enabled (boolean)
  • events (object of booleans, merged key by key) — delivery_exception, backorder_created, eta_slipped, ship_by_risk, return_received, cancel_needs_attention
  • notify_linked_tickets_on_eta_slip (boolean) — add a note to tickets already linked to the order when its ETA slips
  • existing_ticket_window_days (integer 1–365) — note an open ticket from the same customer within this many days instead of opening a new one
  • push_customer_data (boolean) — keep the customer's order data on their Gorgias profile up to date

repairs: push_updates (boolean — post repair progress to linked tickets), sender_user_id (Gorgias user id the notes are posted as, or null).

Connection fields: id, domain (the Gorgias subdomain), account_name, auth_type (api_key | oauth), email, has_api_key, connected_at, last_success_at, last_error, endpoint_base_url (the base of the URLs Gorgias calls; null until the connection has a webhook token), webhook_secret_hint (last 4 characters only; the API key, OAuth tokens and full secret are never returned), order_support (cancellation rules plus the address_edit, reship, returns and refunds policies), repairs (push_updates, sender_user_id, webhook_url), provisioning (last_run_at and the setup checklist), stats_30d (lookups, cancelled, held_for_review, not_allowed, holds) oauth_available and health (status: ok | degraded | needs_reconnect; reason; last_checked_at; missing_scopes: the app permissions the connection still needs, empty for API-key connections).

Checklist items whose status is manual carry copy-ready values in manual, with the shared secret masked to its last 4 characters. Get Gorgias AI Agent Setup Values returns them with the full secret.

Requires gorgias.manage.

customer_message_defaults is SKU.io's wording for each customer reply, keyed like order_support.customer_messages. A reply in customer_messages that equals its default has not been customised. Send an empty string to go back to the default; only customised replies are stored.

Request​

Responses​

OK

Response Headers
    Content-Type