Skip to main content

Description Parameter


The following section explains each parameter used in the JSON request to send a message.

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
signatureSHA 256 HASHYESEncrypted (Username+Password+Time), time refers to time field
timeString (Unix timestamp)YESCurrent Request Time (Unix Timestamp)

Example: Friday, November 1, 2024, 5:47:43 PM GMT+07:00 become “1730458063”
typeN (Numeric)YES1 (Send Primary Backup), 2 (Single channel / Send All)
usernameAN (Alpha Numeric)YESUsername Division
ref_idAN (Alpha Numeric) (≤50)YESUnique Id generated by client (lowercase)
subjectANS (Alpha Numeric Space) (< 100)YESSending Message Subject
sender_IDANS (Alpha Numeric Space)YESSender Name (provided by sprint)
budget_codeANS (Alpha Numeric Space)NOAdditional information, maximum 180 character
channelJSON ObjectYESDescribe the channels used for sending messages
Channel: SMS, Email, Line, Telegram, Facebook, & WhatsApp
Example:
"channel":
"sms":

Description Fields For Sending Message Use Channel SMS

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
messageTextYESMessage to be sent

Sample:
YTH. Bapak/Ibu……
msisdnN (Numeric), Plus (+)YESMobile phone number, with 0, 62 or +
backup_onAN (Alpha Numeric)NOFormat: status1;status2
Mapping:
1 – Unsent
2 – Undelivered
3 – Pending
4 – Failed

Sample:
1;3
backup_expAN (Alpha Numeric)NOExpire in minutes.
Except pending, set 0.

Format: expire1;expire2

Sample:
0;10
use_backup_senderBooleanNOUsed to back up messages via SMS with credit deduction

default “false” → Message backup is not enabled
true → Message backup is active

Description Fields For Sending Message Use Channel Email

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
messageTextNOIf not using a template, you can write free text.

Static with template: This value can empty

Dynamic with template: Dynamic Values

Separator: “:” dan “;"

Sample:
nama:Sprint;alamat:Jl. Fatmawati
emailValid Email FormatYESMust be a valid email format
attachmentTextNOPath Format: https://Path/filename
Note: https protocol is a must

File Extension:
Email: jpg, png, xls, xlsx, pdf, ppt, pptx, doc, docx, wav, mp4, txt

Max Size: 5MB/file
Separator: “;”

Sample:
https://www.domain.com/test.pdf; https://www.domain.com/test2.pdf
template_idAN (Alpha Numeric)NOId template generated from sandeza web
Template_id mandatory, If the email is sent using a template
Then param message follows dynamic parameter
backup_onAN (Alpha Numeric)NOFormat: status1; status2
Mapping:
1 – Unsent
2 – Undelivered
3 – Pending
5 – Spam
6 – Bounced
7 – Blacklist

Sample:
1;3
backup_expAN (Alpha Numeric) (≤50)NOExpire in minutes.
Except pending, set 0.

Format: expire1; expire2

Sample:
0;5

Description Fields For Sending Message Use Channel Line, Telegram, Facebook

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
messageTextYESBody (non-HTML format)
chat_idAN (Alpha Numeric)YESSocial id / metadata id
attachmentTextNOPath Format: https://Path/filename
Note: https protocol is a must

File Extension:
Line: jpg, png
Telegram: jpg, png, pdf, mp4
Facebook: jpg, png, xls, xlsx, pdf, ppt, pptx, doc, docx, wav, mp4, txt

Max File Size: 5MB/file
Separator: “;”

Sample:
https://www.domain.com/test.pdf; https://www.domain.com/test2.pdf
backup_onAN (Alpha Numeric)NOFormat: status1; status2
Mapping:
1 – Unsent
3 – Pending
4 – Failed

Sample:
1;4
backup_expAN (Alpha Numeric) (≤50)NOExpire in minutes.
Except pending, set 0.

Format: expire1; expire2

Sample:
0;5

Description Fields For Sending Message Use Channel WhatsApp Template Use Delimeter Format

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
msisdnN (Numeric), Plus (+)YESMobile phone number, with 0, 62 or +
template_idAN (Alpha Numeric)YESTemplate Code registered in Saneza
headerTextNOMessage on header
Note: This field for dynamic parameter

Format: type:=:value

Type: text, Image, video, document, location

Allowed sample extension: .jpeg, .png, 3gp, .mp4, .txt, .xls, .xlsx, .doc, .ppt

Size limit image: 2MB
Size limit video: 10MB
Size limit document: 15MB

Sample:
Text: text:=:Sprint
Doc: document:=:https://www.domain.com/test.pdf
Image : image:=:https://www.domain.com/test.jpg
messageTextNOMessage on body
Note: This field for dynamic parameter

Format: type:=:value1||type:=:value2

Type: text

Separator: ||

Sample :
text:=:Sprint || text:=:Sandeza

NOTE: if the template type is authentication, then the text value of the message must match the value of 'value_otp' on the button."
buttonTextNOMessage on button
Note: This field for dynamic parameter

Format :
Template button otp :
button:=:url:=:value_otp
Template button visit website:
button:=:url:=:value_path_url

Type: button URL
Sample:
button:=:url:=:123456
button:=:url:=:login.html

NOTE: if the template type is authentication, then the text value of the message must match the value of 'value_otp' on the button."
attachmentTextNOPath Format: https://Path/filename
Note: https protocol is a must

File Extension:
Whatsapp: jpg, png, xls, xlsx, pdf, ppt, pptx, doc, docx, wav, mp4, txt

Max Size: 5MB/file
Separator: “;”

Sample:
https://www.domain.com/test.pdf; https://www.
domain.com/test2.pdf
backup_onAN (Alpha Numeric)NOFormat: status1; status2

Mapping:
1 – Unsent
2 – Undelivered
3 – Pending
4 – Failed
9 – Delivered

Sample:
2;3
backup_expAN (Alpha Numeric)NOExpire in minutes.
Except pending, set 0.

Format: expire1; expire2

Sample:
0;10

Description Fields For Sending Message Use Channel WhatsApp Template Use JSON Format

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
msisdnN (Numeric), Plus (+)YESMobile phone number, with 0, 62 or +
template_idAN (Alpha Numeric)YESTemplate Id registered
headerJSON ObjectNOMessage on header

This field for dynamic parameter header (Mandatory)

Type dynamic parameter: text, Image, video, document, location

See “Description Field Header” for details
messageJSON ObjectNOMessage on body

This field for dynamic parameter message (Mandatory)

Type dynamic parameter: text

See “Description Field Message” for details

NOTE: if the template type is authentication, then the text value of the message must match the value of 'value_otp' on the button."
buttonJSON ObjectNOMessage on button

This field for a dynamic card carousel component (Mandatory)

Type dynamic parameter: button URL, button catalog, button MPM

See “Description Field Button” for details

NOTE: if the template type is authentication, then the text value of the message must match the value of 'value_otp' on the button."
carouselJSON ObjectNOMessage on card carousel

This field for dynamic component card carousel (Mandatory)

Sample Type of carousel card component that can be dynamic:
Header à image & video
Body à text
Button à Quick_Reply & URL

See “Description Field Carousel” for details
attachmentTextNOPath Format: https://Path/filename
Note: https protocol is a must

File Extension:
WhatsApp: jpg, png, xls, xlsx, pdf, ppt, pptx, doc, docx, wav, mp4, txt

Max Size: 5MB/file
Separator: “;”

Sample:
https://www.domain.com/test.pdf; https://www.
domain.com/test2.pdf
backup_onAN (Alpha Numeric)NOFormat: status1; status2

Mapping:
1 – Unsent
2 – Undelivered
3 – Pending
4 – Failed
9 – Delivered

Sample:
2;3
backup_expAN (Alpha Numeric)NOExpire in minutes.
Except pending, set 0.

Format: expire1; expire2

Sample:
0;10

Description Fields Header

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType of header
This value always “Header” for component template type header
parameterArrayYESDetail information for parameter header dynamic

Description For field parameter header

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType for header dynamic
Example: text, Image, video, document, location
textStringNOSample text dynamic from header

Mandatory if header type text
imageJSON ObjectNOPlaceholder for image

Allowed sample extension: .jpeg, .png
Size limit: 2MB

Mandatory if header type image
videoJSON ObjectNOPlaceholder for video

Allowed sample extension: .3gp, .mp4
Size limit: 10MB

Mandatory if header type video
documentJSON ObjectNOPlaceholder for document

Allowed sample extension: .txt, .xls, .xlsx, .doc, .ppt, .pdf
Size limit: 15MB

Mandatory if header type document
locationJSON ObjectNOPlaceholder for location

Mandatory if header type location
Additional fields required when the type of header is media or location
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
linkStringNOStorage location for media (image/video/document) file
This field for header type: image, video, document
filenameStringNODisplayed Document Filename
latitudeFloatNOType Location (coordinates point)
This field for header type: location
longitudeFloatNOType Location (coordinates point)
This field for header type: location
nameStringNODetail name of the location
This field for header type: location
addressStringNODetail address of the location
This field for header type: location

Description Fields Message

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType of message
This value always “Body” for component template type message
parameterArrayYESDetail information for parameter body dynamic

Description For field parameter body

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType for body dynamic
Example: text
textStringYESSample text dynamic from body
Mandatory if body type text

Description Fields Button

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType of button
This value always “Button” for component template type button
sub_typeStringYESSub type for button dynamic
Example: URL, catalog, MPM
indexIntegerYESindex is the order of the button, starting from 0 to 9
parameterArrayYESDetail information for parameter button dynamic

Description For field parameter button

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
TypeStringYESType for sub_type button dynamic:
Text for Type URL
Action for Type catalog & MPM
textStringNOSample text dynamic from button
Mandatory if button type text
actionJSON ObjectNODetail of the action information
Additional fields required when the type of Button is Catalog or MPM
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
Thumbnail_ product _retailer_idStringYESItem SKU number. Labelled as Content ID in the Commerce Manager.
The thumbnail of this item will be used as the message's header image.
sectionsJSON ObjectNODetail of the sections information
Additional fields required when the type of button is MPM
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
titleStringYESSection title text.
You can specify up to 10 sections.
Maximum 24 characters. Markdown is not supported
product_itemsArrayYESDetail of the product_item information
Additional fields required when the type of button is MPM
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
product_retailer_idStringYESSKU number of the items you want to display in the section.
The SKU number is labeled as Content ID in Commerce Manager.
Supports a total of up to 30 products across all sections.
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType of Carousel
This value always “Carousel” for component template type Carousel
cardsArrayYESDetail of the cards information
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
card_indexIntegerYESZero-indexed order in which card should appear within the card carousel.
0 indicates first card, 1 indicates second card, etc.
componentsStringYESDetail of the components cards information
Description For Field Components Cards
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType from component carousel card
Example: header, body, button
sub_typeStringNOThis field is used if components type is button
Example: Quick_reply, URL
indexIntegerNOThis field is used if components type is button
index is the order of the button
starting from 0 to 9
parametersArrayYESDetail information for parameter component dynamic
for detail see:“Additional fields required If field type is “header" , “body” , “button” “
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType message in header
Example: Image or Video
imageJSON ObjectNOThe field is used when the header type is an image.
videoJSON ObjectNOThe field is used when the header type is an image.
Additional fields required for image or video
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
linkStringYESStorage location for media files: image or video
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType message in body
textJSON ObjectYESSample message for param dynamic body
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType from sub type button
This value is always payload for the sub-type button Quick_Reply
payloadStringNOThe payload defined by the developer that is displayed when the button is clicked, in addition to the display text on the button

Description Fields For Sending Message Use Channel WhatsApp Non-Template

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
msisdnN (Numeric), Plus (+)YESMobile phone number, with 0, 62 or +
messageJSON ObjectYESMessage on WhatsApp
See “Description Field Message” for details

Description Field Message

FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType of message
Example:
Text, Media (Audio, Image, Video, Document), Button, List, Location
headerJSON ObjectNOThis field is used for the message type Button & List
See “Description Field in header” for details
bodyJSON ObjectYESThis field is used for all message types
See “Description Field in body” for details
footerJSON ObjectNOThis field is used for the message type Button & List
See “Description Field in footer” for details

Additional Fields When Message Type is “text” or “Media” (Audio, Image, Video, Document)

Description Field In Body
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
textStringYESText message content in header
This field used if type message is text
mediaJSON ObjectNOThis field used if type message is media (audio, image, video, document)
Additional fields required for media
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
urlStringYESStorage location for media files: audio, image, video, document
nameStringNODisplay name of the media file

Description For field Type when message type is Button

Description Field In Header
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType message from header
example:
· If type message is button: text, image, video, document
· If type message is list: text
textStringYESText message content in header
media_urlStringNOStorage location for media files: image or video
nameStringNODisplay name of the media file
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
textStringNOText message content in footer
Description Field In Body
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
textStringYESText message content in header
This field used if type message is text
buttonJSON ObjectNOThis field used if type message is button
Additional fields required for button
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
TypeStringYESType from button in body
keyStringYESButton ID received from the client and returned if there is a post back from the client.
titleStringYESAs a button label (name of the button to be selected).

Description For field Type when message type is List

Description Field In Header
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType message from header
example:
· If type message is button: text, image, video, document
· If type message is list: text
textStringYESText message content in header
media_urlStringNOStorage location for media files: image or video
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
textStringNOText message content in footer
Description Field In Body
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
textStringYESText message content in header
This field used if type message is text
listJSON ObjectNOThis field used if type message is list
Additional fields required for List
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
titleStringYESAs a button label (name of the button to be selected).
sectionJSON ObjectYESDetails of the section information
Additional fields required for section
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
titleStringYESName of the section
descriptionJSON ObjectYESDescription of the section.
actionsArrayYESDetails of the action information
Additional fields required for actioon
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
typeStringYESType from section list
keyStringYESlist ID received from the client and returned if there is a post back from the client.
titleStringYESName of the selected list

Additional Fields When Message Type is “Location”

Description Field In Body
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
locationJSON ObjectYESThis field used if type message is location
Additional fields required for location
FIELDTYPE ALLOWEDMANDATORYDESCRIPTION
latitudeFloatYESType Location (coordinates point).
longitudeFloatYESType Location (coordinates point).