Update orders notification template settings

To update orders notification template settings, use order/update_orders_notification:

svc=resource/update_orders_notification&params={"resourceId":<long>,
						"ordersNotification":<JSON>}

Parameters

Name Description
resourceId resource id
ordersNotification orders notification template settings JSON

JSON keys

{
"sms":<text>,		/* sms notification text */
"subj":<text>,		/* email subject */
"text":<text>,		/* email text */
"html":<uint>,		/* email text as html (1 - yes) */ 
"currency":<text>,	/* currency */
"dns":<text>,		/* locator URL (without http://)*/
"driverPushMsg":{	/* driver PUSH notification settings */
	"crR":{		
	    "t":<text>	/* notification text upon new route creation */
  	},
    	"delR":{
	    "t":<text>	/* notification text upon route deleting */
    	},
    	"updC":{
	    "t":<text>	/* notification text upon contact details changing */
    	},
    	"attO":{
	    "t":<text>	/* notification text upon files attaching */
    	},
    	"detO":{
            "t":<text>	/* notification text upon files deleting */
    	},
    	"updG":{
            "t":<text>	/* notification text upon order parameters changing */
        },						    	
    	"vtD":{
            "t":<text>	/* notification text upon delivery time exceeding */
    	},
    	"utD":{
            "t":<text>	/* notification text upon unloading time exceeding */
    	},
    	"trk":{
            "t":<text>	/* notification text upon deviation from a route */
    	}
    	"skp":{
            "t":<text>	/* notification text upon skiping a order */
    	},
    	"stO":{
            "t":<text>	/* notification text upon order non-confirmation by courier/operator */
    	}    
    }, 
}

Tegs of notification body and email subject

Name Description
%ORDER_NAME% order name
%ORDER_ARRIVAL_TIME% arrival time
%ORDER_COST% order cost
%ORDER_COMMENT% comment to order
%LOCATOR_LINK% link to locator to order unit

Response

{ }
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2021 Gurtam