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

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

HTTP Method: POST

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

The following is an example request Xml body:

<DataPayCustomer>
  <apikey>String content</apikey>
  <secretkey>String content</secretkey>
  <customerkey>String content</customerkey>
  <amount>12678967.543233</amount>
  <productid>String content</productid>
  <packagestartdate>String content</packagestartdate>
  <packageduration>2147483647</packageduration>
</DataPayCustomer>

The following is an example response Xml body:

<MemberRegisterResult>
  <ErrorMessage>String content</ErrorMessage>
  <CodeResult>String content</CodeResult>
  <CodeConfirm>String content</CodeConfirm>
  <ApiKey>String content</ApiKey>
  <SecretKey>String content</SecretKey>
</MemberRegisterResult>

The following is the request Xml Schema:

<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="DataPayCustomer" nillable="true" type="DataPayCustomer" />
  <xs:complexType name="DataPayCustomer">
    <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="customerkey" type="xs:string" />
      <xs:element minOccurs="1" maxOccurs="1" name="amount" type="xs:decimal" />
      <xs:element minOccurs="0" maxOccurs="1" name="productid" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="packagestartdate" type="xs:string" />
      <xs:element minOccurs="1" maxOccurs="1" name="packageduration" type="xs:int" />
    </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="MemberRegisterResult" nillable="true" type="MemberRegisterResult" />
  <xs:complexType name="MemberRegisterResult">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="ErrorMessage" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="CodeResult" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="CodeConfirm" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="ApiKey" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="SecretKey" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>