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:
{
"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 |
---|---|---|
|
|
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.
<?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"
)
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}