Create a support ticket
const url = 'https://open-api.replyco.com/openapi/support/create-ticket';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json-patch+json'}, body: '{ "subject": "Orders from our shop are missing customer names", "text": "Since 20 October, orders we create through the API show no customer name in Replyco.\nExample order: EX-100245." }'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://open-api.replyco.com/openapi/support/create-ticket \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json-patch+json' \ --data '{ "subject": "Orders from our shop are missing customer names", "text": "Since 20 October, orders we create through the API show no customer name in Replyco.\nExample order: EX-100245." }'Opens a ticket with the Replyco support team on behalf of the authenticated user. The ticket is filed under your account email, and replies from support arrive at that address. Your user and company details are attached automatically, so you do not need to include them in the text.
Request
subject(required) — short summary of the problem, up to 200 characters.text(required) — full description, as plain text, up to 10000 characters. Line breaks are kept.
Response
The id of the created ticket. Quote it when contacting support about this issue.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”The ticket to create. subject and text are required.
Input model for opening a support ticket with the Replyco support team. The ticket is filed under the email of the authenticated user.
object
Short summary of the problem. Required, up to 200 characters.
Full description of the problem, as plain text. Required, up to 10000 characters. Line breaks are kept.
Example
{ "subject": "Orders from our shop are missing customer names", "text": "Since 20 October, orders we create through the API show no customer name in Replyco.\nExample order: EX-100245."}Input model for opening a support ticket with the Replyco support team. The ticket is filed under the email of the authenticated user.
object
Short summary of the problem. Required, up to 200 characters.
Example
Emails from my Amazon account are not syncingFull description of the problem, as plain text. Required, up to 10000 characters. Line breaks are kept.
Example
Since this morning no new Amazon messages appear in my inbox. Other channels work.Input model for opening a support ticket with the Replyco support team. The ticket is filed under the email of the authenticated user.
object
Short summary of the problem. Required, up to 200 characters.
Example
Emails from my Amazon account are not syncingFull description of the problem, as plain text. Required, up to 10000 characters. Line breaks are kept.
Example
Since this morning no new Amazon messages appear in my inbox. Other channels work.Input model for opening a support ticket with the Replyco support team. The ticket is filed under the email of the authenticated user.
object
Short summary of the problem. Required, up to 200 characters.
Example
Emails from my Amazon account are not syncingFull description of the problem, as plain text. Required, up to 10000 characters. Line breaks are kept.
Example
Since this morning no new Amazon messages appear in my inbox. Other channels work.Responses
Section titled “Responses”The ticket was created.
A support ticket created with the Replyco support team.
object
Id of the created ticket. Quote it when contacting support about this issue.
Example
{ "id": "2718281828"}The request is invalid (e.g. subject is missing or too long).
User is not authenticated or authorized.
The support service is unavailable; the ticket was not created. Try again later.