Orders | Others
Add a comment to an order, with the option to send SMS, email or both
Sample request for adding a public comment with email notification:
POST /api/Orders/AddComment
{
"OrderId": "ORD-12345",
"CommentType": "Public",
"CommentText": "Hi! This is just a sample text.",
"SendEmail": true,
"EmailSubject": "Something order related",
"EmailTo": "customer@example.com",
"EmailFrom": "orders@yourcompany.com",
"SenderName": "Order Team"
}
Sample request for adding a public comment with SMS notification:
POST /api/Orders/AddComment
{
"OrderId": "ORD-12345",
"CommentType": "Public",
"CommentText": "Hi there! This is an SMS message for you ❤️",
"SendSms": true,
"SmsPhoneNumber": "+4712345678"
}
Sample request for adding an internal comment (staff only):
POST /api/Orders/AddComment
{
"OrderId": "ORD-12345",
"CommentType": "Internal",
"CommentText": "Customer called about delivery delay.",
"CreatedBy": "Support Team"
}
Notes:
- CommentType defaults to "Public" if not specified. CreatedBy defaults to the current API user's username if not specified.
- EmailTo, EmailFrom, SenderName, and SmsPhoneNumber will fall back to the store's (or global) default settings in Omnium if not specified.
- EmailTo falls back to the order's customer email. SmsPhoneNumber falls back to the order's customer phone.
post/api/Orders/AddComment
Request
- Base URL: https://api.omnium.no (the document declares no server; this is the origin it was published from)
- URL: https://api.omnium.no/api/Orders/AddComment
- Auth: API key in header Authorization
Request body
Response
Comment added successfully
Changes
No recorded changes to this operation across all 1 revision of this API.