Retrieving your quote details

To receive an overview of your quote, you can send a GET request to /api/quote/{quoteIdentifier}. Your response will look something like:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
{
  "quoteId": "69ff-001f",
  "quoteNumber": "Q63",
  "price": 2001,
  "quoteExpiryDate": "2022-12-17T23:00:00+00:00",
  "quoteLineItems": [
    {
      "productName": "(CTP) Banners",
      "quantity": 1,
      "price": 1654,
      "arrivalDate": "2021-12-14T00:00:00+00:00",
      "lineItemId": "b91v-vfds",
      "productDescription": "Material: Pvc Frontlit,  Banners Finishing: No Finishing.........",
      "vatPercentage": 21,
      "vatAmount": 347,
      "lineItemNumber": "Q63-1"
    }
  ],
  "quoteReference": null,
  "isExpired": false
}

Required fields

Field Type Description
quoteIdentifier string Quote number or uuid.

Example request quote details

The following PHP code can be used to retrieve quote details. Make sure you replace the values YOUR_USER_ID_HERE and YOUR_SECRET_HERE with the User-ID and secret you received on the API-credentials page.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => "https://api.printdeal.com/api/quote/{quoteIdentifier}",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => array(
        "User-ID: YOUR_USER_ID_HERE",
        "API-Secret: YOUR_SECRET_HERE",
        "Accept: application/vnd.printdeal-api.v2"
    )
));

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

curl_close($curl);

if ($err) {
    echo "cURL Error #:" . $err;
} else {
    echo $response;
}