curl --request POST \
--url https://api.salesive.com/api/v1/notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Sync complete",
"message": "Your catalog finished syncing — 128 products updated.",
"type": "info",
"url": "https://dashboard.salesive.com/products",
"data": {
"updated": 128
}
}
'import requests
url = "https://api.salesive.com/api/v1/notifications"
payload = {
"title": "Sync complete",
"message": "Your catalog finished syncing — 128 products updated.",
"type": "info",
"url": "https://dashboard.salesive.com/products",
"data": { "updated": 128 }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Sync complete',
message: 'Your catalog finished syncing — 128 products updated.',
type: 'info',
url: 'https://dashboard.salesive.com/products',
data: {updated: 128}
})
};
fetch('https://api.salesive.com/api/v1/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/notifications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Sync complete',
'message' => 'Your catalog finished syncing — 128 products updated.',
'type' => 'info',
'url' => 'https://dashboard.salesive.com/products',
'data' => [
'updated' => 128
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/notifications"
payload := strings.NewReader("{\n \"title\": \"Sync complete\",\n \"message\": \"Your catalog finished syncing — 128 products updated.\",\n \"type\": \"info\",\n \"url\": \"https://dashboard.salesive.com/products\",\n \"data\": {\n \"updated\": 128\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.salesive.com/api/v1/notifications")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Sync complete\",\n \"message\": \"Your catalog finished syncing — 128 products updated.\",\n \"type\": \"info\",\n \"url\": \"https://dashboard.salesive.com/products\",\n \"data\": {\n \"updated\": 128\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/notifications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Sync complete\",\n \"message\": \"Your catalog finished syncing — 128 products updated.\",\n \"type\": \"info\",\n \"url\": \"https://dashboard.salesive.com/products\",\n \"data\": {\n \"updated\": 128\n }\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Notification sent",
"data": {
"_id": "66b3f0a1c2d4e5f600112233",
"user": "66a1b2c3d4e5f60011223344",
"shop": "66a0a1b2c3d4e5f600112200",
"title": "Sync complete",
"message": "Your catalog finished syncing — 128 products updated.",
"type": "info",
"url": "https://dashboard.salesive.com/products",
"read": false,
"data": {
"updated": 128
},
"createdAt": "2026-06-28T09:30:00.000Z",
"updatedAt": "2026-06-28T09:30:00.000Z"
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}Send a notification to the merchant
Create an in-app notification delivered to the store owner, also pushed to their devices. Requires the SEND_NOTIFICATIONS scope.
curl --request POST \
--url https://api.salesive.com/api/v1/notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Sync complete",
"message": "Your catalog finished syncing — 128 products updated.",
"type": "info",
"url": "https://dashboard.salesive.com/products",
"data": {
"updated": 128
}
}
'import requests
url = "https://api.salesive.com/api/v1/notifications"
payload = {
"title": "Sync complete",
"message": "Your catalog finished syncing — 128 products updated.",
"type": "info",
"url": "https://dashboard.salesive.com/products",
"data": { "updated": 128 }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Sync complete',
message: 'Your catalog finished syncing — 128 products updated.',
type: 'info',
url: 'https://dashboard.salesive.com/products',
data: {updated: 128}
})
};
fetch('https://api.salesive.com/api/v1/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/notifications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Sync complete',
'message' => 'Your catalog finished syncing — 128 products updated.',
'type' => 'info',
'url' => 'https://dashboard.salesive.com/products',
'data' => [
'updated' => 128
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/notifications"
payload := strings.NewReader("{\n \"title\": \"Sync complete\",\n \"message\": \"Your catalog finished syncing — 128 products updated.\",\n \"type\": \"info\",\n \"url\": \"https://dashboard.salesive.com/products\",\n \"data\": {\n \"updated\": 128\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.salesive.com/api/v1/notifications")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Sync complete\",\n \"message\": \"Your catalog finished syncing — 128 products updated.\",\n \"type\": \"info\",\n \"url\": \"https://dashboard.salesive.com/products\",\n \"data\": {\n \"updated\": 128\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/notifications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Sync complete\",\n \"message\": \"Your catalog finished syncing — 128 products updated.\",\n \"type\": \"info\",\n \"url\": \"https://dashboard.salesive.com/products\",\n \"data\": {\n \"updated\": 128\n }\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Notification sent",
"data": {
"_id": "66b3f0a1c2d4e5f600112233",
"user": "66a1b2c3d4e5f60011223344",
"shop": "66a0a1b2c3d4e5f600112200",
"title": "Sync complete",
"message": "Your catalog finished syncing — 128 products updated.",
"type": "info",
"url": "https://dashboard.salesive.com/products",
"read": false,
"data": {
"updated": 128
},
"createdAt": "2026-06-28T09:30:00.000Z",
"updatedAt": "2026-06-28T09:30:00.000Z"
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}Authorizations
Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.
Body
Short heading for the notification.
Body text of the notification.
Category of the notification (e.g. "info", "order", "urgent"). Defaults to "info". A type of "urgent" is delivered with high push priority.
Optional deep-link URL the merchant opens when tapping the notification.
Optional arbitrary key/value metadata attached to the notification and forwarded in the push payload.
Response
The created notification.
Standard Salesive response envelope. The operation-specific payload is carried in data.
Was this page helpful?

