POST api/suppliers/{id}/GetOrderedAddressesByGeo

Get Supplier Details With ordered Addresses By Geo Location

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

supplier Id

integer

Required

Body Parameters

Geo Coordinates

NameDescriptionTypeAdditional information
Longitude

Longitude

decimal number

None.

Latitude

Latitude

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "longitude": 1.1,
  "latitude": 2.1
}

Response Information

supplier info

NameDescriptionTypeAdditional information
Id

Supplier Id

integer

None.

Addresses

List of Supplier Addresses

Collection of SupplierAddress

None.

CompanyLogo

Company Logo URL

string

None.

DetailImage

Supplier Detail Image URL

string

None.

SupplierImage

Supplier Image

string

None.

InfoWebsite

Supplier Info Web Site URL

string

None.

IsFavorite

Is in favortes

boolean

None.

PrimaryMainCategoryId

Primary Category Id

integer

None.

PrimaryMainCategory

Primary Category Name

string

None.

Info

Supplier Info

string

None.

Name

Supplier Name

string

None.

Teaser

Supplier Teaser

string

None.

Deals

Deals

Collection of Deal

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "addresses": [
    {
      "addressLine": "sample string 1",
      "addressId": 2,
      "city": "sample string 3",
      "phone": "sample string 4",
      "webSite": "sample string 5",
      "postCode": "sample string 6",
      "latitude": 1.1,
      "longitude": 1.1
    },
    {
      "addressLine": "sample string 1",
      "addressId": 2,
      "city": "sample string 3",
      "phone": "sample string 4",
      "webSite": "sample string 5",
      "postCode": "sample string 6",
      "latitude": 1.1,
      "longitude": 1.1
    }
  ],
  "companyLogo": "sample string 2",
  "detailImage": "sample string 3",
  "supplierImage": "sample string 4",
  "infoWebsite": "sample string 5",
  "isFavorite": true,
  "primaryMainCategoryId": 1,
  "primaryMainCategory": "sample string 7",
  "info": "sample string 8",
  "name": "sample string 9",
  "teaser": "sample string 10",
  "deals": [
    {
      "dealId": 1,
      "dealType": 0,
      "dealTypeName": "sample string 2",
      "dealAction": 0,
      "additionalText": "sample string 3",
      "dealActionContent": "sample string 4",
      "dealActionText": "sample string 5",
      "specialOfferInfo": {
        "info": "sample string 1",
        "timeLeft": "sample string 2",
        "endDateTimeUTC": "2017-11-20T08:43:29.5036232+01:00"
      },
      "discounts": [
        {
          "discountId": 1,
          "description": "sample string 1",
          "percentDiscount": 2.1,
          "amountDiscount": 3.1,
          "dealDiscountType": 0,
          "normalPrice": 1.1,
          "discountPrice": 1.1,
          "code": "sample string 4",
          "discountDescription": "sample string 5",
          "discountString": "sample string 6",
          "currency": {
            "currencySymbol": "sample string 1",
            "isPrefix": true
          }
        },
        {
          "discountId": 1,
          "description": "sample string 1",
          "percentDiscount": 2.1,
          "amountDiscount": 3.1,
          "dealDiscountType": 0,
          "normalPrice": 1.1,
          "discountPrice": 1.1,
          "code": "sample string 4",
          "discountDescription": "sample string 5",
          "discountString": "sample string 6",
          "currency": {
            "currencySymbol": "sample string 1",
            "isPrefix": true
          }
        }
      ],
      "shoppingCardInfo": {
        "hasShoppingCardTopUp": true,
        "hasShoppingCardBuyNew": true
      }
    },
    {
      "dealId": 1,
      "dealType": 0,
      "dealTypeName": "sample string 2",
      "dealAction": 0,
      "additionalText": "sample string 3",
      "dealActionContent": "sample string 4",
      "dealActionText": "sample string 5",
      "specialOfferInfo": {
        "info": "sample string 1",
        "timeLeft": "sample string 2",
        "endDateTimeUTC": "2017-11-20T08:43:29.5036232+01:00"
      },
      "discounts": [
        {
          "discountId": 1,
          "description": "sample string 1",
          "percentDiscount": 2.1,
          "amountDiscount": 3.1,
          "dealDiscountType": 0,
          "normalPrice": 1.1,
          "discountPrice": 1.1,
          "code": "sample string 4",
          "discountDescription": "sample string 5",
          "discountString": "sample string 6",
          "currency": {
            "currencySymbol": "sample string 1",
            "isPrefix": true
          }
        },
        {
          "discountId": 1,
          "description": "sample string 1",
          "percentDiscount": 2.1,
          "amountDiscount": 3.1,
          "dealDiscountType": 0,
          "normalPrice": 1.1,
          "discountPrice": 1.1,
          "code": "sample string 4",
          "discountDescription": "sample string 5",
          "discountString": "sample string 6",
          "currency": {
            "currencySymbol": "sample string 1",
            "isPrefix": true
          }
        }
      ],
      "shoppingCardInfo": {
        "hasShoppingCardTopUp": true,
        "hasShoppingCardBuyNew": true
      }
    }
  ]
}