Update Notifications Setting
curl --request PUT \
--url https://api.hit-pay.com/v1/notifications \
--header 'Content-Type: application/json' \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>' \
--data '
{
"customer_receipt@email": true,
"daily_collection@email": true,
"daily_collection@push_notification": true,
"daily_payout@email": true,
"incoming_payment@email": true,
"incoming_payment@push_notification": true,
"new_order@email": true,
"new_order@push_notification": true,
"pending_order@email": true,
"mall_gto_sync@email": true
}
'import requests
url = "https://api.hit-pay.com/v1/notifications"
payload = {
"customer_receipt@email": True,
"daily_collection@email": True,
"daily_collection@push_notification": True,
"daily_payout@email": True,
"incoming_payment@email": True,
"incoming_payment@push_notification": True,
"new_order@email": True,
"new_order@push_notification": True,
"pending_order@email": True,
"mall_gto_sync@email": True
}
headers = {
"X-BUSINESS-API-KEY": "<x-business-api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'X-BUSINESS-API-KEY': '<x-business-api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
'customer_receipt@email': true,
'daily_collection@email': true,
'daily_collection@push_notification': true,
'daily_payout@email': true,
'incoming_payment@email': true,
'incoming_payment@push_notification': true,
'new_order@email': true,
'new_order@push_notification': true,
'pending_order@email': true,
'mall_gto_sync@email': true
})
};
fetch('https://api.hit-pay.com/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.hit-pay.com/v1/notifications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'customer_receipt@email' => true,
'daily_collection@email' => true,
'daily_collection@push_notification' => true,
'daily_payout@email' => true,
'incoming_payment@email' => true,
'incoming_payment@push_notification' => true,
'new_order@email' => true,
'new_order@push_notification' => true,
'pending_order@email' => true,
'mall_gto_sync@email' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-BUSINESS-API-KEY: <x-business-api-key>"
],
]);
$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.hit-pay.com/v1/notifications"
payload := strings.NewReader("{\n \"customer_receipt@email\": true,\n \"daily_collection@email\": true,\n \"daily_collection@push_notification\": true,\n \"daily_payout@email\": true,\n \"incoming_payment@email\": true,\n \"incoming_payment@push_notification\": true,\n \"new_order@email\": true,\n \"new_order@push_notification\": true,\n \"pending_order@email\": true,\n \"mall_gto_sync@email\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-BUSINESS-API-KEY", "<x-business-api-key>")
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.put("https://api.hit-pay.com/v1/notifications")
.header("X-BUSINESS-API-KEY", "<x-business-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customer_receipt@email\": true,\n \"daily_collection@email\": true,\n \"daily_collection@push_notification\": true,\n \"daily_payout@email\": true,\n \"incoming_payment@email\": true,\n \"incoming_payment@push_notification\": true,\n \"new_order@email\": true,\n \"new_order@push_notification\": true,\n \"pending_order@email\": true,\n \"mall_gto_sync@email\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hit-pay.com/v1/notifications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-BUSINESS-API-KEY"] = '<x-business-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_receipt@email\": true,\n \"daily_collection@email\": true,\n \"daily_collection@push_notification\": true,\n \"daily_payout@email\": true,\n \"incoming_payment@email\": true,\n \"incoming_payment@push_notification\": true,\n \"new_order@email\": true,\n \"new_order@push_notification\": true,\n \"pending_order@email\": true,\n \"mall_gto_sync@email\": true\n}"
response = http.request(request)
puts response.read_body[
{
"event": "customer_receipt",
"channel": "email"
},
{
"event": "daily_collection",
"channel": "email"
},
{
"event": "daily_collection",
"channel": "push_notification"
},
{
"event": "daily_payout",
"channel": "email"
},
{
"event": "incoming_payment",
"channel": "email"
},
{
"event": "incoming_payment",
"channel": "push_notification"
},
{
"event": "new_order",
"channel": "email"
},
{
"event": "new_order",
"channel": "push_notification"
}
]Notifications
Update Notifications
Update notification preferences and alert channels
PUT
/
v1
/
notifications
Update Notifications Setting
curl --request PUT \
--url https://api.hit-pay.com/v1/notifications \
--header 'Content-Type: application/json' \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>' \
--data '
{
"customer_receipt@email": true,
"daily_collection@email": true,
"daily_collection@push_notification": true,
"daily_payout@email": true,
"incoming_payment@email": true,
"incoming_payment@push_notification": true,
"new_order@email": true,
"new_order@push_notification": true,
"pending_order@email": true,
"mall_gto_sync@email": true
}
'import requests
url = "https://api.hit-pay.com/v1/notifications"
payload = {
"customer_receipt@email": True,
"daily_collection@email": True,
"daily_collection@push_notification": True,
"daily_payout@email": True,
"incoming_payment@email": True,
"incoming_payment@push_notification": True,
"new_order@email": True,
"new_order@push_notification": True,
"pending_order@email": True,
"mall_gto_sync@email": True
}
headers = {
"X-BUSINESS-API-KEY": "<x-business-api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'X-BUSINESS-API-KEY': '<x-business-api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
'customer_receipt@email': true,
'daily_collection@email': true,
'daily_collection@push_notification': true,
'daily_payout@email': true,
'incoming_payment@email': true,
'incoming_payment@push_notification': true,
'new_order@email': true,
'new_order@push_notification': true,
'pending_order@email': true,
'mall_gto_sync@email': true
})
};
fetch('https://api.hit-pay.com/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.hit-pay.com/v1/notifications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'customer_receipt@email' => true,
'daily_collection@email' => true,
'daily_collection@push_notification' => true,
'daily_payout@email' => true,
'incoming_payment@email' => true,
'incoming_payment@push_notification' => true,
'new_order@email' => true,
'new_order@push_notification' => true,
'pending_order@email' => true,
'mall_gto_sync@email' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-BUSINESS-API-KEY: <x-business-api-key>"
],
]);
$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.hit-pay.com/v1/notifications"
payload := strings.NewReader("{\n \"customer_receipt@email\": true,\n \"daily_collection@email\": true,\n \"daily_collection@push_notification\": true,\n \"daily_payout@email\": true,\n \"incoming_payment@email\": true,\n \"incoming_payment@push_notification\": true,\n \"new_order@email\": true,\n \"new_order@push_notification\": true,\n \"pending_order@email\": true,\n \"mall_gto_sync@email\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-BUSINESS-API-KEY", "<x-business-api-key>")
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.put("https://api.hit-pay.com/v1/notifications")
.header("X-BUSINESS-API-KEY", "<x-business-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customer_receipt@email\": true,\n \"daily_collection@email\": true,\n \"daily_collection@push_notification\": true,\n \"daily_payout@email\": true,\n \"incoming_payment@email\": true,\n \"incoming_payment@push_notification\": true,\n \"new_order@email\": true,\n \"new_order@push_notification\": true,\n \"pending_order@email\": true,\n \"mall_gto_sync@email\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hit-pay.com/v1/notifications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-BUSINESS-API-KEY"] = '<x-business-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_receipt@email\": true,\n \"daily_collection@email\": true,\n \"daily_collection@push_notification\": true,\n \"daily_payout@email\": true,\n \"incoming_payment@email\": true,\n \"incoming_payment@push_notification\": true,\n \"new_order@email\": true,\n \"new_order@push_notification\": true,\n \"pending_order@email\": true,\n \"mall_gto_sync@email\": true\n}"
response = http.request(request)
puts response.read_body[
{
"event": "customer_receipt",
"channel": "email"
},
{
"event": "daily_collection",
"channel": "email"
},
{
"event": "daily_collection",
"channel": "push_notification"
},
{
"event": "daily_payout",
"channel": "email"
},
{
"event": "incoming_payment",
"channel": "email"
},
{
"event": "incoming_payment",
"channel": "push_notification"
},
{
"event": "new_order",
"channel": "email"
},
{
"event": "new_order",
"channel": "push_notification"
}
]Headers
Example:
"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"
Body
application/json
Example:
true
Example:
true
Example:
true
Example:
true
Example:
true
Example:
true
Example:
true
Example:
true
Example:
true
Example:
true
Last modified on February 25, 2026
Was this page helpful?
⌘I