cURL
curl --request POST \
--url https://api.plec-it.com/cart/add \
--header 'Content-Type: application/json' \
--data '
{
"listingId": "10000001",
"listingTitle": "Downtown Event Space",
"startTime": "2025-12-04T09:00:00.000Z",
"endTime": "2025-12-04T13:00:00.000Z",
"guestCount": 10,
"selectedPackages": [
{
"packageId": "pkg-premium",
"packageName": "Premium tier",
"price": 100
}
],
"skipBaseRate": true,
"imageUrl": "<string>"
}
'import requests
url = "https://api.plec-it.com/cart/add"
payload = {
"listingId": "10000001",
"listingTitle": "Downtown Event Space",
"startTime": "2025-12-04T09:00:00.000Z",
"endTime": "2025-12-04T13:00:00.000Z",
"guestCount": 10,
"selectedPackages": [
{
"packageId": "pkg-premium",
"packageName": "Premium tier",
"price": 100
}
],
"skipBaseRate": True,
"imageUrl": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
listingId: '10000001',
listingTitle: 'Downtown Event Space',
startTime: '2025-12-04T09:00:00.000Z',
endTime: '2025-12-04T13:00:00.000Z',
guestCount: 10,
selectedPackages: [{packageId: 'pkg-premium', packageName: 'Premium tier', price: 100}],
skipBaseRate: true,
imageUrl: '<string>'
})
};
fetch('https://api.plec-it.com/cart/add', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.plec-it.com/cart/add",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'listingId' => '10000001',
'listingTitle' => 'Downtown Event Space',
'startTime' => '2025-12-04T09:00:00.000Z',
'endTime' => '2025-12-04T13:00:00.000Z',
'guestCount' => 10,
'selectedPackages' => [
[
'packageId' => 'pkg-premium',
'packageName' => 'Premium tier',
'price' => 100
]
],
'skipBaseRate' => true,
'imageUrl' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.plec-it.com/cart/add"
payload := strings.NewReader("{\n \"listingId\": \"10000001\",\n \"listingTitle\": \"Downtown Event Space\",\n \"startTime\": \"2025-12-04T09:00:00.000Z\",\n \"endTime\": \"2025-12-04T13:00:00.000Z\",\n \"guestCount\": 10,\n \"selectedPackages\": [\n {\n \"packageId\": \"pkg-premium\",\n \"packageName\": \"Premium tier\",\n \"price\": 100\n }\n ],\n \"skipBaseRate\": true,\n \"imageUrl\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.plec-it.com/cart/add")
.header("Content-Type", "application/json")
.body("{\n \"listingId\": \"10000001\",\n \"listingTitle\": \"Downtown Event Space\",\n \"startTime\": \"2025-12-04T09:00:00.000Z\",\n \"endTime\": \"2025-12-04T13:00:00.000Z\",\n \"guestCount\": 10,\n \"selectedPackages\": [\n {\n \"packageId\": \"pkg-premium\",\n \"packageName\": \"Premium tier\",\n \"price\": 100\n }\n ],\n \"skipBaseRate\": true,\n \"imageUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plec-it.com/cart/add")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"listingId\": \"10000001\",\n \"listingTitle\": \"Downtown Event Space\",\n \"startTime\": \"2025-12-04T09:00:00.000Z\",\n \"endTime\": \"2025-12-04T13:00:00.000Z\",\n \"guestCount\": 10,\n \"selectedPackages\": [\n {\n \"packageId\": \"pkg-premium\",\n \"packageName\": \"Premium tier\",\n \"price\": 100\n }\n ],\n \"skipBaseRate\": true,\n \"imageUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}Cart
Post cartadd
POST
/
cart
/
add
cURL
curl --request POST \
--url https://api.plec-it.com/cart/add \
--header 'Content-Type: application/json' \
--data '
{
"listingId": "10000001",
"listingTitle": "Downtown Event Space",
"startTime": "2025-12-04T09:00:00.000Z",
"endTime": "2025-12-04T13:00:00.000Z",
"guestCount": 10,
"selectedPackages": [
{
"packageId": "pkg-premium",
"packageName": "Premium tier",
"price": 100
}
],
"skipBaseRate": true,
"imageUrl": "<string>"
}
'import requests
url = "https://api.plec-it.com/cart/add"
payload = {
"listingId": "10000001",
"listingTitle": "Downtown Event Space",
"startTime": "2025-12-04T09:00:00.000Z",
"endTime": "2025-12-04T13:00:00.000Z",
"guestCount": 10,
"selectedPackages": [
{
"packageId": "pkg-premium",
"packageName": "Premium tier",
"price": 100
}
],
"skipBaseRate": True,
"imageUrl": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
listingId: '10000001',
listingTitle: 'Downtown Event Space',
startTime: '2025-12-04T09:00:00.000Z',
endTime: '2025-12-04T13:00:00.000Z',
guestCount: 10,
selectedPackages: [{packageId: 'pkg-premium', packageName: 'Premium tier', price: 100}],
skipBaseRate: true,
imageUrl: '<string>'
})
};
fetch('https://api.plec-it.com/cart/add', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.plec-it.com/cart/add",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'listingId' => '10000001',
'listingTitle' => 'Downtown Event Space',
'startTime' => '2025-12-04T09:00:00.000Z',
'endTime' => '2025-12-04T13:00:00.000Z',
'guestCount' => 10,
'selectedPackages' => [
[
'packageId' => 'pkg-premium',
'packageName' => 'Premium tier',
'price' => 100
]
],
'skipBaseRate' => true,
'imageUrl' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.plec-it.com/cart/add"
payload := strings.NewReader("{\n \"listingId\": \"10000001\",\n \"listingTitle\": \"Downtown Event Space\",\n \"startTime\": \"2025-12-04T09:00:00.000Z\",\n \"endTime\": \"2025-12-04T13:00:00.000Z\",\n \"guestCount\": 10,\n \"selectedPackages\": [\n {\n \"packageId\": \"pkg-premium\",\n \"packageName\": \"Premium tier\",\n \"price\": 100\n }\n ],\n \"skipBaseRate\": true,\n \"imageUrl\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.plec-it.com/cart/add")
.header("Content-Type", "application/json")
.body("{\n \"listingId\": \"10000001\",\n \"listingTitle\": \"Downtown Event Space\",\n \"startTime\": \"2025-12-04T09:00:00.000Z\",\n \"endTime\": \"2025-12-04T13:00:00.000Z\",\n \"guestCount\": 10,\n \"selectedPackages\": [\n {\n \"packageId\": \"pkg-premium\",\n \"packageName\": \"Premium tier\",\n \"price\": 100\n }\n ],\n \"skipBaseRate\": true,\n \"imageUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plec-it.com/cart/add")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"listingId\": \"10000001\",\n \"listingTitle\": \"Downtown Event Space\",\n \"startTime\": \"2025-12-04T09:00:00.000Z\",\n \"endTime\": \"2025-12-04T13:00:00.000Z\",\n \"guestCount\": 10,\n \"selectedPackages\": [\n {\n \"packageId\": \"pkg-premium\",\n \"packageName\": \"Premium tier\",\n \"price\": 100\n }\n ],\n \"skipBaseRate\": true,\n \"imageUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}Query Parameters
When true, validates/simulates but performs no writes. Required for docs playground.
Available options:
true Body
application/json
Listing ID
Example:
"10000001"
Listing title
Example:
"Downtown Event Space"
Booking start (ISO 8601)
Example:
"2025-12-04T09:00:00.000Z"
Booking end (ISO 8601)
Example:
"2025-12-04T13:00:00.000Z"
Number of guests
Example:
10
Selected packages
Show child attributes
Show child attributes
When true, a selected package includes venue rental; do not add base hourly rate to subtotal
Listing image URL
Response
201 - application/json
Example:
true
⌘I