PUT api/MerchantLocations

Update MerchantLocation

Request Information

URI Parameters

None.

Body Parameters

The MerchantLocation class

MerchantLocation
NameDescriptionTypeAdditional information
Id

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

globally unique identifier

None.

MerchantId

GUID Id for Merchant. [REQUIRED]

globally unique identifier

None.

Active

Indicates whether the Location is active or not. [REQUIRED]

boolean

None.

Name

Name of the Location. [NULL]

string

None.

Address1

Address 1 for the Location. [NULL]

string

None.

Address2

Address 2 for the Location. [NULL]

string

None.

City

City of the Location [NULL]

string

None.

State

State of the Location [NULL]

string

None.

ZipCode

ZipCode for the Location [NULL]

string

None.

PhoneNumber

Phone number for the Location [NULL]

string

None.

Deleted

Indicates whether the Location has been deleted or not. [REQUIRED]

boolean

None.

Main

Indicates whether the Location is the main Location for the Merchant. [REQUIRED]

boolean

None.

Latitude

GPS Latitude coordinates for location. [NULLABLE]

decimal number

None.

Longitude

GPS Longitude coordinates for location. [NULLABLE]

decimal number

None.

GeoLocation

Latitude and Longitude combined to get geographic point on Earth [NULL]

DbGeography

None.

GeoSpot

Indicates whether the location is used for an actual business or a location marker for targeting purposes [REQUIRED]

boolean

None.

Merchant

Gets the Merchant using MerchantId.

Merchant

None.

CompleteAddress

Gets the complete address for the Location.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "c7bdab38-3749-4121-9a6a-aa7e495bb208",
  "MerchantId": "f17bd9d2-281e-40c5-940a-64309bc8ea63",
  "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": {
    "$id": "2",
    "Id": "6f12e482-d30c-4b14-9f51-386c6724a4b0",
    "PlanId": "d5ff6934-bb57-462e-88d9-48552b582e51",
    "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": "3",
      "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-19T10:11:24.7256968+00:00",
      "RegistrationCompleted": true,
      "LastLogin": "2018-09-19T10:11:24.7256968+00:00",
      "TermsConditions": true,
      "MobileNumber": "sample string 21",
      "ProfileImage": "sample string 22",
      "FullName": "sample string 12, sample string 11",
      "Roles": [
        {
          "$id": "4",
          "Id": "sample string 1",
          "Name": "sample string 2",
          "Users": [
            {
              "$ref": "3"
            },
            {
              "$ref": "3"
            }
          ]
        },
        {
          "$ref": "4"
        }
      ]
    },
    "Plan": {
      "$id": "5",
      "Id": "dba5b658-6532-494b-b7b3-ec9ab9c9242f",
      "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": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ]
  },
  "CompleteAddress": "sample string 5, sample string 6, sample string 7, sample string 8, sample string 9"
}

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.MerchantConsumer, 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.MerchantConsumer, FaceOffers.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MerchantLocation'.

Response Information

Resource Description

Returns a MerchantLocation

MerchantLocation
NameDescriptionTypeAdditional information
Id

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

globally unique identifier

None.

MerchantId

GUID Id for Merchant. [REQUIRED]

globally unique identifier

None.

Active

Indicates whether the Location is active or not. [REQUIRED]

boolean

None.

Name

Name of the Location. [NULL]

string

None.

Address1

Address 1 for the Location. [NULL]

string

None.

Address2

Address 2 for the Location. [NULL]

string

None.

City

City of the Location [NULL]

string

None.

State

State of the Location [NULL]

string

None.

ZipCode

ZipCode for the Location [NULL]

string

None.

PhoneNumber

Phone number for the Location [NULL]

string

None.

Deleted

Indicates whether the Location has been deleted or not. [REQUIRED]

boolean

None.

Main

Indicates whether the Location is the main Location for the Merchant. [REQUIRED]

boolean

None.

Latitude

GPS Latitude coordinates for location. [NULLABLE]

decimal number

None.

Longitude

GPS Longitude coordinates for location. [NULLABLE]

decimal number

None.

GeoLocation

Latitude and Longitude combined to get geographic point on Earth [NULL]

DbGeography

None.

GeoSpot

Indicates whether the location is used for an actual business or a location marker for targeting purposes [REQUIRED]

boolean

None.

Merchant

Gets the Merchant using MerchantId.

Merchant

None.

CompleteAddress

Gets the complete address for the Location.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "f7e4e27d-4d6b-41f7-819a-26fdae68dd37",
  "MerchantId": "e3a9bed4-22fb-4667-8fae-920bec5aa88d",
  "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": {
    "$id": "2",
    "Id": "297ec084-d795-431e-a62f-14a8d4af1d5f",
    "PlanId": "1a2572fb-ece8-45b8-8a91-d305b278c54f",
    "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": "3",
      "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-19T10:11:24.8349279+00:00",
      "RegistrationCompleted": true,
      "LastLogin": "2018-09-19T10:11:24.8349279+00:00",
      "TermsConditions": true,
      "MobileNumber": "sample string 21",
      "ProfileImage": "sample string 22",
      "FullName": "sample string 12, sample string 11",
      "Roles": [
        {
          "$id": "4",
          "Id": "sample string 1",
          "Name": "sample string 2",
          "Users": [
            {
              "$ref": "3"
            },
            {
              "$ref": "3"
            }
          ]
        },
        {
          "$ref": "4"
        }
      ]
    },
    "Plan": {
      "$id": "5",
      "Id": "fdf18914-fd04-4af2-9592-12a21d984037",
      "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": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ]
  },
  "CompleteAddress": "sample string 5, sample string 6, sample string 7, sample string 8, sample string 9"
}

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.MerchantConsumer, 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.MerchantConsumer, FaceOffers.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.