GET api/UniqueOffers/ByConsumer/{consumerId}

Get UniqueOffers By ConsumerId

Request Information

URI Parameters

NameDescriptionTypeAdditional information
consumerId

Id for the Consumer

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Returns a list of UniqueOffers

UniqueOffer
NameDescriptionTypeAdditional information
Id

GUID Id for UniqueOffer. Assigned by system on Create. [REQUIRED]

globally unique identifier

None.

OfferId

The OfferId for the Offer. [NULLABLE]

globally unique identifier

None.

ConsumerId

The ConsumerId for the Consumer. [NULLABLE]

globally unique identifier

None.

BarcodeId

The BarcodeId for the Barcode. [NULLABLE]

globally unique identifier

None.

Discount

The OfferReward Reward. [NULL]

string

String length: inclusive between 0 and 255

ShareDiscount

The OfferReward Reward once the share reward has been earned. [NULL]

string

None.

RedeemDiscount

The OfferReward Reward once the redemption reward has been earned. [NULL]

string

String length: inclusive between 0 and 255

Timestamp

Indicates when the UniqueOffer was created. [NULLABLE]

date

None.

Offer

Gets the Offer using OfferId.

Offer

None.

Consumer

Gets the Consumer using ConsumerId.

Consumer

None.

Barcode

Gets the Bardcode using BarcodeId.

Barcode

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "24f04c98-1bae-4143-8cbf-ff25c6ed7137",
  "OfferId": "49026ebf-13d5-4cf7-8670-d9fd21a64118",
  "ConsumerId": "c1eae37e-9497-4a34-93b4-62fe2db320ae",
  "BarcodeId": "8f5cdaa7-f3fe-4528-9de5-8fa88969c11e",
  "Discount": "sample string 2",
  "ShareDiscount": "sample string 3",
  "RedeemDiscount": "sample string 4",
  "Timestamp": "2018-09-18T13:26:41.9442042+00:00",
  "Offer": {
    "$id": "2",
    "Id": "256ffdf6-54c3-429a-bf18-6b34e7062060",
    "MerchantId": "8bd6dd57-63d6-482a-8994-27eedb6d9543",
    "AppId": "5ba0379c-95c4-4dcc-85b3-ff1416871257",
    "Type": 0,
    "Reward": "sample string 4",
    "IsRewardBased": true,
    "Name": "sample string 5",
    "Description": "sample string 6",
    "TermsConditions": "sample string 7",
    "Tags": "sample string 8",
    "StartDate": "2018-09-18T13:26:41.9442042+00:00",
    "EndDate": "2018-09-18T13:26:41.9442042+00:00",
    "ExpiryDate": "2018-09-18T13:26:41.9442042+00:00",
    "Limited": true,
    "RedemptionLimit": 10,
    "Share": true,
    "Created": "2018-09-18T13:26:41.9442042+00:00",
    "Deleted": true,
    "Published": true,
    "OfferImage": "sample string 14",
    "Pause": true,
    "Private": true,
    "Merchant": {
      "$id": "3",
      "Id": "ee692553-bf41-49e7-ab9e-34d6a20aaa6d",
      "PlanId": "44102c89-11d3-4ae1-a6f6-5d6e6a0424fb",
      "StripeToken": "sample string 2",
      "StripeCustomerId": "sample string 3",
      "CompanyName": "sample string 4",
      "UserId": "sample string 5",
      "Active": true,
      "Deleted": true,
      "TimeZone": "sample string 8",
      "User": {
        "$id": "4",
        "Id": "sample string 1",
        "Email": "sample string 2",
        "EmailConfirmed": true,
        "UserName": "sample string 10",
        "FirstName": "sample string 11",
        "LastName": "sample string 12",
        "Address1": "sample string 13",
        "Address2": "sample string 14",
        "City": "sample string 15",
        "State": "sample string 16",
        "Country": "sample string 17",
        "ZipCode": "sample string 18",
        "DateRegistered": "2018-09-18T13:26:41.9442042+00:00",
        "RegistrationCompleted": true,
        "LastLogin": "2018-09-18T13:26:41.9442042+00:00",
        "TermsConditions": true,
        "MobileNumber": "sample string 21",
        "ProfileImage": "sample string 22",
        "FullName": "sample string 12, sample string 11",
        "Roles": [
          {
            "$id": "5",
            "Id": "sample string 1",
            "Name": "sample string 2",
            "Users": [
              {
                "$ref": "4"
              },
              {
                "$ref": "4"
              }
            ]
          },
          {
            "$ref": "5"
          }
        ]
      },
      "Plan": {
        "$id": "6",
        "Id": "da4b2983-2a06-4290-a714-7abe6d019e0d",
        "PlanName": "sample string 2",
        "Description": "sample string 3",
        "LimitedApps": true,
        "AppLimit": 1,
        "LimitedLocations": true,
        "LocationLimit": 1,
        "LimitedOffers": true,
        "OfferLimit": 1,
        "Amount": 1,
        "WithCall": true,
        "SortNo": 8,
        "Billable": true
      },
      "MerchantLocations": [
        {
          "$id": "7",
          "Id": "933a94c6-bb5d-44a4-b68d-6d5febfedea3",
          "MerchantId": "f527ae6f-74a2-4fc7-988e-a893739317f8",
          "Active": true,
          "Name": "sample string 4",
          "Address1": "sample string 5",
          "Address2": "sample string 6",
          "City": "sample string 7",
          "State": "sample string 8",
          "ZipCode": "sample string 9",
          "PhoneNumber": "sample string 10",
          "Deleted": true,
          "Main": true,
          "Latitude": 1.1,
          "Longitude": 1.1,
          "GeoLocation": null,
          "GeoSpot": true,
          "Merchant": {
            "$ref": "3"
          },
          "CompleteAddress": "sample string 5, sample string 6, sample string 7, sample string 8, sample string 9"
        },
        {
          "$ref": "7"
        }
      ]
    },
    "App": {
      "$id": "8",
      "Id": "47d6b657-0e3e-4a75-b1a8-7adcb03298fe",
      "MerchantId": "ad4fd4f7-b99a-4033-9950-2134677a318b",
      "KeyId": "5e0f4b82-68c3-4857-9937-19314c22afbd",
      "Name": "sample string 4",
      "Description": "sample string 5",
      "Created": "2018-09-18T13:26:41.9442042+00:00",
      "Modified": "2018-09-18T13:26:41.9442042+00:00",
      "Photo": "sample string 7",
      "Deleted": true,
      "Merchant": {
        "$ref": "3"
      },
      "Key": {
        "$id": "9",
        "Id": "1ddc4d0c-2163-49d6-a86f-e0fc473384f5",
        "MerchantId": "380ee56d-e0c9-4b85-b068-0c7bd605f609",
        "Name": "sample string 3",
        "SecretKey": "sample string 4",
        "Created": "2018-09-18T13:26:41.9442042+00:00",
        "Deleted": true,
        "Assigned": true,
        "Merchant": {
          "$ref": "3"
        }
      }
    },
    "Shares": [
      {
        "$id": "10",
        "Id": "8ad795b5-4ac5-44b1-9ede-f944a798db24",
        "FromConsumerId": "dcbae89f-9a4a-401f-b0ce-037b5b488b69",
        "ToConsumerId": "364c60b6-bb9d-4b2a-9130-7d8ae61f288d",
        "OfferId": "09fbe084-07c2-4335-aecd-aeebb4842cbc",
        "Redeemed": true,
        "Timestamp": "2018-09-18T13:26:41.9442042+00:00",
        "ReceiptImage": "sample string 4",
        "TotalAmount": "sample string 5",
        "RedeemedOn": "2018-09-18T13:26:41.9442042+00:00",
        "MerchantLocationId": "8bcc9ea5-140f-4faf-ae1d-74d13815097d",
        "UserName": "sample string 6",
        "Consumer": {
          "$id": "11",
          "Id": "2e7e8d31-fd9f-4e83-ab16-99c16ca5250d",
          "Gender": "sample string 2",
          "Address1": "sample string 3",
          "Address2": "sample string 4",
          "City": "sample string 5",
          "State": "sample string 6",
          "ZipCode": "sample string 7",
          "Image": "sample string 8",
          "Deleted": true
        },
        "Consumer1": {
          "$ref": "11"
        },
        "Offer": {
          "$ref": "2"
        }
      },
      {
        "$ref": "10"
      }
    ]
  },
  "Consumer": {
    "$ref": "11"
  },
  "Barcode": {
    "$id": "12",
    "Id": "a195debc-1782-41f1-a71f-64faea2ca3bc",
    "Type": 1,
    "Code": "sample string 2",
    "Deleted": true
  }
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[FaceOffers.Entities.UniqueOffer, FaceOffers.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[FaceOffers.Entities.UniqueOffer, FaceOffers.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.