Example 1. No supplier id

Request

Json

POST http://priceapi.lognett.no/api/price
Header
Content-Type: application/json
Authorization: Basic {Key from log:nett}

Request Body

{
  "PriceRequestType": 0,
  "LocationId": "10112",
  "Suppliers": [
  {
      "Supplier": -1,
      "CustomerNumber": "11290",
  }],
    "ToZipCode": "2406",
   "ETDDate": "2016-05-23T00:00:00",
   "Packages": [
    {
      "NumberOfPackages": 1,
      "PackageWeight": 1
    }]
}

Parameters

The method does not require any parametes

Response

Will provide an HTTP response 200 OK.

{
    "Products": [1]
        0:  {
            "Supplier": -1
            "ProductName": "Test"
            "Product": ""
            "Price": 247
            "ErrorMessage": ""
            "PackagePrices": {
                    "Standard": {
                        "PriceWithVAT": 247
                        "PriceWithOutVAT": 197.6
                        "VAT": 49.4
                        "Discount": 0
                        }
                    "AdditionalServices": [0]
            }
        }
}

Example 1. No price found

Request

Json

POST http://priceapi.lognett.no/api/price
Header
Content-Type: application/json
Authorization: Basic {Key from log:nett}

Request Body

{
  "PriceRequestType": 0,
  "LocationId": "51",
  "Suppliers": [
    {
      "Supplier": 221,
      "Product": "",
      "CustomerNumber": "0196311",
    }
  ],
   "ToZipCode": "3290",
   "ETDDate": "2016-05-18T00:00:00",
   "ETADate": "2016-05-25T00:00:00+02:00",
   "LoadingMeter": 2.2,
   "AdditionalInformation": {
    "Crane": false,
    "Hatch": false,
    "Insurance": false,
    "Dangerous": false,
    "Hot": false
  },
  "Details": [
    {
      "NumberOfPackages": 2,
      "PackageWeight": 2152,
      "PackageVolume": 5.614,
    }
  ]
}

Parameters

The method does not require any parametes

Response

Will provide an HTTP response 200 OK.

 {
    "Products": [1]
    0:  {
        "Supplier": 221
        "ProductName": null
        "Product": null
        "Price": -1
        "ErrorMessage": "NO PRICE FOUND FOR CUSTOMERNUMBER: 0196311"
        "PackagePrices": {
        "Standard": null
        "AdditionalServices": [0]
        }
    }
}

Example 1. On supplier Id

Request

Json

POST http://priceapi.lognett.no/api/price
Header
Content-Type: application/json
Authorization: Basic {Key from log:nett}

Request Body

    {
  "PriceRequestType": 0,
  "LocationId": "",
  "Suppliers": [
    {
      "Supplier": 487,
      "Product": "",
      "CustomerNumber": "",
      "AdditionalProducts": []
    }
  ],
  "FromZipCode": "",
  "ToZipCode": "0582 ",
  "CountryCode": "",
  "ETDDate": "2016-05-25T00:00:00",
  "ETADate": "2016-05-25T00:00:00+02:00",
  "Currency": "",
  "Pallets": -1,
  "LoadingMeter": 1,
  "FBWeight": -1,
  "Km": -1,
  "ADRWeight": -1,
  "FreightZone": "",
  "PriceAdjustments": "",
  "PriceAgreementCode": "",
  "TypeOfGoods": "",
  "PaymentCode": "",
  "TodConditionCode": "",
  "AdditionalInformation": {
    "Crane": false,
    "Hatch": false,
    "Insurance": false,
    "Dangerous": false,
    "Hot": false
  },
  "Details": [
    {
      "NumberOfPackages": 1,
      "PackageWeight": 1,
      "PackageVolume": 0.005,
      "PackageHeight": -1,
      "PackageWidth": -1,
      "PackageLength": -1,
      "LoadingMeter": -1
    }
  ]
}

Parameters

The method does not require any parametes

Response

Will provide an HTTP response 200 OK.

             {
  "Products": [
    {
      "Supplier": 487,
      "ProductName": "250",
      "Product": "",
      "Price": 57,
      "ErrorMessage": "",
      "PackagePrices": {
        "Standard": {
          "PriceWithVAT": 57,
          "PriceWithOutVAT": 45.6,
          "VAT": 11.4,
          "Discount": 0
        },
        "AdditionalServices": []
      }
    }
  ]
}

Example 4. 2 suppliers

Request

Json

POST http://priceapi.lognett.no/api/price
Header
Content-Type: application/json
Authorization: Basic {Key from log:nett}

Request Body

     {
  "PriceRequestType": 0,
  "Suppliers": [
    {
      "Supplier": 487,
      "Product": "",
      "CustomerNumber": "",
    },
    {
      "Supplier": 549,
    }
  ],
  "ToZipCode": "0582 ",
  "ETDDate": "2016-05-25T00:00:00",
  "Km": -1,
  "AdditionalInformation": {
    "Crane": false,
    "Hatch": false,
    "Insurance": false,
    "Dangerous": false,
    "Hot": false
  },
  "Details": [
    {
      "NumberOfPackages": 1,
      "PackageWeight": 1,
      "PackageVolume": 0.005,
      "PackageHeight": -1,
      "PackageWidth": -1,
      "PackageLength": -1,
      "LoadingMeter": -1
    }
  ]
}

Parameters

The method does not require any parametes

Response

Will provide an HTTP response 200 OK.

            {
  "Products": [
    {
      "Supplier": 487,
      "ProductName": "250",
      "Product": "",
      "Price": 57,
      "ErrorMessage": "",
      "PackagePrices": {
        "Standard": {
          "PriceWithVAT": 57,
          "PriceWithOutVAT": 45.6,
          "VAT": 11.4,
          "Discount": 0
        },
        "AdditionalServices": []
      }
    },
    {
      "Supplier": 549,
      "ProductName": "252",
      "Product": "",
      "Price": 120,
      "ErrorMessage": "",
      "PackagePrices": {
        "Standard": {
          "PriceWithVAT": 120,
          "PriceWithOutVAT": 96,
          "VAT": 24,
          "Discount": 0
        },
        "AdditionalServices": []
      }
    }
  ]
}