Create a contact us subject
Creates a contact us subject. text and is_order_needed are required.
text is stored in the request language (see Translations and IGNORE_ACCEPT_LANGUAGE_HEADER in the section description).
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
Request body for creating a contact us subject. text and is_order_needed are required.
The subject label, written in the request language (see Translations in the section description).
Order StatusWhether the storefront contact form requires an order to be selected for this subject.
trueThe addresses messages sent with this subject are e-mailed to. Send null to use CONTACT_US_EMAIL_TO instead; an empty list is rejected with 400.
["support@example.com"]The created contact us subject.
A contact us subject offered on the storefront contact form.
The unique identifier of the subject.
1The subject label, in the request language (falls back to the default language when no translation exists).
Order StatusWhether the storefront contact form requires an order to be selected for this subject.
trueThe addresses messages sent with this subject are e-mailed to. When null, the storefront uses CONTACT_US_EMAIL_TO.
["support@example.com"]The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
POST /api/v1/remote/1/contact-us-subjects/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 83
{
"text": "Order Status",
"is_order_needed": true,
"recipients": [
"support@example.com"
]
}{
"pk": 1,
"text": "Order Status",
"is_order_needed": true,
"recipients": [
"support@example.com"
]
}Last updated
Was this helpful?

