Smart Button Loyalty Platform - WS
Smart Button Inc.
1501 Casho Mill Road, Suite 14
Newark DE 19711

JDAInterface


Click here for a complete list of operations.

JDAReturnOfferCodes

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 /WS/JDAInterface.asmx HTTP/1.1
Host: app.smartbutton.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "LoyaltyPlatformWS/JDAReturnOfferCodes"

<?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>
    <JDAReturnOfferCodes xmlns="LoyaltyPlatformWS">
      <WSSecurityToken>string</WSSecurityToken>
      <POSUniqueTransactionId>string</POSUniqueTransactionId>
    </JDAReturnOfferCodes>
  </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>
    <JDAReturnOfferCodesResponse xmlns="LoyaltyPlatformWS">
      <JDAReturnOfferCodesResult>
        <ReturnCode>int</ReturnCode>
        <MemberId>int</MemberId>
        <PrimaryAccountId>string</PrimaryAccountId>
        <MemberFName>string</MemberFName>
        <MemberLName>string</MemberLName>
        <EmailAddress>string</EmailAddress>
        <CouponOffers>
          <CouponOffersItem>
            <MemberCouponId>int</MemberCouponId>
            <CouponBarcode>string</CouponBarcode>
          </CouponOffersItem>
          <CouponOffersItem>
            <MemberCouponId>int</MemberCouponId>
            <CouponBarcode>string</CouponBarcode>
          </CouponOffersItem>
        </CouponOffers>
        <RewardOffers>
          <RewardOffersItem>
            <MemberRewardId>int</MemberRewardId>
            <RewardRetailValue>double</RewardRetailValue>
            <RewardBarcode>string</RewardBarcode>
          </RewardOffersItem>
          <RewardOffersItem>
            <MemberRewardId>int</MemberRewardId>
            <RewardRetailValue>double</RewardRetailValue>
            <RewardBarcode>string</RewardBarcode>
          </RewardOffersItem>
        </RewardOffers>
        <BelongToClubs>
          <string>string</string>
          <string>string</string>
        </BelongToClubs>
      </JDAReturnOfferCodesResult>
    </JDAReturnOfferCodesResponse>
  </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 /WS/JDAInterface.asmx HTTP/1.1
Host: app.smartbutton.com
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>
    <JDAReturnOfferCodes xmlns="LoyaltyPlatformWS">
      <WSSecurityToken>string</WSSecurityToken>
      <POSUniqueTransactionId>string</POSUniqueTransactionId>
    </JDAReturnOfferCodes>
  </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>
    <JDAReturnOfferCodesResponse xmlns="LoyaltyPlatformWS">
      <JDAReturnOfferCodesResult>
        <ReturnCode>int</ReturnCode>
        <MemberId>int</MemberId>
        <PrimaryAccountId>string</PrimaryAccountId>
        <MemberFName>string</MemberFName>
        <MemberLName>string</MemberLName>
        <EmailAddress>string</EmailAddress>
        <CouponOffers>
          <CouponOffersItem>
            <MemberCouponId>int</MemberCouponId>
            <CouponBarcode>string</CouponBarcode>
          </CouponOffersItem>
          <CouponOffersItem>
            <MemberCouponId>int</MemberCouponId>
            <CouponBarcode>string</CouponBarcode>
          </CouponOffersItem>
        </CouponOffers>
        <RewardOffers>
          <RewardOffersItem>
            <MemberRewardId>int</MemberRewardId>
            <RewardRetailValue>double</RewardRetailValue>
            <RewardBarcode>string</RewardBarcode>
          </RewardOffersItem>
          <RewardOffersItem>
            <MemberRewardId>int</MemberRewardId>
            <RewardRetailValue>double</RewardRetailValue>
            <RewardBarcode>string</RewardBarcode>
          </RewardOffersItem>
        </RewardOffers>
        <BelongToClubs>
          <string>string</string>
          <string>string</string>
        </BelongToClubs>
      </JDAReturnOfferCodesResult>
    </JDAReturnOfferCodesResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

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

GET /WS/JDAInterface.asmx/JDAReturnOfferCodes?WSSecurityToken=string&POSUniqueTransactionId=string HTTP/1.1
Host: app.smartbutton.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<JDAReturnOfferCodesReturn xmlns="LoyaltyPlatformWS">
  <ReturnCode>int</ReturnCode>
  <MemberId>int</MemberId>
  <PrimaryAccountId>string</PrimaryAccountId>
  <MemberFName>string</MemberFName>
  <MemberLName>string</MemberLName>
  <EmailAddress>string</EmailAddress>
  <CouponOffers>
    <CouponOffersItem>
      <MemberCouponId>int</MemberCouponId>
      <CouponBarcode>string</CouponBarcode>
    </CouponOffersItem>
    <CouponOffersItem>
      <MemberCouponId>int</MemberCouponId>
      <CouponBarcode>string</CouponBarcode>
    </CouponOffersItem>
  </CouponOffers>
  <RewardOffers>
    <RewardOffersItem>
      <MemberRewardId>int</MemberRewardId>
      <RewardRetailValue>double</RewardRetailValue>
      <RewardBarcode>string</RewardBarcode>
    </RewardOffersItem>
    <RewardOffersItem>
      <MemberRewardId>int</MemberRewardId>
      <RewardRetailValue>double</RewardRetailValue>
      <RewardBarcode>string</RewardBarcode>
    </RewardOffersItem>
  </RewardOffers>
  <BelongToClubs>
    <string>string</string>
    <string>string</string>
  </BelongToClubs>
</JDAReturnOfferCodesReturn>

HTTP POST

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

POST /WS/JDAInterface.asmx/JDAReturnOfferCodes HTTP/1.1
Host: app.smartbutton.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

WSSecurityToken=string&POSUniqueTransactionId=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<JDAReturnOfferCodesReturn xmlns="LoyaltyPlatformWS">
  <ReturnCode>int</ReturnCode>
  <MemberId>int</MemberId>
  <PrimaryAccountId>string</PrimaryAccountId>
  <MemberFName>string</MemberFName>
  <MemberLName>string</MemberLName>
  <EmailAddress>string</EmailAddress>
  <CouponOffers>
    <CouponOffersItem>
      <MemberCouponId>int</MemberCouponId>
      <CouponBarcode>string</CouponBarcode>
    </CouponOffersItem>
    <CouponOffersItem>
      <MemberCouponId>int</MemberCouponId>
      <CouponBarcode>string</CouponBarcode>
    </CouponOffersItem>
  </CouponOffers>
  <RewardOffers>
    <RewardOffersItem>
      <MemberRewardId>int</MemberRewardId>
      <RewardRetailValue>double</RewardRetailValue>
      <RewardBarcode>string</RewardBarcode>
    </RewardOffersItem>
    <RewardOffersItem>
      <MemberRewardId>int</MemberRewardId>
      <RewardRetailValue>double</RewardRetailValue>
      <RewardBarcode>string</RewardBarcode>
    </RewardOffersItem>
  </RewardOffers>
  <BelongToClubs>
    <string>string</string>
    <string>string</string>
  </BelongToClubs>
</JDAReturnOfferCodesReturn>