Tickets
Open a ticket with a customer, optionally about one of their invoices
AuthorizationBearer <token>
API key from Settings → API keys
In: header
Path Parameters
storeId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/stores/string/tickets" \ -H "Content-Type: application/json" \ -d '{ "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac", "subject": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "external_ids": { "property1": "string", "property2": "string" }, "number": -9007199254740991, "subject": "string", "state": "open", "priority": "low", "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac", "customerEmail": "string", "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5", "orderNumber": -9007199254740991, "assignedTo": "7869c1a9-a680-4086-b6f5-9e78a651f6f2", "messagesCount": -9007199254740991, "lastMessage": { "authorType": "customer", "excerpt": "string" }, "lastMessageAt": "string", "archivedAt": "string", "closedAt": "string", "createdAt": "string"}