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": "0877c5b6-ca3e-4e62-a294-67d9097ae0e6",
  "OfferId": "c2165325-5fcb-4a57-a149-db09ccbe4989",
  "ConsumerId": "4a825a15-9f5d-45e0-834f-7711524a5956",
  "BarcodeId": "20db3494-cd9a-49a6-a8f4-4297e1090e37",
  "Discount": "sample string 2",
  "ShareDiscount": "sample string 3",
  "RedeemDiscount": "sample string 4",
  "Timestamp": "2018-09-21T20:19:58.9611458+00:00",
  "Offer": {
    "$id": "2",
    "Id": "53c160d7-0a44-44d1-9a32-3f039a34d62a",
    "MerchantId": "e6cdca79-2fe6-4943-8f40-3a9b4e0299a5",
    "AppId": "87ee3424-81de-4379-a6be-c9b852800d29",
    "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-21T20:19:58.9611458+00:00",
    "EndDate": "2018-09-21T20:19:58.9611458+00:00",
    "ExpiryDate": "2018-09-21T20:19:58.9611458+00:00",
    "Limited": true,
    "RedemptionLimit": 10,
    "Share": true,
    "Created": "2018-09-21T20:19:58.9611458+00:00",
    "Deleted": true,
    "Published": true,
    "OfferImage": "sample string 14",
    "Pause": true,
    "Private": true,
    "Merchant": {
      "$id": "3",
      "Id": "a32c06f8-2b5a-4c92-9c2d-f4796529ea51",
      "PlanId": "f7d0090b-6743-4803-84fe-2cdc8b854988",
      "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-21T20:19:58.9611458+00:00",
        "RegistrationCompleted": true,
        "LastLogin": "2018-09-21T20:19:58.9611458+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": "e97b2b08-bb13-486e-9f27-331bce7f21f8",
        "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": "c3b7bd70-fe78-4831-b12a-d7332a22d511",
          "MerchantId": "7bc05df7-f00d-4536-b4e0-012238931b60",
          "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": "5bb7a7af-ade5-4fed-8968-dce3ad04321e",
      "MerchantId": "6ef8ede8-0de9-45ba-a6d8-facc15d0cf66",
      "KeyId": "413986e0-7f58-4b03-b7f0-d6435528e562",
      "Name": "sample string 4",
      "Description": "sample string 5",
      "Created": "2018-09-21T20:19:58.9611458+00:00",
      "Modified": "2018-09-21T20:19:58.9611458+00:00",
      "Photo": "sample string 7",
      "Deleted": true,
      "Merchant": {
        "$ref": "3"
      },
      "Key": {
        "$id": "9",
        "Id": "bf8274e8-b416-4b8a-96c2-9140844210f9",
        "MerchantId": "fea8abcf-3818-4749-9964-81b940840f68",
        "Name": "sample string 3",
        "SecretKey": "sample string 4",
        "Created": "2018-09-21T20:19:58.9611458+00:00",
        "Deleted": true,
        "Assigned": true,
        "Merchant": {
          "$ref": "3"
        }
      }
    },
    "Shares": [
      {
        "$id": "10",
        "Id": "3b76acf6-89f4-4f33-ae16-15e4d9afe888",
        "FromConsumerId": "eb492e0c-d733-46c1-8300-5fcfff1e9802",
        "ToConsumerId": "c2e182d6-b087-4318-8c7a-e02509812a91",
        "OfferId": "3c6be956-1107-48c9-8584-037764cf2a8b",
        "Redeemed": true,
        "Timestamp": "2018-09-21T20:19:58.9611458+00:00",
        "ReceiptImage": "sample string 4",
        "TotalAmount": "sample string 5",
        "RedeemedOn": "2018-09-21T20:19:58.9611458+00:00",
        "MerchantLocationId": "8cac3a2f-2211-4623-bb32-be3bbeee4a2d",
        "UserName": "sample string 6",
        "Consumer": {
          "$id": "11",
          "Id": "10f8cb33-3e8c-41f7-8862-18b08645ed3a",
          "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": "d63274c5-0955-43a6-8b20-fdf6cd3fff57",
    "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.