Skip to main content
07399 456 959 admin@uconvert.co.uk

Product Cheapest Deal Object
Last updated: January 14 2020 03:00 AM

If cheapestDeal.monthlyTextAllowance, cheapestDeal.monthlyCallAllowance or cheapestDeal.monthlyDataAllowance returns 999999, this is equivalent to UNLIMITED

Product Cheapest Deal Object

Attribute Type Description
cheapestDeal array[object] An array containing the cheapest deal for the product.
cheapestDeal.upfrontProductCost decimal The upfront cost for the product

E.g. 19.99
cheapestDeal.monthlyContractPrice decimal The monthly recurring cost for the deal

E.g. 34.00
cheapestDeal.currencyLabel string The curreny label of the deal

E.g. £
cheapestDeal.monthlyTextAllowance string The monthly text allowance for the deal

E.g. 1000
cheapestDeal.monthlyFriendlyTextAllowance string The friendly text allowance of the deal

E.g. unlimited
cheapestDeal.monthlyTextAllowanceLabel string The label for text allowance of the deal

E.g. texts
cheapestDeal.monthlyCallAllowance string The monthly call allowance for the deal

E.g. 5000
cheapestDeal.monthlyFriendlyCallAllowance string The friendly call allowance of the deal

E.g. unlimited
cheapestDeal.monthlyCallAllowanceLabel string The label for call allowance of the deal

E.g. minutes
cheapestDeal.monthlyDataAllowance string The monthly data allowance for the deal

E.g. 10000
cheapestDeal.monthlyFriendlyDataAllowance string The friendly data allowance of the deal

E.g. 10
cheapestDeal.monthlyDataAllowanceLabel string The label for data allowance of the deal

E.g. GB
cheapestDeal.contractLength string The contract kength of the deal

E.g. 12
cheapestDeal.contractLengthLabel string The label for the contract length of the deal

E.g. months
cheapestDeal.contractSupplierId string The id of the network of the deal

E.g. 3
cheapestDeal.contractSupplierName string The name of the network of the deal

E.g. EE
cheapestDeal.contractSupplierLogo string Returns a url to a logo for the network 'image/webp' (100 X 50) px

E.g. https://static.uconvert.co.uk/img/badges/network-3.png
cheapestDeal.retailSupplierId string The id of the supplier of the deal

E.g. 5
cheapestDeal.retailSupplierName string The name of the supplier of the deal

E.g. Mobile Phones Direct
cheapestDeal.retailSupplierLogo string Returns a url to a logo for the supplier 'image/webp' (50 X 50) px

E.g. https://static.uconvert.co.uk/img/badges/retailer-7.png
cheapestDeal.totalContractCost decimal The total cost of the deal over the contract length including any upfront cost

E.g. 748.00
cheapestDeal.purchaseLink string The link used to purchase the deal

E.g. https://deals.uconvert.co.uk/deal_redirect/3/504993687/

Product Expand Cheapest Deal Request Example

GET
https://api.uconvert.co.uk/deals/v1/products/?expand=products(cheapestDeal)
{
  "products" : [
    {
      "id": "1032",
      "name": "Apple iPhone 6 Plus 16GB Gold",
      "slug": "apple-iphone-6-plus-16gb-gold",      
      "cheapestDeal": {
        "upfrontProductCost": "0.00",
        "monthlyContractPrice": "31.00",
        "currenyLabel": "£",
        "monthlyTextAllowance": "999999",
        "monthlyFriendlyTextAllowance": "Unlimited",
        "monthlyTextAllowanceLabel": "texts",
        "monthlyCallAllowance": "999999",
        "monthlyFriendlyCallAllowance": "Unlimited",
        "monthlyCallAllowanceLabel": "minutes",
        "monthlyDataAllowance": "20000",
        "monthlyFriendlyDataAllowance": 20,
        "monthlyDataAllowanceLabel": "GB",
        "contractLength": "24",
        "contractLengthLabel": "months",
        "contractSupplierId": "3",
        "contractSupplierName": "EE",
        "contractSupplierLogo": "https://static.uconvert.co.uk/img/badges/network-3.png",
        "retailSupplierId": "7",
        "retailSupplierName": "Affordable Mobiles",
        "retailSupplierLogo": "https://static.uconvert.co.uk/img/badges/retailer-7.png",
        "totalContractCost": "744.00",
        "purchaseLink": "https://deals.uconvert.co.uk/deal_redirect/3/504993687/"
      },
    },
  ]
}
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.uconvert.co.uk/deals/v1/products/?expand=products(cheapestDeal)",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "x-api-key: 123456"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
curl --request GET \
  --url 'https://api.uconvert.co.uk/deals/v1/products/?expand=products(cheapestDeal)' \
  --header 'x-api-key: 123456'
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://api.uconvert.co.uk/deals/v1/products/?expand=products(cheapestDeal)",
  "method": "GET",
  "headers": {
    "x-api-key": "123456"
  }
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
require 'uri'
require 'net/http'

url = URI("https://api.uconvert.co.uk/deals/v1/products/?expand=products(cheapestDeal)")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '123456'

response = http.request(request)
puts response.read_body