Popular items

 

Onetrail goes to REST part 2

Blogpost by: Eric van Bree
From: Friday 16 August 2013

The first resource that we are going to be undisclosed is the Price and Availability service. With four simple steps you will be able to have it up and running.

  • Set the HTTP method
  • Set the basic Authorization
  • Set the accept to the desired media type
  • Call the URL

For the Price and Availability REST service the only method which is available is GET.

The available media types are “application/xml”  and “application/json” and the URL  is http://www.onetrail.net/rest/Seller/{Sellergln}/PnA/{mfpn}

The xml media type has the same format as you receive from our other services. So that’s it.

If you would like us to have other media type exposed, just let us know.

An example call
http://www.onetrail.net/rest/Seller/8714231441250/PnA/BLY576ET3

returns this Json object

“ns2:product”: {
    “ns2:sellerInfo”: {
      “ns2:remarks”: {
        “content”: “RealTime Response”,
        “lang”: “EN”
      },
      “ns2:productPrice”: {
        “ns2:price”: {
          “content”: 1592.05,
          “currency”: “EUR”
        },
        “ns2:minimalOrderQuantity”: 1,
        “type”: “netPrice”
      },
      “ns2:productIdentifiers”: {
        “ns2:productIdentifier”: [
          {
            “content”: “HPLY576ET-BUN3”,
            “type”: “Seller”
          },
          {
            “type”: “EAN”
          },
          {
            “content”: “BLY576ET3”,
            “type”: “Manufacturer”
          }
        ]
      },
      “ns2:brand”: “HEWLETT PACKARD”,
      “ns2:requestStatus”: {
        “StatusCode”: “000E”,
        “GlobalProcessCode”: “PNA”,
        “AdditionalInformation”: “Ok”
      },
      “ns2:taxCode”: “HIGH”,
      “ns2:stock”: 0,
      “ns2:firstDate”: “20130424T020000”,
      “ns2:onOrder”: 8,
      “ns2:productClassificationCode”: 43211503,
      “PartnerID”: 8714231441250,
      “ns2:shortDescription”: {
        “content”: “HP MOBILE WORKSTATION BUNDEL (LY576ET+2xH2P65ET+QK639ET) 8570w Quad-Core i7-3630QM 15.6iFHD met SRT en NVIDIA K2000M enExtended Life Battery en 24GB geheugen”,
        “lang”: “EN”
      },
      “ns2:serialKeeping”: “Unknown”,
      “ns2:ATPDate”: “20130829T000000”
    },
    “productID”: “BLY576ET3”,
    “xmlns:ns2”: “OTPRD”,
    “ns2:productInfo”: {
      “ns2:productGroup”: 10040,
      “ns2:productClassificationCode”: 43211503,
      “ns2:brand”: “HP”,
      “ns2:productIdentifiers”: {
        “ns2:productIdentifier”: {
          “content”: “BLY576ET3”,
          “type”: “Onetrail”
        }
      },
      “PartnerID”: 8714253023809,
      “ns2:textualDescription”: {
        “content”: “HP MOBILE WORKSTATION BUNDEL (LY576ET+2xH2P65ET+QK639ET) 8570w Quad-Core i7-3630QM 15.6iFHD met SRT en NVIDIA K2000M enExtended Life Battery en 24GB geheugen”,
        “PartnerID”: 8714253023809,
        “lang”: “EN”
      },
      “ns2:firstDate”: “20130424T100000”
    }
  }

« Back to News

Add your reply

Reactieformulier

They chose Onetrail