adb


Click here for a complete list of operations.

GetCoupon

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /webservice/adb.asmx HTTP/1.1
Host: editor.ynetalbums.co.il
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schemas.arealmedia.com/asmx/adb/GetCoupon"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetCoupon xmlns="http://schemas.arealmedia.com/asmx/adb">
      <key>string</key>
      <secretKey>string</secretKey>
      <id_coupon>string</id_coupon>
      <id_product>string</id_product>
      <id_partner>string</id_partner>
      <currency>string</currency>
      <iso>string</iso>
      <id_customer>string</id_customer>
      <ids_finish>
        <TypeOfFinishVO>
          <cover_reference>string</cover_reference>
          <description>string</description>
          <extra_page_price>double</extra_page_price>
          <extra_price>double</extra_price>
          <extra_ref>string</extra_ref>
          <id_finish>int</id_finish>
          <type>int</type>
        </TypeOfFinishVO>
        <TypeOfFinishVO>
          <cover_reference>string</cover_reference>
          <description>string</description>
          <extra_page_price>double</extra_page_price>
          <extra_price>double</extra_price>
          <extra_ref>string</extra_ref>
          <id_finish>int</id_finish>
          <type>int</type>
        </TypeOfFinishVO>
      </ids_finish>
    </GetCoupon>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetCouponResponse xmlns="http://schemas.arealmedia.com/asmx/adb">
      <GetCouponResult>
        <coupon>
          <campaign_reference>string</campaign_reference>
          <enabled>int</enabled>
          <campaign_type>int</campaign_type>
          <campaign_init>string</campaign_init>
          <campaign_end>string</campaign_end>
          <number_references_utilizations>int</number_references_utilizations>
          <number_references>int</number_references>
          <chars_number>int</chars_number>
          <infinite>int</infinite>
          <discount_on_payment>int</discount_on_payment>
          <allow_with_quantity_discount>int</allow_with_quantity_discount>
          <allow_with_finishes>int</allow_with_finishes>
          <include_shipments>int</include_shipments>
          <include_shipments_discount>int</include_shipments_discount>
          <value>double</value>
          <shipments_value>double</shipments_value>
          <id_voucher>string</id_voucher>
          <max_utilizations>int</max_utilizations>
          <current_utilizations>int</current_utilizations>
          <prepaid>int</prepaid>
          <id_watermark>int</id_watermark>
          <prepaid_value>double</prepaid_value>
        </coupon>
        <errorMessage>string</errorMessage>
        <voucher>string</voucher>
      </GetCouponResult>
    </GetCouponResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /webservice/adb.asmx HTTP/1.1
Host: editor.ynetalbums.co.il
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetCoupon xmlns="http://schemas.arealmedia.com/asmx/adb">
      <key>string</key>
      <secretKey>string</secretKey>
      <id_coupon>string</id_coupon>
      <id_product>string</id_product>
      <id_partner>string</id_partner>
      <currency>string</currency>
      <iso>string</iso>
      <id_customer>string</id_customer>
      <ids_finish>
        <TypeOfFinishVO>
          <cover_reference>string</cover_reference>
          <description>string</description>
          <extra_page_price>double</extra_page_price>
          <extra_price>double</extra_price>
          <extra_ref>string</extra_ref>
          <id_finish>int</id_finish>
          <type>int</type>
        </TypeOfFinishVO>
        <TypeOfFinishVO>
          <cover_reference>string</cover_reference>
          <description>string</description>
          <extra_page_price>double</extra_page_price>
          <extra_price>double</extra_price>
          <extra_ref>string</extra_ref>
          <id_finish>int</id_finish>
          <type>int</type>
        </TypeOfFinishVO>
      </ids_finish>
    </GetCoupon>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetCouponResponse xmlns="http://schemas.arealmedia.com/asmx/adb">
      <GetCouponResult>
        <coupon>
          <campaign_reference>string</campaign_reference>
          <enabled>int</enabled>
          <campaign_type>int</campaign_type>
          <campaign_init>string</campaign_init>
          <campaign_end>string</campaign_end>
          <number_references_utilizations>int</number_references_utilizations>
          <number_references>int</number_references>
          <chars_number>int</chars_number>
          <infinite>int</infinite>
          <discount_on_payment>int</discount_on_payment>
          <allow_with_quantity_discount>int</allow_with_quantity_discount>
          <allow_with_finishes>int</allow_with_finishes>
          <include_shipments>int</include_shipments>
          <include_shipments_discount>int</include_shipments_discount>
          <value>double</value>
          <shipments_value>double</shipments_value>
          <id_voucher>string</id_voucher>
          <max_utilizations>int</max_utilizations>
          <current_utilizations>int</current_utilizations>
          <prepaid>int</prepaid>
          <id_watermark>int</id_watermark>
          <prepaid_value>double</prepaid_value>
        </coupon>
        <errorMessage>string</errorMessage>
        <voucher>string</voucher>
      </GetCouponResult>
    </GetCouponResponse>
  </soap12:Body>
</soap12:Envelope>