GET api/OfferLocations/ByOfferId/{offerId}

Get OfferLocations 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 OfferLocations

OfferLocation
NameDescriptionTypeAdditional information
Id

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

globally unique identifier

None.

OfferId

Guid OfferId for OfferLocation. [NULLABLE]

globally unique identifier

None.

MerchantLocationId

Guid MerchantLocationId for OfferLocation. [NULLABLE]

globally unique identifier

None.

Deleted

Indicates whether the OfferLocation has been deleted or not. Set to false on Create by system. Set to true on delete by system. [REQUIRED]

boolean

None.

Offer

Gets the Offer using OfferId.

Offer

None.

MerchantLocation

Gets the MerchantLocation using MerchantLocationId.

MerchantLocation

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "d64676ca-d7e3-41cb-a017-e779b7e33646",
  "OfferId": "09d726ea-953a-4b15-a1a2-e1654e635320",
  "MerchantLocationId": "a6c189b4-b8db-4341-bc0e-df64abf3f4aa",
  "Deleted": true,
  "Offer": {
    "$id": "2",
    "Id": "61c23a00-0731-47dc-818e-2e27e4577ae9",
    "MerchantId": "ae181b59-2594-464a-a21f-24b1835b6392",
    "AppId": "62662e7c-c8de-4cf3-a861-7741d300339b",
    "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-15T18:00:12.6661315+00:00",
    "EndDate": "2018-06-15T18:00:12.6661315+00:00",
    "ExpiryDate": "2018-06-15T18:00:12.6661315+00:00",
    "Limited": true,
    "RedemptionLimit": 10,
    "Share": true,
    "Created": "2018-06-15T18:00:12.6661315+00:00",
    "Deleted": true,
    "Published": true,
    "OfferImage": "sample string 14",
    "Pause": true,
    "Private": true,
    "Merchant": {
      "$id": "3",
      "Id": "ce77cec1-6310-419b-9b64-911df87bcd6c",
      "PlanId": "520f9b23-e1ad-45ef-8e7a-c2bebb33840c",
      "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-15T18:00:12.6661315+00:00",
        "RegistrationCompleted": true,
        "LastLogin": "2018-06-15T18:00:12.6661315+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": "ae551d69-f7e6-4726-9f39-22f6851b8c0d",
        "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": "cf265003-de3c-4c97-83ee-c09b38419c73",
          "MerchantId": "6d9e5832-b5cc-4964-ac98-0a815da2c39c",
          "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": "135b4bf6-c653-44c1-84d5-17383ca7ae89",
      "MerchantId": "11507799-ed4d-4af0-b23c-d99b87d580fe",
      "KeyId": "1da99e4c-ffb4-4158-b078-4de1986f4150",
      "Name": "sample string 4",
      "Description": "sample string 5",
      "Created": "2018-06-15T18:00:12.6661315+00:00",
      "Modified": "2018-06-15T18:00:12.6661315+00:00",
      "Photo": "sample string 7",
      "Deleted": true,
      "Merchant": {
        "$ref": "3"
      },
      "Key": {
        "$id": "9",
        "Id": "9c9fcc58-ba27-4c0d-9a97-bcd2ac929e85",
        "MerchantId": "00b4fe03-587c-4744-9fcf-c679ba827c8d",
        "Name": "sample string 3",
        "SecretKey": "sample string 4",
        "Created": "2018-06-15T18:00:12.6661315+00:00",
        "Deleted": true,
        "Assigned": true,
        "Merchant": {
          "$ref": "3"
        }
      }
    },
    "Shares": [
      {
        "$id": "10",
        "Id": "fe5de44a-b35d-4d14-bf45-63803b0cb2c0",
        "FromConsumerId": "46de228a-2338-4c2a-ab78-2eed8e2faa62",
        "ToConsumerId": "4b48f95c-3459-4075-aebb-68b2ebe802e0",
        "OfferId": "f47130fa-0736-4c91-8afb-6ec9e1a095cc",
        "Redeemed": true,
        "Timestamp": "2018-06-15T18:00:12.6661315+00:00",
        "ReceiptImage": "sample string 4",
        "TotalAmount": "sample string 5",
        "RedeemedOn": "2018-06-15T18:00:12.6661315+00:00",
        "MerchantLocationId": "7662cb52-0498-465a-b26b-0abab71407ef",
        "UserName": "sample string 6",
        "Consumer": {
          "$id": "11",
          "Id": "bf26694f-6fdb-4c9e-9cb5-4243fd0c93d3",
          "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"
      }
    ]
  },
  "MerchantLocation": {
    "$ref": "7"
  }
}

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 'FaceOffers.Entities.Consumer' 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 'FaceOffers.Entities.Consumer' contains cycles and cannot be serialized if reference tracking is disabled.