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": "bb523eca-7d9f-4fe0-9e92-d7d792761252",
    "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": "3f84f48a-9690-49b3-80a9-ef7faecfce77",
    "ConsumerId": "bb4424f1-ca95-48ab-9ef4-e10fdcc3a984",
    "MerchantId": "85dc55be-b01a-41ab-a703-77f0ac16453c",
    "MerchantLocationId": "5e8d6804-759e-4fee-9bd6-1ff45d07fe08",
    "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": "c91fe2f7-64e9-4ca6-82d1-6f2fcb60c464",
      "PlanId": "63d4c6d5-84fa-4cdc-a3d6-f587a5a98863",
      "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": "2019-03-21T01:36:04.6445583+00:00",
        "RegistrationCompleted": true,
        "LastLogin": "2019-03-21T01:36:04.6445583+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": "d7a66553-afab-4cb7-9596-feafbdce73c1",
        "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": "531779ed-97fe-4b02-9faa-bdaea141e0b5",
          "MerchantId": "fe7ddae9-ea84-4601-852b-12f7ab24d685",
          "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": "808baf9d-2056-4930-baf2-66d3b0ee48cd",
    "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": "104b3bfb-3d8b-4ada-9b32-b8053267d3d2",
    "ConsumerId": "716565f1-1413-47a2-b8a6-ab0ba187df36",
    "MerchantId": "2d02031d-edd4-42d1-b3a7-ce5fb65147c7",
    "MerchantLocationId": "1b0f7a25-c96a-4cac-b870-bea8f225f04c",
    "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": "c564df57-1cf7-49d6-932d-2e2321ddc456",
      "PlanId": "9e5033d5-98db-4d6d-ba5c-3a9c3e583cc6",
      "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": "2019-03-21T01:36:04.8330308+00:00",
        "RegistrationCompleted": true,
        "LastLogin": "2019-03-21T01:36:04.8330308+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": "b9bbf31d-549d-40f9-84ea-bebd119ef887",
        "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": "f205f82f-85bb-415e-b255-7e5f365d9ea6",
          "MerchantId": "a5ef2b6b-b25d-4666-9a42-d7588ed73a79",
          "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.