Reference for http://api.esms.vn/MainService.svc/xml/SummaryMultipleMessage_V4_get?Phone={PHONE}&Content={CONTENT}&ApiKey={APIKEY}&SecretKey={SECRETKEY}&Email={EMAIL}&IsUnicode={ISUNICODE}&Brandname={BRANDNAME}&SmsType={SMSTYPE}&Sandbox={SANDBOX}&IsFlash={ISFLASH}&Priority={PRIORITY}&RequestId={REQUESTID}&SendDate={SENDDATE}&TrackLink={TRACKLINK}&GetNetwork={GETNETWORK}&CallbackShorten={CALLBACKSHORTEN}&CallbackUrl={CALLBACKURL}&OTTUrl={OTTURL}&OTTImgUrl={OTTIMGURL}&OTTLabel={OTTLABEL}
Url: http://api.esms.vn/MainService.svc/xml/SummaryMultipleMessage_V4_get?Phone={PHONE}&Content={CONTENT}&ApiKey={APIKEY}&SecretKey={SECRETKEY}&Email={EMAIL}&IsUnicode={ISUNICODE}&Brandname={BRANDNAME}&SmsType={SMSTYPE}&Sandbox={SANDBOX}&IsFlash={ISFLASH}&Priority={PRIORITY}&RequestId={REQUESTID}&SendDate={SENDDATE}&TrackLink={TRACKLINK}&GetNetwork={GETNETWORK}&CallbackShorten={CALLBACKSHORTEN}&CallbackUrl={CALLBACKURL}&OTTUrl={OTTURL}&OTTImgUrl={OTTIMGURL}&OTTLabel={OTTLABEL}
HTTP Method: GET
Message direction | Format | Body |
---|---|---|
Request | N/A | The Request body is empty. |
Response | Xml | Example,Schema |
The following is an example response Xml body:
<SummarySmsResultModel> <CodeResult>String content</CodeResult> <ErrorMessage>String content</ErrorMessage> <SendStatus>String content</SendStatus> <TotalReceiver>2147483647</TotalReceiver> <TotalPrice>12678967.543233</TotalPrice> <PhoneNumberList> <PhoneNumberResult> <PhoneNumber>String content</PhoneNumber> <NetworkType>NotFound</NetworkType> <NetworkName>String content</NetworkName> </PhoneNumberResult> <PhoneNumberResult> <PhoneNumber>String content</PhoneNumber> <NetworkType>NotFound</NetworkType> <NetworkName>String content</NetworkName> </PhoneNumberResult> </PhoneNumberList> </SummarySmsResultModel>
The following is the response Xml Schema:
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="SummarySmsResultModel" nillable="true" type="SummarySmsResultModel" /> <xs:complexType name="SummarySmsResultModel"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="CodeResult" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="ErrorMessage" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="SendStatus" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="TotalReceiver" type="xs:int" /> <xs:element minOccurs="1" maxOccurs="1" name="TotalPrice" type="xs:decimal" /> <xs:element minOccurs="0" maxOccurs="1" name="PhoneNumberList" type="ArrayOfPhoneNumberResult" /> </xs:sequence> </xs:complexType> <xs:complexType name="ArrayOfPhoneNumberResult"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="PhoneNumberResult" nillable="true" type="PhoneNumberResult" /> </xs:sequence> </xs:complexType> <xs:complexType name="PhoneNumberResult"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="PhoneNumber" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="NetworkType" type="EnumNetwork" /> <xs:element minOccurs="0" maxOccurs="1" name="NetworkName" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:simpleType name="EnumNetwork"> <xs:restriction base="xs:string"> <xs:enumeration value="NotFound" /> <xs:enumeration value="Viettel" /> <xs:enumeration value="Mobifone" /> <xs:enumeration value="Vinaphone" /> <xs:enumeration value="Vietnamobile" /> <xs:enumeration value="Gtel" /> <xs:enumeration value="Itel" /> <xs:enumeration value="Reddi" /> <xs:enumeration value="Global" /> </xs:restriction> </xs:simpleType> </xs:schema>