Quote Project
postapi.bunnystudio.com/quote
This endpoint quotes a project based on the information sent.
Requirements
Authentication
Scope
Request body
These are the basic attributes for quoting a project, which will be required regardless of their category.
mainService
string
The category of the project you want to quote. You can find here all the available categories.
The category of the project you want to quote. You can find here all the available categories.
fulfillmentType
<optional> string
The fulfillment type you want for the project. The default value is speedy.
The fulfillment type you want for the project. The default value is speedy.
services
array
List of services included on the project. The information required by each service depends on the category you select.
List of services included on the project. The information required by each service depends on the category you select.
Request example
- Console
- JavaScript
- Python
- PHP - CURL
curl --request POST \
--url https://api.bunnystudio.com/quote \
--header "Content-Type: application/json" \
--header "x-access-token: YOUR_TOKEN" \
--data '{
}'
const url = 'https://api.bunnystudio.com/quote';
const options = {
method: 'POST',
headers: {
'content-type': 'application/json',
'x-access-token': 'YOUR_TOKEN',
}
body: JSON.stringify(
{
}
)
};
fetch(url, options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import requests
import json
api_url = "https://api.bunnystudio.com/quote"
headers = {
"Content-Type": "application/json; charset=utf-8",
'x-access-token': 'YOUR_TOKEN',
}
body = {
}
response = requests.post(api_url, headers=headers, json=body)
print(response.text)
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.bunnystudio.com/quote',
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'content-type': 'application/json',
'x-access-token': 'YOUR_TOKEN',
),
CURLOPT_POSTFIELDS => '{
}'
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Response format
mainService
string
The category of the project you want to quote
The category of the project you want to quote
fulfillmentType
string
The fulfillment type selected for the project
The fulfillment type selected for the project
price
number
The price charged for the project
The price charged for the project
services
array
List of services on the project, the response information on each service depends of the category selected
List of services on the project, the response information on each service depends of the category selected
Response example
{
"mainService": CATEGORY,
"fulfillmentType": "speedy",
"price": 31.00,
"services": [LIST_OF_SERVICES]
}
Error responses
500 Not project quote
{
status: 500,
type: 'PROJECT_NOT_QUOTED',
message: 'There was an error quoting the project, please talk with our support team',
}
422 MainService required
{
status: 422,
type: 'MAINSERVICE_REQUIRED',
message: 'The field "\mainService\" is required',
}
422 MainService not authorized
{
status: 422,
type: 'MAINSERVICE_NOT_AUTHORIZED',
message: 'The main-service selected is not Authorized for API projects,
}
422 MainService wrong type
{
status: 422,
type: 'MAINSERVICE_WRONG_TYPE',
message: 'The field "\mainService\" must be a string',
}