POST api/Consumers/Account

Create ConsumerAccount

Request Information

URI Parameters

None.

Body Parameters

The ConsumerAccountViewModel

ConsumerAccountViewModel
NameDescriptionTypeAdditional information
Consumer

Consumer

None.

MerchantConsumer

MerchantConsumer

None.

Request Formats

application/json, text/json

Sample:
{
  "Consumer": {
    "$id": "2",
    "Id": "2976c40a-7cf5-4d97-856d-1d9964a65258",
    "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
  },
  "MerchantConsumer": {
    "$id": "3",
    "Id": "d4ee8028-249c-42a2-8a9c-015ecc5806ca",
    "ConsumerId": "2509c928-252c-45bd-b6d2-0377b0871ea8",
    "MerchantId": "fba6488b-038a-4d2d-b53a-89615a76abb4",
    "MerchantLocationId": "eef56579-ea1a-4615-a966-18ac78ab4f45",
    "Email": "sample string 5",
    "PhoneNumber": "sample string 6",
    "FirstName": "sample string 7",
    "LastName": "sample string 8",
    "Deleted": true,
    "EmailOptIn": true,
    "PhoneOptIn": true,
    "FullName": "sample string 8, sample string 7",
    "Consumer": {
      "$ref": "2"
    },
    "Merchant": {
      "$id": "4",
      "Id": "890db285-4336-4cf3-b5ea-98fc3a66f330",
      "PlanId": "98197d2a-54c4-4bbb-82c7-029b32eb01ea",
      "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": "5",
        "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-12-12T05:10:13.1485731+00:00",
        "RegistrationCompleted": true,
        "LastLogin": "2018-12-12T05:10:13.1485731+00:00",
        "TermsConditions": true,
        "MobileNumber": "sample string 21",
        "ProfileImage": "sample string 22",
        "FullName": "sample string 12, sample string 11",
        "Roles": [
          {
            "$id": "6",
            "Id": "sample string 1",
            "Name": "sample string 2",
            "Users": [
              {
                "$ref": "5"
              },
              {
                "$ref": "5"
              }
            ]
          },
          {
            "$ref": "6"
          }
        ]
      },
      "Plan": {
        "$id": "7",
        "Id": "fc784dc0-7012-4633-bb52-774c215e3d7d",
        "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": "8",
          "Id": "61e0e929-05f9-4a96-b3ae-f1b08bdea3f9",
          "MerchantId": "de40b1b6-fd7c-4b59-827c-81843f7351af",
          "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,
          "StoreLocationId": "sample string 14",
          "Merchant": {
            "$ref": "4"
          },
          "CompleteAddress": "sample string 5, sample string 6, sample string 7, sample string 8, sample string 9"
        },
        {
          "$ref": "8"
        }
      ]
    },
    "MerchantLocation": {
      "$ref": "8"
    }
  }
}

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 'ConsumerAccountViewModel'.

Response Information

Resource Description

Returns a MerchantConsumer

ConsumerAccountViewModel
NameDescriptionTypeAdditional information
Consumer

Consumer

None.

MerchantConsumer

MerchantConsumer

None.

Response Formats

application/json, text/json

Sample:
{
  "Consumer": {
    "$id": "2",
    "Id": "1a54bc1d-c141-4cee-a794-8dea2f94b7cc",
    "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
  },
  "MerchantConsumer": {
    "$id": "3",
    "Id": "944eafd8-54ec-4bac-80e8-a9d490fe666f",
    "ConsumerId": "f30495d0-389b-428b-8e46-d737d0d61bfe",
    "MerchantId": "6f456e51-e4cd-42cf-80ef-7ace6fc617d5",
    "MerchantLocationId": "aed8ab93-a610-406a-9b8c-38b50136d564",
    "Email": "sample string 5",
    "PhoneNumber": "sample string 6",
    "FirstName": "sample string 7",
    "LastName": "sample string 8",
    "Deleted": true,
    "EmailOptIn": true,
    "PhoneOptIn": true,
    "FullName": "sample string 8, sample string 7",
    "Consumer": {
      "$ref": "2"
    },
    "Merchant": {
      "$id": "4",
      "Id": "c75e13ab-5916-4762-8d8f-d3dd4ceb5665",
      "PlanId": "8901236a-a17b-48ef-a074-5f954cb5896e",
      "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": "5",
        "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-12-12T05:10:13.3077087+00:00",
        "RegistrationCompleted": true,
        "LastLogin": "2018-12-12T05:10:13.3077087+00:00",
        "TermsConditions": true,
        "MobileNumber": "sample string 21",
        "ProfileImage": "sample string 22",
        "FullName": "sample string 12, sample string 11",
        "Roles": [
          {
            "$id": "6",
            "Id": "sample string 1",
            "Name": "sample string 2",
            "Users": [
              {
                "$ref": "5"
              },
              {
                "$ref": "5"
              }
            ]
          },
          {
            "$ref": "6"
          }
        ]
      },
      "Plan": {
        "$id": "7",
        "Id": "e8d141f6-0e3c-4ce0-af2d-bad630b5e668",
        "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": "8",
          "Id": "7cc1e0e2-2e43-4573-81b4-5edabe54cf86",
          "MerchantId": "393fd3ff-bac1-46e0-90ad-e9d5f65dcacf",
          "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,
          "StoreLocationId": "sample string 14",
          "Merchant": {
            "$ref": "4"
          },
          "CompleteAddress": "sample string 5, sample string 6, sample string 7, sample string 8, sample string 9"
        },
        {
          "$ref": "8"
        }
      ]
    },
    "MerchantLocation": {
      "$ref": "8"
    }
  }
}

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.