Reference for http://rest.esms.vn/MainService.svc/json/GetSubServicePreviewJson/
Url: http://rest.esms.vn/MainService.svc/json/GetSubServicePreviewJson/
HTTP Method: POST
| Message direction | Format | Body |
|---|---|---|
| Request | Xml | Example,Schema |
| Request | Json | Example |
| Response | Xml | Example,Schema |
| Response | Json | Example |
The following is an example request Xml body:
<GetSubServicePreviewModel xmlns="http://schemas.datacontract.org/2004/07/AdvertisingAPI.Model"> <ApiKey xmlns="http://schemas.datacontract.org/2004/07/AdvertisingAPI.AnonymousModel">String content</ApiKey> <SecretKey xmlns="http://schemas.datacontract.org/2004/07/AdvertisingAPI.AnonymousModel">String content</SecretKey> <FromTime>String content</FromTime> <ServiceType>REGISTER_BRANDNAME</ServiceType> <ToTime>String content</ToTime> </GetSubServicePreviewModel>
The following is an example request Json body:
{
"ApiKey":"String content",
"SecretKey":"String content",
"FromTime":"String content",
"ServiceType":0,
"ToTime":"String content"
}
The following is an example response Xml body:
<GetSubServicePreviewResult xmlns="http://schemas.datacontract.org/2004/07/AdvertisingAPI.Model">
<CodeResult>String content</CodeResult>
<ErrorMessage>String content</ErrorMessage>
<Message>String content</Message>
<PreviewBrandname>
<PreviewBrandnameResult>
<CustomerEmail>String content</CustomerEmail>
<CustomerName>String content</CustomerName>
<CustomerPhone>String content</CustomerPhone>
<DateActive>String content</DateActive>
<DateCreated>String content</DateCreated>
<ServicePreviewId>2147483647</ServicePreviewId>
<SmsType>2147483647</SmsType>
<StaffInCharge>String content</StaffInCharge>
<Status>2147483647</Status>
<Brandname>String content</Brandname>
</PreviewBrandnameResult>
<PreviewBrandnameResult>
<CustomerEmail>String content</CustomerEmail>
<CustomerName>String content</CustomerName>
<CustomerPhone>String content</CustomerPhone>
<DateActive>String content</DateActive>
<DateCreated>String content</DateCreated>
<ServicePreviewId>2147483647</ServicePreviewId>
<SmsType>2147483647</SmsType>
<StaffInCharge>String content</StaffInCharge>
<Status>2147483647</Status>
<Brandname>String content</Brandname>
</PreviewBrandnameResult>
</PreviewBrandname>
<PreviewSmsTemplate>
<PreviewSmsTemplateResult>
<CustomerEmail>String content</CustomerEmail>
<CustomerName>String content</CustomerName>
<CustomerPhone>String content</CustomerPhone>
<DateActive>String content</DateActive>
<DateCreated>String content</DateCreated>
<ServicePreviewId>2147483647</ServicePreviewId>
<SmsType>2147483647</SmsType>
<StaffInCharge>String content</StaffInCharge>
<Status>2147483647</Status>
<Brandname>String content</Brandname>
<TemplateContent>String content</TemplateContent>
</PreviewSmsTemplateResult>
<PreviewSmsTemplateResult>
<CustomerEmail>String content</CustomerEmail>
<CustomerName>String content</CustomerName>
<CustomerPhone>String content</CustomerPhone>
<DateActive>String content</DateActive>
<DateCreated>String content</DateCreated>
<ServicePreviewId>2147483647</ServicePreviewId>
<SmsType>2147483647</SmsType>
<StaffInCharge>String content</StaffInCharge>
<Status>2147483647</Status>
<Brandname>String content</Brandname>
<TemplateContent>String content</TemplateContent>
</PreviewSmsTemplateResult>
</PreviewSmsTemplate>
<PreviewZnsTemplate>
<PreviewZnsTemplateResult>
<CustomerEmail>String content</CustomerEmail>
<CustomerName>String content</CustomerName>
<CustomerPhone>String content</CustomerPhone>
<DateActive>String content</DateActive>
<DateCreated>String content</DateCreated>
<ServicePreviewId>2147483647</ServicePreviewId>
<SmsType>2147483647</SmsType>
<StaffInCharge>String content</StaffInCharge>
<Status>2147483647</Status>
<OAID>String content</OAID>
</PreviewZnsTemplateResult>
<PreviewZnsTemplateResult>
<CustomerEmail>String content</CustomerEmail>
<CustomerName>String content</CustomerName>
<CustomerPhone>String content</CustomerPhone>
<DateActive>String content</DateActive>
<DateCreated>String content</DateCreated>
<ServicePreviewId>2147483647</ServicePreviewId>
<SmsType>2147483647</SmsType>
<StaffInCharge>String content</StaffInCharge>
<Status>2147483647</Status>
<OAID>String content</OAID>
</PreviewZnsTemplateResult>
</PreviewZnsTemplate>
</GetSubServicePreviewResult>
The following is an example response Json body:
{
"CodeResult":"String content",
"ErrorMessage":"String content",
"Message":"String content",
"PreviewBrandname":[{
"CustomerEmail":"String content",
"CustomerName":"String content",
"CustomerPhone":"String content",
"DateActive":"String content",
"DateCreated":"String content",
"ServicePreviewId":2147483647,
"SmsType":2147483647,
"StaffInCharge":"String content",
"Status":2147483647,
"Brandname":"String content"
}],
"PreviewSmsTemplate":[{
"CustomerEmail":"String content",
"CustomerName":"String content",
"CustomerPhone":"String content",
"DateActive":"String content",
"DateCreated":"String content",
"ServicePreviewId":2147483647,
"SmsType":2147483647,
"StaffInCharge":"String content",
"Status":2147483647,
"Brandname":"String content",
"TemplateContent":"String content"
}],
"PreviewZnsTemplate":[{
"CustomerEmail":"String content",
"CustomerName":"String content",
"CustomerPhone":"String content",
"DateActive":"String content",
"DateCreated":"String content",
"ServicePreviewId":2147483647,
"SmsType":2147483647,
"StaffInCharge":"String content",
"Status":2147483647,
"OAID":"String content"
}]
}
The following is the request Xml Schema:
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/AdvertisingAPI.Model" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/AdvertisingAPI.Model" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://schemas.datacontract.org/2004/07/AdvertisingAPI.AnonymousModel" />
<xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
<xs:complexType name="GetSubServicePreviewModel">
<xs:complexContent mixed="false">
<xs:extension xmlns:q1="http://schemas.datacontract.org/2004/07/AdvertisingAPI.AnonymousModel" base="q1:AuthorizeModel">
<xs:sequence>
<xs:element minOccurs="0" name="FromTime" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="ServiceType" type="tns:SERVICE_PREVIEW_TYPE" />
<xs:element minOccurs="0" name="ToTime" nillable="true" type="xs:string" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="GetSubServicePreviewModel" nillable="true" type="tns:GetSubServicePreviewModel" />
<xs:simpleType name="SERVICE_PREVIEW_TYPE">
<xs:restriction base="xs:string">
<xs:enumeration value="REGISTER_BRANDNAME">
<xs:annotation>
<xs:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="REGISTER_SMS_TEMPLATE">
<xs:annotation>
<xs:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="REGISTER_ZNS_TEMPLATE">
<xs:annotation>
<xs:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3</EnumerationValue>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="REGISTER_OA_PACKAGE">
<xs:annotation>
<xs:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4</EnumerationValue>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:element name="SERVICE_PREVIEW_TYPE" nillable="true" type="tns:SERVICE_PREVIEW_TYPE" />
</xs:schema>
Additional request Xml Schemas:
<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="anyType" nillable="true" type="xs:anyType" />
<xs:element name="anyURI" nillable="true" type="xs:anyURI" />
<xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
<xs:element name="boolean" nillable="true" type="xs:boolean" />
<xs:element name="byte" nillable="true" type="xs:byte" />
<xs:element name="dateTime" nillable="true" type="xs:dateTime" />
<xs:element name="decimal" nillable="true" type="xs:decimal" />
<xs:element name="double" nillable="true" type="xs:double" />
<xs:element name="float" nillable="true" type="xs:float" />
<xs:element name="int" nillable="true" type="xs:int" />
<xs:element name="long" nillable="true" type="xs:long" />
<xs:element name="QName" nillable="true" type="xs:QName" />
<xs:element name="short" nillable="true" type="xs:short" />
<xs:element name="string" nillable="true" type="xs:string" />
<xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
<xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
<xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
<xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
<xs:element name="char" nillable="true" type="tns:char" />
<xs:simpleType name="char">
<xs:restriction base="xs:int" />
</xs:simpleType>
<xs:element name="duration" nillable="true" type="tns:duration" />
<xs:simpleType name="duration">
<xs:restriction base="xs:duration">
<xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
<xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
<xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
</xs:restriction>
</xs:simpleType>
<xs:element name="guid" nillable="true" type="tns:guid" />
<xs:simpleType name="guid">
<xs:restriction base="xs:string">
<xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
</xs:restriction>
</xs:simpleType>
<xs:attribute name="FactoryType" type="xs:QName" />
<xs:attribute name="Id" type="xs:ID" />
<xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/AdvertisingAPI.AnonymousModel" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/AdvertisingAPI.AnonymousModel" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="AuthorizeModel">
<xs:sequence>
<xs:element minOccurs="0" name="ApiKey" nillable="true" type="xs:string">
<xs:annotation>
<xs:appinfo>
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="SecretKey" nillable="true" type="xs:string">
<xs:annotation>
<xs:appinfo>
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="AuthorizeModel" nillable="true" type="tns:AuthorizeModel" />
</xs:schema>
<tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema">
<tns:element name="schema">
<tns:complexType />
</tns:element>
</tns:schema>
The following is the response Xml Schema:
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/AdvertisingAPI.Model" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/AdvertisingAPI.Model" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="GetSubServicePreviewResult">
<xs:complexContent mixed="false">
<xs:extension base="tns:ResultModel">
<xs:sequence>
<xs:element minOccurs="0" name="PreviewBrandname" nillable="true" type="tns:ArrayOfPreviewBrandnameResult">
<xs:annotation>
<xs:appinfo>
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="PreviewSmsTemplate" nillable="true" type="tns:ArrayOfPreviewSmsTemplateResult">
<xs:annotation>
<xs:appinfo>
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="PreviewZnsTemplate" nillable="true" type="tns:ArrayOfPreviewZnsTemplateResult">
<xs:annotation>
<xs:appinfo>
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="GetSubServicePreviewResult" nillable="true" type="tns:GetSubServicePreviewResult" />
<xs:complexType name="ResultModel">
<xs:sequence>
<xs:element minOccurs="0" name="CodeResult" nillable="true" type="xs:string">
<xs:annotation>
<xs:appinfo>
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="ErrorMessage" nillable="true" type="xs:string">
<xs:annotation>
<xs:appinfo>
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Message" nillable="true" type="xs:string">
<xs:annotation>
<xs:appinfo>
<DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="ResultModel" nillable="true" type="tns:ResultModel" />
<xs:complexType name="ArrayOfPreviewBrandnameResult">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="PreviewBrandnameResult" nillable="true" type="tns:PreviewBrandnameResult" />
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfPreviewBrandnameResult" nillable="true" type="tns:ArrayOfPreviewBrandnameResult" />
<xs:complexType name="PreviewBrandnameResult">
<xs:complexContent mixed="false">
<xs:extension base="tns:GetServicePreviewResult">
<xs:sequence>
<xs:element minOccurs="0" name="Brandname" nillable="true" type="xs:string" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="PreviewBrandnameResult" nillable="true" type="tns:PreviewBrandnameResult" />
<xs:complexType name="GetServicePreviewResult">
<xs:complexContent mixed="false">
<xs:extension base="tns:SubServicePreviewCustomerInfo">
<xs:sequence>
<xs:element minOccurs="0" name="DateActive" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="DateCreated" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="ServicePreviewId" type="xs:int" />
<xs:element minOccurs="0" name="SmsType" type="xs:int" />
<xs:element minOccurs="0" name="StaffInCharge" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Status" type="xs:int" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="GetServicePreviewResult" nillable="true" type="tns:GetServicePreviewResult" />
<xs:complexType name="SubServicePreviewCustomerInfo">
<xs:sequence>
<xs:element minOccurs="0" name="CustomerEmail" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="CustomerName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="CustomerPhone" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:element name="SubServicePreviewCustomerInfo" nillable="true" type="tns:SubServicePreviewCustomerInfo" />
<xs:complexType name="ArrayOfPreviewSmsTemplateResult">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="PreviewSmsTemplateResult" nillable="true" type="tns:PreviewSmsTemplateResult" />
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfPreviewSmsTemplateResult" nillable="true" type="tns:ArrayOfPreviewSmsTemplateResult" />
<xs:complexType name="PreviewSmsTemplateResult">
<xs:complexContent mixed="false">
<xs:extension base="tns:GetServicePreviewResult">
<xs:sequence>
<xs:element minOccurs="0" name="Brandname" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="TemplateContent" nillable="true" type="xs:string" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="PreviewSmsTemplateResult" nillable="true" type="tns:PreviewSmsTemplateResult" />
<xs:complexType name="ArrayOfPreviewZnsTemplateResult">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="PreviewZnsTemplateResult" nillable="true" type="tns:PreviewZnsTemplateResult" />
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfPreviewZnsTemplateResult" nillable="true" type="tns:ArrayOfPreviewZnsTemplateResult" />
<xs:complexType name="PreviewZnsTemplateResult">
<xs:complexContent mixed="false">
<xs:extension base="tns:GetServicePreviewResult">
<xs:sequence>
<xs:element minOccurs="0" name="OAID" nillable="true" type="xs:string" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="PreviewZnsTemplateResult" nillable="true" type="tns:PreviewZnsTemplateResult" />
</xs:schema>
Additional response Xml Schemas:
<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="anyType" nillable="true" type="xs:anyType" />
<xs:element name="anyURI" nillable="true" type="xs:anyURI" />
<xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
<xs:element name="boolean" nillable="true" type="xs:boolean" />
<xs:element name="byte" nillable="true" type="xs:byte" />
<xs:element name="dateTime" nillable="true" type="xs:dateTime" />
<xs:element name="decimal" nillable="true" type="xs:decimal" />
<xs:element name="double" nillable="true" type="xs:double" />
<xs:element name="float" nillable="true" type="xs:float" />
<xs:element name="int" nillable="true" type="xs:int" />
<xs:element name="long" nillable="true" type="xs:long" />
<xs:element name="QName" nillable="true" type="xs:QName" />
<xs:element name="short" nillable="true" type="xs:short" />
<xs:element name="string" nillable="true" type="xs:string" />
<xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
<xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
<xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
<xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
<xs:element name="char" nillable="true" type="tns:char" />
<xs:simpleType name="char">
<xs:restriction base="xs:int" />
</xs:simpleType>
<xs:element name="duration" nillable="true" type="tns:duration" />
<xs:simpleType name="duration">
<xs:restriction base="xs:duration">
<xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
<xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
<xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
</xs:restriction>
</xs:simpleType>
<xs:element name="guid" nillable="true" type="tns:guid" />
<xs:simpleType name="guid">
<xs:restriction base="xs:string">
<xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
</xs:restriction>
</xs:simpleType>
<xs:attribute name="FactoryType" type="xs:QName" />
<xs:attribute name="Id" type="xs:ID" />
<xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema">
<tns:element name="schema">
<tns:complexType />
</tns:element>
</tns:schema>