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

Offer


Click here for a complete list of operations.

FetchChoiceRewardWithLanguages

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

<?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>
    <FetchChoiceRewardWithLanguages xmlns="LoyaltyPlatformWS">
      <WSSecurityToken>string</WSSecurityToken>
      <RewardTypeExternalReference>string</RewardTypeExternalReference>
    </FetchChoiceRewardWithLanguages>
  </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>
    <FetchChoiceRewardWithLanguagesResponse xmlns="LoyaltyPlatformWS">
      <FetchChoiceRewardWithLanguagesResult>
        <ReturnCode>int</ReturnCode>
        <RewardTypeCategoryExternalReference>string</RewardTypeCategoryExternalReference>
        <RewardTypeName>string</RewardTypeName>
        <RewardTypePointCost>double</RewardTypePointCost>
        <RewardTypeRetailValue>double</RewardTypeRetailValue>
        <RewardIssueLimit>int</RewardIssueLimit>
        <MemberIssueLimit>int</MemberIssueLimit>
        <MemberIssueLimitOnePerXDays>int</MemberIssueLimitOnePerXDays>
        <ExpireDays>int</ExpireDays>
        <RewardTypeRequiresTransferTarget>int</RewardTypeRequiresTransferTarget>
        <RewardLanguages>
          <RewardLanguageItem>
            <LanguageName>string</LanguageName>
            <LanguageExternalReference>string</LanguageExternalReference>
            <LanguageCode>string</LanguageCode>
            <RewardTypeName>string</RewardTypeName>
            <RewardTypeDescription>string</RewardTypeDescription>
          </RewardLanguageItem>
          <RewardLanguageItem>
            <LanguageName>string</LanguageName>
            <LanguageExternalReference>string</LanguageExternalReference>
            <LanguageCode>string</LanguageCode>
            <RewardTypeName>string</RewardTypeName>
            <RewardTypeDescription>string</RewardTypeDescription>
          </RewardLanguageItem>
        </RewardLanguages>
      </FetchChoiceRewardWithLanguagesResult>
    </FetchChoiceRewardWithLanguagesResponse>
  </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/Offer.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>
    <FetchChoiceRewardWithLanguages xmlns="LoyaltyPlatformWS">
      <WSSecurityToken>string</WSSecurityToken>
      <RewardTypeExternalReference>string</RewardTypeExternalReference>
    </FetchChoiceRewardWithLanguages>
  </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>
    <FetchChoiceRewardWithLanguagesResponse xmlns="LoyaltyPlatformWS">
      <FetchChoiceRewardWithLanguagesResult>
        <ReturnCode>int</ReturnCode>
        <RewardTypeCategoryExternalReference>string</RewardTypeCategoryExternalReference>
        <RewardTypeName>string</RewardTypeName>
        <RewardTypePointCost>double</RewardTypePointCost>
        <RewardTypeRetailValue>double</RewardTypeRetailValue>
        <RewardIssueLimit>int</RewardIssueLimit>
        <MemberIssueLimit>int</MemberIssueLimit>
        <MemberIssueLimitOnePerXDays>int</MemberIssueLimitOnePerXDays>
        <ExpireDays>int</ExpireDays>
        <RewardTypeRequiresTransferTarget>int</RewardTypeRequiresTransferTarget>
        <RewardLanguages>
          <RewardLanguageItem>
            <LanguageName>string</LanguageName>
            <LanguageExternalReference>string</LanguageExternalReference>
            <LanguageCode>string</LanguageCode>
            <RewardTypeName>string</RewardTypeName>
            <RewardTypeDescription>string</RewardTypeDescription>
          </RewardLanguageItem>
          <RewardLanguageItem>
            <LanguageName>string</LanguageName>
            <LanguageExternalReference>string</LanguageExternalReference>
            <LanguageCode>string</LanguageCode>
            <RewardTypeName>string</RewardTypeName>
            <RewardTypeDescription>string</RewardTypeDescription>
          </RewardLanguageItem>
        </RewardLanguages>
      </FetchChoiceRewardWithLanguagesResult>
    </FetchChoiceRewardWithLanguagesResponse>
  </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/Offer.asmx/FetchChoiceRewardWithLanguages?WSSecurityToken=string&RewardTypeExternalReference=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"?>
<FetchChoiceRewardWithLanguagesReturn xmlns="LoyaltyPlatformWS">
  <ReturnCode>int</ReturnCode>
  <RewardTypeCategoryExternalReference>string</RewardTypeCategoryExternalReference>
  <RewardTypeName>string</RewardTypeName>
  <RewardTypePointCost>double</RewardTypePointCost>
  <RewardTypeRetailValue>double</RewardTypeRetailValue>
  <RewardIssueLimit>int</RewardIssueLimit>
  <MemberIssueLimit>int</MemberIssueLimit>
  <MemberIssueLimitOnePerXDays>int</MemberIssueLimitOnePerXDays>
  <ExpireDays>int</ExpireDays>
  <RewardTypeRequiresTransferTarget>int</RewardTypeRequiresTransferTarget>
  <RewardLanguages>
    <RewardLanguageItem>
      <LanguageName>string</LanguageName>
      <LanguageExternalReference>string</LanguageExternalReference>
      <LanguageCode>string</LanguageCode>
      <RewardTypeName>string</RewardTypeName>
      <RewardTypeDescription>string</RewardTypeDescription>
    </RewardLanguageItem>
    <RewardLanguageItem>
      <LanguageName>string</LanguageName>
      <LanguageExternalReference>string</LanguageExternalReference>
      <LanguageCode>string</LanguageCode>
      <RewardTypeName>string</RewardTypeName>
      <RewardTypeDescription>string</RewardTypeDescription>
    </RewardLanguageItem>
  </RewardLanguages>
</FetchChoiceRewardWithLanguagesReturn>

HTTP POST

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

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

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

<?xml version="1.0" encoding="utf-8"?>
<FetchChoiceRewardWithLanguagesReturn xmlns="LoyaltyPlatformWS">
  <ReturnCode>int</ReturnCode>
  <RewardTypeCategoryExternalReference>string</RewardTypeCategoryExternalReference>
  <RewardTypeName>string</RewardTypeName>
  <RewardTypePointCost>double</RewardTypePointCost>
  <RewardTypeRetailValue>double</RewardTypeRetailValue>
  <RewardIssueLimit>int</RewardIssueLimit>
  <MemberIssueLimit>int</MemberIssueLimit>
  <MemberIssueLimitOnePerXDays>int</MemberIssueLimitOnePerXDays>
  <ExpireDays>int</ExpireDays>
  <RewardTypeRequiresTransferTarget>int</RewardTypeRequiresTransferTarget>
  <RewardLanguages>
    <RewardLanguageItem>
      <LanguageName>string</LanguageName>
      <LanguageExternalReference>string</LanguageExternalReference>
      <LanguageCode>string</LanguageCode>
      <RewardTypeName>string</RewardTypeName>
      <RewardTypeDescription>string</RewardTypeDescription>
    </RewardLanguageItem>
    <RewardLanguageItem>
      <LanguageName>string</LanguageName>
      <LanguageExternalReference>string</LanguageExternalReference>
      <LanguageCode>string</LanguageCode>
      <RewardTypeName>string</RewardTypeName>
      <RewardTypeDescription>string</RewardTypeDescription>
    </RewardLanguageItem>
  </RewardLanguages>
</FetchChoiceRewardWithLanguagesReturn>