POST ?action=create_support_ticket
Open a support ticket on a customer's behalf. The customer gets a confirmation email and the store is notified — exactly like a ticket opened on the site. To send screenshots or files with it, post the request as multipart/form-data instead of JSON: the same fields as form fields, and each file as files[]. What may be sent is in get_store_settings under support.attachments. A file that cannot be kept refuses the whole ticket with a 422 that says which file and why. A request larger than the server accepts in one go is answered with a 413.
Request Parameters
| Field | Type | Required | Description |
|---|
customer_email | string | Required | The customer |
subject | string | Required | A short summary |
topic | string | Required | One of the store's topics — see get_support_tickets |
message | string | Required | The opening message. May be left out when a file is sent |
activation_id | integer | Optional | The line the ticket is about |
priority | string | Optional | low, normal, high, urgent (default normal) |
files[] | file | Optional | Screenshots or files, in a multipart/form-data request |
Response Fields
| Field | Type | Description |
|---|
ticket_ref | string | The ticket reference, e.g. 20260830-4F28AC |
status | string | Always open on creation |
priority | string | The starting priority |
attachments | integer | How many files were kept with the ticket |