GET api/Keys/ById/{id}

Get Key by Id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Id for the Key

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Returns a Key

Key
NameDescriptionTypeAdditional information
Id

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

globally unique identifier

None.

MerchantId

Guid MerchantId for Key. [REQUIRED]

globally unique identifier

None.

Name

Name of API Key. [NULL]

string

None.

SecretKey

The API Key for the Key. Generated by client. [NULL]

string

None.

Created

Date Key was created. Assigned by system on Create. [REQUIRED]

date

None.

Deleted

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

boolean

None.

Assigned

Indicates whether the Key has been assigned to an App. [REQUIRED]

boolean

None.

Merchant

Gets the Merchant using MerchantId.

Merchant

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "561342c4-cf07-44e9-b806-8767ac1c5374",
  "MerchantId": "d473e8e9-691e-4122-a00a-522090c09a89",
  "Name": "sample string 3",
  "SecretKey": "sample string 4",
  "Created": "2018-09-21T19:50:20.9335818+00:00",
  "Deleted": true,
  "Assigned": true,
  "Merchant": {
    "$id": "2",
    "Id": "42d9697d-b7ad-4dbd-a08a-6414b00e5e83",
    "PlanId": "7593cdc9-4c0e-4743-8058-ef101fe7c315",
    "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-21T19:50:20.9335818+00:00",
      "RegistrationCompleted": true,
      "LastLogin": "2018-09-21T19:50:20.9335818+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": "75e66049-b277-4b94-96d1-5996fea5abda",
      "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": "6",
        "Id": "005f6529-cabd-41a8-b091-2db17ea243bb",
        "MerchantId": "1ecc4ddb-5f59-4ed0-8759-029b12a4ce06",
        "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": "2"
        },
        "CompleteAddress": "sample string 5, sample string 6, sample string 7, sample string 8, sample string 9"
      },
      {
        "$ref": "6"
      }
    ]
  }
}

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.