Reference for http://api.esms.vn/MainService.svc/xml/SendZaloMessage_V5_post/

Url: http://api.esms.vn/MainService.svc/xml/SendZaloMessage_V5_post/

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Response Xml Example,Schema

The following is an example request Xml body:

<SendMultipleZaloV2Model>
  <ApiKey>String content</ApiKey>
  <SecretKey>String content</SecretKey>
  <Phone>String content</Phone>
  <TempID>String content</TempID>
  <OAID>String content</OAID>
  <SendDate>String content</SendDate>
  <Sandbox>String content</Sandbox>
  <RequestId>String content</RequestId>
  <campaignid>String content</campaignid>
  <CallbackUrl>String content</CallbackUrl>
  <TempData>
    <KeyValuePairOfStringString />
    <KeyValuePairOfStringString />
  </TempData>
  <IsJourney>String content</IsJourney>
  <PacketID>String content</PacketID>
  <OrderID>String content</OrderID>
  <IsZcc>String content</IsZcc>
  <CallReason>String content</CallReason>
  <CallType>String content</CallType>
  <UserId>2147483647</UserId>
  <DailyId>9223372036854775807</DailyId>
  <IsHashedPhone>true</IsHashedPhone>
  <HashedPhone>String content</HashedPhone>
  <RequestIP>String content</RequestIP>
  <RequestUserAgent>String content</RequestUserAgent>
  <RequestPlatform>String content</RequestPlatform>
  <RequestBrowser>String content</RequestBrowser>
  <DomainRequest>
    <DaiLyId>9223372036854775807</DaiLyId>
    <ApiDomain>String content</ApiDomain>
    <FrontEndDomain>String content</FrontEndDomain>
    <BackEndDomain>String content</BackEndDomain>
  </DomainRequest>
</SendMultipleZaloV2Model>

The following is an example response Xml body:

<SmsResultModel>
  <CodeResult>String content</CodeResult>
  <ErrorMessage>String content</ErrorMessage>
  <SMSID>String content</SMSID>
  <Message>String content</Message>
  <SendStatus>String content</SendStatus>
  <CountRegenerate>9223372036854775807</CountRegenerate>
  <IsSandbox>String content</IsSandbox>
  <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>
  <RedisWalletUse>NOTFOUND</RedisWalletUse>
  <RedisWalletId>9223372036854775807</RedisWalletId>
  <RedisWalletUseReseller>NOTFOUND</RedisWalletUseReseller>
</SmsResultModel>

The following is the request Xml Schema:

<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="SendMultipleZaloV2Model" nillable="true" type="SendMultipleZaloV2Model" />
  <xs:complexType name="SendMultipleZaloV2Model">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="ApiKey" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="SecretKey" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="Phone" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="TempID" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="OAID" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="SendDate" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="Sandbox" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="RequestId" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="campaignid" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="CallbackUrl" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="TempData" type="ArrayOfKeyValuePairOfStringString" />
      <xs:element minOccurs="0" maxOccurs="1" name="IsJourney" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="PacketID" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="OrderID" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="IsZcc" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="CallReason" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="CallType" type="xs:string" />
      <xs:element minOccurs="1" maxOccurs="1" name="UserId" type="xs:int" />
      <xs:element minOccurs="1" maxOccurs="1" name="DailyId" type="xs:long" />
      <xs:element minOccurs="1" maxOccurs="1" name="IsHashedPhone" type="xs:boolean" />
      <xs:element minOccurs="0" maxOccurs="1" name="HashedPhone" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="RequestIP" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="RequestUserAgent" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="RequestPlatform" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="RequestBrowser" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="DomainRequest" type="DomainModelView" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ArrayOfKeyValuePairOfStringString">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="KeyValuePairOfStringString" type="KeyValuePairOfStringString" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="KeyValuePairOfStringString" />
  <xs:complexType name="DomainModelView">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="DaiLyId" type="xs:long" />
      <xs:element minOccurs="0" maxOccurs="1" name="ApiDomain" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="FrontEndDomain" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="BackEndDomain" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>

The following is the response Xml Schema:

<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="SmsResultModel" nillable="true" type="SmsResultModel" />
  <xs:complexType name="SmsResultModel">
    <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="SMSID" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="Message" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="SendStatus" type="xs:string" />
      <xs:element minOccurs="1" maxOccurs="1" name="CountRegenerate" type="xs:long" />
      <xs:element minOccurs="0" maxOccurs="1" name="IsSandbox" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="PhoneNumberList" type="ArrayOfPhoneNumberResult" />
      <xs:element minOccurs="1" maxOccurs="1" name="RedisWalletUse" type="TYPE_WALLET" />
      <xs:element minOccurs="1" maxOccurs="1" name="RedisWalletId" type="xs:long" />
      <xs:element minOccurs="1" maxOccurs="1" name="RedisWalletUseReseller" type="TYPE_WALLET" />
    </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:simpleType name="TYPE_WALLET">
    <xs:restriction base="xs:string">
      <xs:enumeration value="NOTFOUND" />
      <xs:enumeration value="MAIN_WALLET" />
      <xs:enumeration value="PROMOTION_WALLET" />
      <xs:enumeration value="FREE_ZNS_WALLET" />
      <xs:enumeration value="VIBER_WALLET" />
      <xs:enumeration value="MIN_DEPOSIT_WALLET" />
      <xs:enumeration value="FREE_ZNS_FOLLOWER_WALLET" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>