Loyalty programs can be associated with specific sites. To see which loyalty programs are associated with a site, issue a GET request using the /ccadmin/v1/sites/{site_id} endpoint on the administration server. The response may be similar to the following:

{
  "...": "...",
  "loyaltyPrograms": [
    {
      "repositoryId": "siteUS_pg100001",
      "programId": "pg100001",
      "programName": "Premier",
      "associationDate": "2017-07-05T14:15:37.000Z"
    },
    {
      "repositoryId": "siteUS_pg100002",
      "programId": "pg100002",
      "programName": "Insider",
      "associationDate": "2017-07-05T14:15:37.000Z"
    }
  ]
}

To associate a loyalty program with a site, issue a POST request to the /ccadmin/v1/sites endpoint on the administration server. For example:

{
  "properties": {
    "...": "...",
    "loyaltyPrograms": [
      {
        "programId": "pg100001",
        "programName": "Premier"
      }
    ]
  }
}

You can associate a loyalty program with a site at any time by issuing a PUT request to /ccadmin/v1/sites/{site_id}.


Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices