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

Url: http://api.esms.vn/MainService.svc/xml/hubspot/sendsms

HTTP Method: POST

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

The following is an example request Xml body:

<HubspotData>
  <properties>
    <phone>
      <value>String content</value>
    </phone>
    <firstname>
      <value>String content</value>
    </firstname>
    <email>
      <value>String content</value>
    </email>
  </properties>
  <vid>2147483647</vid>
</HubspotData>

The following is an example response Xml body:

<HubspotResult>
  <SMSID>2147483647</SMSID>
  <ErrorMessage>String content</ErrorMessage>
  <CodeResponse>2147483647</CodeResponse>
</HubspotResult>

The following is the request Xml Schema:

<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="HubspotData" nillable="true" type="HubspotData" />
  <xs:complexType name="HubspotData">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="properties" type="HubspotProperties" />
      <xs:element minOccurs="1" maxOccurs="1" name="vid" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HubspotProperties">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="phone" type="HubspotSubProperties" />
      <xs:element minOccurs="0" maxOccurs="1" name="firstname" type="HubspotSubProperties" />
      <xs:element minOccurs="0" maxOccurs="1" name="email" type="HubspotSubProperties" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HubspotSubProperties">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="value" 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="HubspotResult" nillable="true" type="HubspotResult" />
  <xs:complexType name="HubspotResult">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="SMSID" type="xs:int" />
      <xs:element minOccurs="0" maxOccurs="1" name="ErrorMessage" type="xs:string" />
      <xs:element minOccurs="1" maxOccurs="1" name="CodeResponse" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>