GET api/UniqueOffers/ByOfferId/{offerId}

Get UniqueOffers by OfferId

Request Information

URI Parameters

NameDescriptionTypeAdditional information
offerId

Id for the Offer

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": "de466da2-31aa-48c4-bcad-b875fe77619a",
  "OfferId": "e91b68f8-8bba-4b22-8554-199c8e4d06b5",
  "ConsumerId": "42188320-62ee-4c99-b62a-52b79e4825fc",
  "BarcodeId": "d0ff472a-c801-42a6-9371-1129557c084f",
  "Discount": "sample string 2",
  "ShareDiscount": "sample string 3",
  "RedeemDiscount": "sample string 4",
  "Timestamp": "2018-06-14T17:33:12.8390027+00:00",
  "Offer": {
    "$id": "2",
    "Id": "46cd3a68-6bca-454d-9f53-a90d40132a33",
    "MerchantId": "16b88f8c-bf10-4775-bfac-fc99000dead4",
    "AppId": "115a7ec2-ba11-48c8-8837-344c00ab30d7",
    "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-06-14T17:33:12.8390027+00:00",
    "EndDate": "2018-06-14T17:33:12.8390027+00:00",
    "ExpiryDate": "2018-06-14T17:33:12.8390027+00:00",
    "Limited": true,
    "RedemptionLimit": 10,
    "Share": true,
    "Created": "2018-06-14T17:33:12.8390027+00:00",
    "Deleted": true,
    "Published": true,
    "OfferImage": "sample string 14",
    "Pause": true,
    "Private": true,
    "Merchant": {
      "$id": "3",
      "Id": "eb583fde-11ff-4b08-8ec8-dcea6f0ff357",
      "PlanId": "211f4174-d51c-4b21-9302-bf96fc64c9af",
      "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-06-14T17:33:12.8390027+00:00",
        "RegistrationCompleted": true,
        "LastLogin": "2018-06-14T17:33:12.8390027+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": "d7980743-b529-4161-bb61-af0470ff7807",
        "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": "1554ab5b-3af8-48d3-822b-83d5617dbfe0",
          "MerchantId": "f732589b-01be-4aa4-bc45-ccfc95c4ce57",
          "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,
          "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": "e4495c96-984e-4d0d-b253-4d9b465ea59d",
      "MerchantId": "c46e732e-f5d8-47c2-8467-436acf330ffe",
      "KeyId": "aa3c0369-7269-44f2-8f80-42711944a21b",
      "Name": "sample string 4",
      "Description": "sample string 5",
      "Created": "2018-06-14T17:33:12.8390027+00:00",
      "Modified": "2018-06-14T17:33:12.8390027+00:00",
      "Photo": "sample string 7",
      "Deleted": true,
      "Merchant": {
        "$ref": "3"
      },
      "Key": {
        "$id": "9",
        "Id": "420704a5-a53f-464b-a128-d344f137f567",
        "MerchantId": "c29f12d9-76c6-452a-b061-9eeda8238c96",
        "Name": "sample string 3",
        "SecretKey": "sample string 4",
        "Created": "2018-06-14T17:33:12.8390027+00:00",
        "Deleted": true,
        "Assigned": true,
        "Merchant": {
          "$ref": "3"
        }
      }
    },
    "Shares": [
      {
        "$id": "10",
        "Id": "54d57e05-1596-49e1-a595-1b943c6ad53d",
        "FromConsumerId": "a18a41ef-ef3b-43df-856b-a28e2194e520",
        "ToConsumerId": "fe345aac-8e08-46ff-87ed-2ebe6fb96fdf",
        "OfferId": "895d1f63-9719-42f6-aab9-20d84b07bb1a",
        "Redeemed": true,
        "Timestamp": "2018-06-14T17:33:12.8390027+00:00",
        "ReceiptImage": "sample string 4",
        "TotalAmount": "sample string 5",
        "RedeemedOn": "2018-06-14T17:33:12.8390027+00:00",
        "MerchantLocationId": "f20e0517-5515-439d-8f26-f937a14effb1",
        "UserName": "sample string 6",
        "Consumer": {
          "$id": "11",
          "Id": "b9452cf0-b859-4b80-a5b2-a8b576e8bee1",
          "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": "1ab4e418-3a98-4df0-928d-f2cb5f2d62fc",
    "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.