Message
The Message object represents a message in the system sent either internal or externally.
Find Message
Find one Message by id
URL parameters
- Name
id- Type
- string Required
- Description
- the id for the object to retrieve
Produces
The response content type: application/json
200 Response
- Name
data- Type
- object Required
- Description
- Message schema
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Properties for data object
- Name
appointmentEvent- Type
- one of: Rescheduled, Scheduled, Reminder, Confirm, Canceled, Acknowledgement Required
- Description
- Name
appointmentId- Type
- string Required
- Description
- appointment associated with this message
- Name
authorType- Type
- one of: Customer, User, System Required
- Description
- Name
automatedCampaignId- Type
- string Required
- Description
- the id of the automated campaign that generated this message
- Name
avoidSMSQuietHours- Type
- boolean Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
conversationId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerId- Type
- string Required
- Description
- the id of the customer that authored or was sent the message
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
detached- Type
- boolean Required
- Description
- true if message is public but has no reference to a customer (only for migration purposes
- Name
emailError- Type
- string Required
- Description
- error sending email, if any
- Name
emailId- Type
- string Required
- Description
- the id of the customer email that authored or was sent the message
- Name
emailStatus- Type
- one of: Pending, Sent, Read, Error, Delivered, Unknown Required
- Description
- Name
emailSubject- Type
- string Required
- Description
- overrides default email subject
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
internal- Type
- boolean Required
- Description
- Name
isOrderShare- Type
- boolean Required
- Description
- true if this message created via Order Share modal
- Name
locationId- Type
- string Required
- Description
- Name
locationReviewRequestId- Type
- string Required
- Description
- the id of the review request
- Name
meta- Type
- object Required
- Description
- the metadata about the most recent change to the row
- Name
metadata- Type
- object
- Description
- metadata reserved for customers to control
- Name
oneTimeCampaignBatchId- Type
- string Required
- Description
- the id of the one time campaign batch that generated this message
- Name
oneTimeCampaignId- Type
- string Required
- Description
- the id of the one time campaign that generated this message
- Name
orderId- Type
- string Required
- Description
- an order associated with this message
- Name
orderShareType- Type
- one of: Inspection, Order Required
- Description
- Name
origin- Type
- one of: ChatBot, Scheduler, Campaign, Web, Mobile, CustomerOrderPage, SMS, Email Required
- Description
- Name
phoneNumberId- Type
- string Required
- Description
- the id of the customer phone number that authored or was sent the message
- Name
requestAppointmentConfirmation- Type
- boolean Required
- Description
- if true, the email/sms will contain actions to confirm/decline an appointment
- Name
sendEmail- Type
- boolean Required
- Description
- if an email should be sent, is null if author is a Customer
- Name
sendSms- Type
- boolean Required
- Description
- if an sms should be sent, is null if author is a Customer
- Name
shopRead- Type
- boolean Required
- Description
- true if someone at the shop has read a Customer message, is null if author is a User
- Name
smsError- Type
- string Required
- Description
- error sending sms, if any
- Name
smsStatus- Type
- one of: Pending, Sent, Read, Error, Delivered, Unknown Required
- Description
- Name
suggestedReply- Type
- string Required
- Description
- if we can suggest a reply, this will have a value to suggest to the user in the app
- Name
suggestedReplyState- Type
- one of: None, Partial, Full Required
- Description
- Name
text- Type
- string Required
- Description
- appears in message center/thread (content of message if SMS, plaintext/preview if email
- Name
type- Type
- one of: Transactional, Marketing Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
userId- Type
- string Required
- Description
- the user who authored the message
- Name
vehicleId- Type
- string Required
- Description
- a vehicle associated with this message
- Name
vendorId- Type
- string Required
- Description
- a vendor associated with this message
- Name
emailDeliveries- Type
- array
- Description
- Name
files- Type
- array Required
- Description
- Name
orderDeleted- Type
- boolean
- Description
- true if the order is deleted
- Name
orderNumber- Type
- string
- Description
- the order number
- Name
smsDeliveries- Type
- array
- Description
- Name
userColor- Type
- string
- Description
- the color for the user
Properties for meta object
- Name
userId- Type
- string
- Description
- the user id that made the most recent change
- Name
sessionId- Type
- string
- Description
- the session id for the most recent change
- Name
version- Type
- number
- Description
- a monotonically increasing number for the most recent change
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Request
curl https://api.shopmonkey.cloud/v3/message/:id \
-H "Authorization: Bearer ${SM_TOKEN}"
Example Responseapplication/json
{
"success": true,
"data": {
"id": "id",
"meta": {
"userId": "userId",
"sessionId": "sessionId",
"version": 1
},
"createdDate": "createdDate",
"updatedDate": null,
"locationId": "locationId",
"companyId": "companyId",
"text": "text",
"sendEmail": true,
"emailSubject": null,
"emailStatus": null,
"emailError": null,
"sendSms": true,
"smsStatus": null,
"smsError": null,
"authorType": "authorType",
"origin": "origin",
"isOrderShare": true,
"customerId": null,
"userId": null,
"orderId": null,
"vehicleId": null,
"vendorId": null,
"shopRead": true,
"internal": true,
"detached": true,
"conversationId": null,
"deleted": true,
"deletedUserId": null,
"deletedDate": null,
"deletedReason": null,
"files": [
{
"id": "id",
"url": "url",
"thumbnailUrl": "thumbnailUrl",
"fileSize": 1,
"fileType": "fileType",
"fileName": "fileName"
}
]
}
}
List Messages
Find all messages
Query String parameters
- Name
collate- Type
- boolean
- Description
- if set to true, use natural sort collation when used with orderBy
- Name
ids- Type
- array
- Description
- Name
limit- Type
- number
- Description
- the limit on the number of records to return
- Name
orderby- Type
- string
- Description
- the order instructions for the result
- Name
params- Type
- string
- Description
- additional request specific params
- Name
skip- Type
- number
- Description
- the number of records to skip for a paginated result
- Name
where- Type
- string
- Description
- an object to use for filtering the results
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- array Required
- Description
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
meta- Type
- object
- Description
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Properties for meta object
- Name
hasMore- Type
- boolean
- Description
- if there are more records available
- Name
sums- Type
- object
- Description
- Name
total- Type
- number
- Description
- the total number of records
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Request
curl https://api.shopmonkey.cloud/v3/message \
-H "Authorization: Bearer ${SM_TOKEN}"
Example Responseapplication/json
{
"success": true,
"data": [
{
"id": "id",
"createdDate": "createdDate",
"updatedDate": null,
"locationId": "locationId",
"companyId": "companyId",
"text": "text",
"sendEmail": true,
"emailSubject": null,
"emailStatus": null,
"emailError": null,
"sendSms": true,
"smsStatus": null,
"smsError": null,
"authorType": "authorType",
"origin": "origin",
"isOrderShare": true,
"customerId": null,
"userId": null,
"orderId": null,
"vehicleId": null,
"vendorId": null,
"shopRead": true,
"internal": true,
"detached": true,
"conversationId": null,
"deleted": true,
"deletedUserId": null,
"deletedDate": null,
"deletedReason": null,
"files": [
{
"id": "id",
"url": "url",
"thumbnailUrl": "thumbnailUrl",
"fileSize": 1,
"fileType": "fileType",
"fileName": "fileName"
}
]
}
]
}
Create Message
Create a new customer message
Body parameters
Consumes
The following content type is required: application/json
- Name
emailId- Type
- string
- Description
- the id of the customer email that authored or was sent the message
- Name
emailSubject- Type
- string
- Description
- overrides default email subject
- Name
isOrderShare- Type
- boolean
- Description
- true if this message created via Order Share modal
- Name
orderId- Type
- string
- Description
- an order associated with this message
- Name
orderShareType- Type
- one of: Inspection, Order
- Description
- Name
phoneNumberId- Type
- string
- Description
- the id of the customer phone number that authored or was sent the message
- Name
sendEmail- Type
- boolean
- Description
- if an email should be sent, is null if author is a Customer
- Name
sendSms- Type
- boolean
- Description
- if an sms should be sent, is null if author is a Customer
- Name
suggestedReplyState- Type
- one of: None, Partial, Full
- Description
- Name
vehicleId- Type
- string
- Description
- a vehicle associated with this message
- Name
customerId- Type
- string Required
- Description
- the id of the customer that authored or was sent the message
- Name
text- Type
- string Required
- Description
- appears in message center/thread (content of message if SMS, plaintext/preview if email
- Name
files- Type
- array
- Description
- an ordered array of file ids
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- object Required
- Description
- Message schema
Properties for data object
- Name
appointmentEvent- Type
- one of: Rescheduled, Scheduled, Reminder, Confirm, Canceled, Acknowledgement Required
- Description
- Name
appointmentId- Type
- string Required
- Description
- appointment associated with this message
- Name
authorType- Type
- one of: Customer, User, System Required
- Description
- Name
automatedCampaignId- Type
- string Required
- Description
- the id of the automated campaign that generated this message
- Name
avoidSMSQuietHours- Type
- boolean Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
conversationId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerId- Type
- string Required
- Description
- the id of the customer that authored or was sent the message
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
detached- Type
- boolean Required
- Description
- true if message is public but has no reference to a customer (only for migration purposes
- Name
emailError- Type
- string Required
- Description
- error sending email, if any
- Name
emailId- Type
- string Required
- Description
- the id of the customer email that authored or was sent the message
- Name
emailStatus- Type
- one of: Pending, Sent, Read, Error, Delivered, Unknown Required
- Description
- Name
emailSubject- Type
- string Required
- Description
- overrides default email subject
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
internal- Type
- boolean Required
- Description
- Name
isOrderShare- Type
- boolean Required
- Description
- true if this message created via Order Share modal
- Name
locationId- Type
- string Required
- Description
- Name
locationReviewRequestId- Type
- string Required
- Description
- the id of the review request
- Name
oneTimeCampaignBatchId- Type
- string Required
- Description
- the id of the one time campaign batch that generated this message
- Name
oneTimeCampaignId- Type
- string Required
- Description
- the id of the one time campaign that generated this message
- Name
orderId- Type
- string Required
- Description
- an order associated with this message
- Name
orderShareType- Type
- one of: Inspection, Order Required
- Description
- Name
origin- Type
- one of: ChatBot, Scheduler, Campaign, Web, Mobile, CustomerOrderPage, SMS, Email Required
- Description
- Name
phoneNumberId- Type
- string Required
- Description
- the id of the customer phone number that authored or was sent the message
- Name
requestAppointmentConfirmation- Type
- boolean Required
- Description
- if true, the email/sms will contain actions to confirm/decline an appointment
- Name
sendEmail- Type
- boolean Required
- Description
- if an email should be sent, is null if author is a Customer
- Name
sendSms- Type
- boolean Required
- Description
- if an sms should be sent, is null if author is a Customer
- Name
shopRead- Type
- boolean Required
- Description
- true if someone at the shop has read a Customer message, is null if author is a User
- Name
smsError- Type
- string Required
- Description
- error sending sms, if any
- Name
smsStatus- Type
- one of: Pending, Sent, Read, Error, Delivered, Unknown Required
- Description
- Name
suggestedReply- Type
- string Required
- Description
- if we can suggest a reply, this will have a value to suggest to the user in the app
- Name
suggestedReplyState- Type
- one of: None, Partial, Full Required
- Description
- Name
text- Type
- string Required
- Description
- appears in message center/thread (content of message if SMS, plaintext/preview if email
- Name
type- Type
- one of: Transactional, Marketing Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
userId- Type
- string Required
- Description
- the user who authored the message
- Name
vehicleId- Type
- string Required
- Description
- a vehicle associated with this message
- Name
vendorId- Type
- string Required
- Description
- a vendor associated with this message
- Name
emailDeliveries- Type
- array
- Description
- Name
files- Type
- array Required
- Description
- Name
orderDeleted- Type
- boolean
- Description
- true if the order is deleted
- Name
orderNumber- Type
- string
- Description
- the order number
- Name
smsDeliveries- Type
- array
- Description
- Name
userColor- Type
- string
- Description
- the color for the user
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Requestapplication/json
curl https://api.shopmonkey.cloud/v3/message \
-H "Authorization: Bearer ${SM_TOKEN}" \
-H 'Content-Type: application/json' \
--data '{ "customerId" : "value", "text" : "value" }'
Example Responseapplication/json
{
"success": true,
"data": {
"id": "id",
"createdDate": "createdDate",
"updatedDate": null,
"locationId": "locationId",
"companyId": "companyId",
"text": "text",
"sendEmail": true,
"emailSubject": null,
"emailStatus": null,
"emailError": null,
"sendSms": true,
"smsStatus": null,
"smsError": null,
"authorType": "authorType",
"origin": "origin",
"isOrderShare": true,
"customerId": null,
"userId": null,
"orderId": null,
"vehicleId": null,
"vendorId": null,
"shopRead": true,
"internal": true,
"detached": true,
"conversationId": null,
"deleted": true,
"deletedUserId": null,
"deletedDate": null,
"deletedReason": null,
"files": [
{
"id": "id",
"url": "url",
"thumbnailUrl": "thumbnailUrl",
"fileSize": 1,
"fileType": "fileType",
"fileName": "fileName"
}
]
}
}
Set a message thread to read.
Dedicated endpoint for marking a message thread as "read" for the user making the call. Users can only mark their own threads as read. Sets the unreadMessagesCount to 0.
URL parameters
- Name
id- Type
- string Required
- Description
- the id for the MessageThreadMetadata
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- object Required
- Description
- MessageThreadMetadata schema
Properties for data object
- Name
archived- Type
- boolean Required
- Description
- a boolean to control if conversation is marked archived
- Name
companyId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerId- Type
- string Required
- Description
- a reference to a customer
- Name
draftMessage- Type
- string Required
- Description
- stores unsent draft message
- Name
id- Type
- string Required
- Description
- Name
important- Type
- boolean Required
- Description
- a boolean to control if conversation is marked important
- Name
locationId- Type
- string Required
- Description
- Name
messageThreadId- Type
- string Required
- Description
- a reference to a message thread
- Name
unreadMessagesCount- Type
- integer Required
- Description
- a number of unread messages
- Name
unreadTimestamp- Type
- string Required
- Description
- the timestamp when the first unread message was set
- Name
updatedDate- Type
- string Required
- Description
- Name
userId- Type
- string Required
- Description
- a reference to a user
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Requestapplication/json
curl https://api.shopmonkey.cloud/v3/message_thread_metadata/:id/read \
-H "Authorization: Bearer ${SM_TOKEN}" \
-X PUT -H 'Content-Type: application/json' \
--data '{}'
Example Responseapplication/json
{
"success": true,
"data": {
"id": "id",
"createdDate": "createdDate",
"updatedDate": null,
"locationId": "locationId",
"companyId": "companyId",
"unreadMessagesCount": null,
"important": true,
"archived": true,
"userId": "userId",
"customerId": "customerId"
}
}
Get Inbox
Get user inbox messages
URL parameters
- Name
id- Type
- string Required
- Description
- the id for the user
Query String parameters
- Name
collate- Type
- boolean
- Description
- if set to true, use natural sort collation when used with orderBy
- Name
ids- Type
- array
- Description
- Name
limit- Type
- number
- Description
- the limit on the number of records to return
- Name
orderby- Type
- string
- Description
- the order instructions for the result
- Name
params- Type
- string
- Description
- additional request specific params
- Name
skip- Type
- number
- Description
- the number of records to skip for a paginated result
- Name
where- Type
- string
- Description
- an object to use for filtering the results
- Name
unresponded- Type
- boolean
- Description
- Filter threads by unresponded status
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- array Required
- Description
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
meta- Type
- object
- Description
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Properties for meta object
- Name
hasMore- Type
- boolean
- Description
- if there are more records available
- Name
lastRefreshedAt- Type
- string
- Description
- the last refreshed at timestamp
- Name
sums- Type
- object
- Description
- Name
total- Type
- number
- Description
- the total number of records
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Request
curl https://api.shopmonkey.cloud/v3/user/:id/inbox \
-H "Authorization: Bearer ${SM_TOKEN}"
Example Responseapplication/json
{
"success": true,
"data": [
{
"id": "id",
"createdDate": "createdDate",
"updatedDate": null,
"locationId": "locationId",
"companyId": "companyId",
"text": "text",
"sendEmail": true,
"emailSubject": null,
"emailStatus": null,
"emailError": null,
"sendSms": true,
"smsStatus": null,
"smsError": null,
"authorType": "authorType",
"origin": "origin",
"isOrderShare": true,
"customerId": null,
"userId": null,
"orderId": null,
"vehicleId": null,
"vendorId": null,
"shopRead": true,
"internal": true,
"detached": true,
"conversationId": null,
"deleted": true,
"deletedUserId": null,
"deletedDate": null,
"deletedReason": null,
"customer": {
"id": "id",
"customerType": "customerType",
"firstName": null,
"lastName": null,
"companyName": null
},
"messageThreadMetadata": {
"id": "id",
"createdDate": "createdDate",
"updatedDate": null,
"locationId": "locationId",
"companyId": "companyId",
"unreadMessagesCount": null,
"important": true,
"archived": true,
"userId": "userId",
"customerId": "customerId"
},
"order": {
"id": "id",
"number": 1
}
}
]
}
Get notification config
Get user notification config
URL parameters
- Name
id- Type
- string Required
- Description
- the id for the user
Query String parameters
- Name
collate- Type
- boolean
- Description
- if set to true, use natural sort collation when used with orderBy
- Name
ids- Type
- array
- Description
- Name
limit- Type
- number
- Description
- the limit on the number of records to return
- Name
orderby- Type
- string
- Description
- the order instructions for the result
- Name
params- Type
- string
- Description
- additional request specific params
- Name
skip- Type
- number
- Description
- the number of records to skip for a paginated result
- Name
where- Type
- string
- Description
- an object to use for filtering the results
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- array Required
- Description
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
meta- Type
- object
- Description
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Properties for meta object
- Name
hasMore- Type
- boolean
- Description
- if there are more records available
- Name
sums- Type
- object
- Description
- Name
total- Type
- number
- Description
- the total number of records
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Request
curl https://api.shopmonkey.cloud/v3/user/:id/notification_config \
-H "Authorization: Bearer ${SM_TOKEN}"
Example Responseapplication/json
{
"success": true,
"data": [
{
"sendEmail": true,
"sendInApp": true,
"sendSms": true
}
]
}
Set notification config
Set user notification config
URL parameters
- Name
id- Type
- string Required
- Description
- the id for the user
Query String parameters
- Name
collate- Type
- boolean
- Description
- if set to true, use natural sort collation when used with orderBy
- Name
ids- Type
- array
- Description
- Name
limit- Type
- number
- Description
- the limit on the number of records to return
- Name
orderby- Type
- string
- Description
- the order instructions for the result
- Name
params- Type
- string
- Description
- additional request specific params
- Name
skip- Type
- number
- Description
- the number of records to skip for a paginated result
- Name
where- Type
- string
- Description
- an object to use for filtering the results
Body parameters
Consumes
The following content type is required: application/json
Array of objects with the following properties:
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- null Required
- Description
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Requestapplication/json
curl https://api.shopmonkey.cloud/v3/user/:id/notification_config \
-H "Authorization: Bearer ${SM_TOKEN}" \
-X PUT -H 'Content-Type: application/json' \
--data '{}'
Example Responseapplication/json
{
"success": true,
"data": null
}