Update a product
curl --request PATCH \
--url https://api.trama.so/v1/catalog/products/{productId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"capacityMax": 123,
"capacityMin": 123,
"currency": "USD",
"description": "<string>",
"durationDays": 123,
"durationHours": 123,
"excludes": [
"<string>"
],
"externalReferenceCode": "<string>",
"fromPrice": 1,
"includes": [
"<string>"
],
"operator": "<string>",
"priceBasis": "<string>",
"priceMax": 1,
"pricingMode": "per_person",
"shortDescription": "<string>",
"specialConditions": "<string>",
"status": "active",
"title": "<string>",
"type": "package",
"validFrom": "2026-01-01",
"validUntil": "2026-12-31"
}
'import requests
url = "https://api.trama.so/v1/catalog/products/{productId}"
payload = {
"capacityMax": 123,
"capacityMin": 123,
"currency": "USD",
"description": "<string>",
"durationDays": 123,
"durationHours": 123,
"excludes": ["<string>"],
"externalReferenceCode": "<string>",
"fromPrice": 1,
"includes": ["<string>"],
"operator": "<string>",
"priceBasis": "<string>",
"priceMax": 1,
"pricingMode": "per_person",
"shortDescription": "<string>",
"specialConditions": "<string>",
"status": "active",
"title": "<string>",
"type": "package",
"validFrom": "2026-01-01",
"validUntil": "2026-12-31"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
capacityMax: 123,
capacityMin: 123,
currency: 'USD',
description: '<string>',
durationDays: 123,
durationHours: 123,
excludes: ['<string>'],
externalReferenceCode: '<string>',
fromPrice: 1,
includes: ['<string>'],
operator: '<string>',
priceBasis: '<string>',
priceMax: 1,
pricingMode: 'per_person',
shortDescription: '<string>',
specialConditions: '<string>',
status: 'active',
title: '<string>',
type: 'package',
validFrom: '2026-01-01',
validUntil: '2026-12-31'
})
};
fetch('https://api.trama.so/v1/catalog/products/{productId}', 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.trama.so/v1/catalog/products/{productId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'capacityMax' => 123,
'capacityMin' => 123,
'currency' => 'USD',
'description' => '<string>',
'durationDays' => 123,
'durationHours' => 123,
'excludes' => [
'<string>'
],
'externalReferenceCode' => '<string>',
'fromPrice' => 1,
'includes' => [
'<string>'
],
'operator' => '<string>',
'priceBasis' => '<string>',
'priceMax' => 1,
'pricingMode' => 'per_person',
'shortDescription' => '<string>',
'specialConditions' => '<string>',
'status' => 'active',
'title' => '<string>',
'type' => 'package',
'validFrom' => '2026-01-01',
'validUntil' => '2026-12-31'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.trama.so/v1/catalog/products/{productId}"
payload := strings.NewReader("{\n \"capacityMax\": 123,\n \"capacityMin\": 123,\n \"currency\": \"USD\",\n \"description\": \"<string>\",\n \"durationDays\": 123,\n \"durationHours\": 123,\n \"excludes\": [\n \"<string>\"\n ],\n \"externalReferenceCode\": \"<string>\",\n \"fromPrice\": 1,\n \"includes\": [\n \"<string>\"\n ],\n \"operator\": \"<string>\",\n \"priceBasis\": \"<string>\",\n \"priceMax\": 1,\n \"pricingMode\": \"per_person\",\n \"shortDescription\": \"<string>\",\n \"specialConditions\": \"<string>\",\n \"status\": \"active\",\n \"title\": \"<string>\",\n \"type\": \"package\",\n \"validFrom\": \"2026-01-01\",\n \"validUntil\": \"2026-12-31\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.trama.so/v1/catalog/products/{productId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"capacityMax\": 123,\n \"capacityMin\": 123,\n \"currency\": \"USD\",\n \"description\": \"<string>\",\n \"durationDays\": 123,\n \"durationHours\": 123,\n \"excludes\": [\n \"<string>\"\n ],\n \"externalReferenceCode\": \"<string>\",\n \"fromPrice\": 1,\n \"includes\": [\n \"<string>\"\n ],\n \"operator\": \"<string>\",\n \"priceBasis\": \"<string>\",\n \"priceMax\": 1,\n \"pricingMode\": \"per_person\",\n \"shortDescription\": \"<string>\",\n \"specialConditions\": \"<string>\",\n \"status\": \"active\",\n \"title\": \"<string>\",\n \"type\": \"package\",\n \"validFrom\": \"2026-01-01\",\n \"validUntil\": \"2026-12-31\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trama.so/v1/catalog/products/{productId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"capacityMax\": 123,\n \"capacityMin\": 123,\n \"currency\": \"USD\",\n \"description\": \"<string>\",\n \"durationDays\": 123,\n \"durationHours\": 123,\n \"excludes\": [\n \"<string>\"\n ],\n \"externalReferenceCode\": \"<string>\",\n \"fromPrice\": 1,\n \"includes\": [\n \"<string>\"\n ],\n \"operator\": \"<string>\",\n \"priceBasis\": \"<string>\",\n \"priceMax\": 1,\n \"pricingMode\": \"per_person\",\n \"shortDescription\": \"<string>\",\n \"specialConditions\": \"<string>\",\n \"status\": \"active\",\n \"title\": \"<string>\",\n \"type\": \"package\",\n \"validFrom\": \"2026-01-01\",\n \"validUntil\": \"2026-12-31\"\n}"
response = http.request(request)
puts response.read_body{
"capacityMax": 123,
"capacityMin": 123,
"coverImage": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"currency": "<string>",
"description": "<string>",
"destinations": [
"<string>"
],
"durationDays": 123,
"durationHours": 123,
"excludes": [
"<string>"
],
"externalReferenceCode": "<string>",
"fromPrice": 123,
"gallery": [
"<string>"
],
"id": "<string>",
"includes": [
"<string>"
],
"operator": "<string>",
"priceBasis": "<string>",
"priceMax": 123,
"shortDescription": "<string>",
"specialConditions": "<string>",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"validFrom": "<string>",
"validUntil": "<string>",
"variants": [
{
"capacityMax": 123,
"capacityMin": 123,
"currency": "<string>",
"description": "<string>",
"durationDays": 123,
"durationHours": 123,
"excludes": [
"<string>"
],
"fromPrice": 123,
"id": "<string>",
"includes": [
"<string>"
],
"label": "<string>",
"position": 123,
"priceMax": 123,
"shortDescription": "<string>"
}
]
}{
"error": {
"code": "CATALOG_PRODUCT_NOT_FOUND",
"message": "The catalog product does not exist."
}
}{
"error": {
"code": "CATALOG_PRODUCT_NOT_FOUND",
"message": "The catalog product does not exist."
}
}{
"error": {
"code": "CATALOG_PRODUCT_NOT_FOUND",
"message": "The catalog product does not exist."
}
}{
"error": {
"code": "CATALOG_PRODUCT_NOT_FOUND",
"message": "The catalog product does not exist."
}
}{
"error": {
"code": "CATALOG_PRODUCT_NOT_FOUND",
"message": "The catalog product does not exist."
}
}Catalog
Update a product
Only touches the fields present in the body. Sending null clears a field; omitting it leaves it unchanged. Variants cannot be patched — send them on create, or the whole list would be replaced by a partial one.
PATCH
/
v1
/
catalog
/
products
/
{productId}
Update a product
curl --request PATCH \
--url https://api.trama.so/v1/catalog/products/{productId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"capacityMax": 123,
"capacityMin": 123,
"currency": "USD",
"description": "<string>",
"durationDays": 123,
"durationHours": 123,
"excludes": [
"<string>"
],
"externalReferenceCode": "<string>",
"fromPrice": 1,
"includes": [
"<string>"
],
"operator": "<string>",
"priceBasis": "<string>",
"priceMax": 1,
"pricingMode": "per_person",
"shortDescription": "<string>",
"specialConditions": "<string>",
"status": "active",
"title": "<string>",
"type": "package",
"validFrom": "2026-01-01",
"validUntil": "2026-12-31"
}
'import requests
url = "https://api.trama.so/v1/catalog/products/{productId}"
payload = {
"capacityMax": 123,
"capacityMin": 123,
"currency": "USD",
"description": "<string>",
"durationDays": 123,
"durationHours": 123,
"excludes": ["<string>"],
"externalReferenceCode": "<string>",
"fromPrice": 1,
"includes": ["<string>"],
"operator": "<string>",
"priceBasis": "<string>",
"priceMax": 1,
"pricingMode": "per_person",
"shortDescription": "<string>",
"specialConditions": "<string>",
"status": "active",
"title": "<string>",
"type": "package",
"validFrom": "2026-01-01",
"validUntil": "2026-12-31"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
capacityMax: 123,
capacityMin: 123,
currency: 'USD',
description: '<string>',
durationDays: 123,
durationHours: 123,
excludes: ['<string>'],
externalReferenceCode: '<string>',
fromPrice: 1,
includes: ['<string>'],
operator: '<string>',
priceBasis: '<string>',
priceMax: 1,
pricingMode: 'per_person',
shortDescription: '<string>',
specialConditions: '<string>',
status: 'active',
title: '<string>',
type: 'package',
validFrom: '2026-01-01',
validUntil: '2026-12-31'
})
};
fetch('https://api.trama.so/v1/catalog/products/{productId}', 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.trama.so/v1/catalog/products/{productId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'capacityMax' => 123,
'capacityMin' => 123,
'currency' => 'USD',
'description' => '<string>',
'durationDays' => 123,
'durationHours' => 123,
'excludes' => [
'<string>'
],
'externalReferenceCode' => '<string>',
'fromPrice' => 1,
'includes' => [
'<string>'
],
'operator' => '<string>',
'priceBasis' => '<string>',
'priceMax' => 1,
'pricingMode' => 'per_person',
'shortDescription' => '<string>',
'specialConditions' => '<string>',
'status' => 'active',
'title' => '<string>',
'type' => 'package',
'validFrom' => '2026-01-01',
'validUntil' => '2026-12-31'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.trama.so/v1/catalog/products/{productId}"
payload := strings.NewReader("{\n \"capacityMax\": 123,\n \"capacityMin\": 123,\n \"currency\": \"USD\",\n \"description\": \"<string>\",\n \"durationDays\": 123,\n \"durationHours\": 123,\n \"excludes\": [\n \"<string>\"\n ],\n \"externalReferenceCode\": \"<string>\",\n \"fromPrice\": 1,\n \"includes\": [\n \"<string>\"\n ],\n \"operator\": \"<string>\",\n \"priceBasis\": \"<string>\",\n \"priceMax\": 1,\n \"pricingMode\": \"per_person\",\n \"shortDescription\": \"<string>\",\n \"specialConditions\": \"<string>\",\n \"status\": \"active\",\n \"title\": \"<string>\",\n \"type\": \"package\",\n \"validFrom\": \"2026-01-01\",\n \"validUntil\": \"2026-12-31\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.trama.so/v1/catalog/products/{productId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"capacityMax\": 123,\n \"capacityMin\": 123,\n \"currency\": \"USD\",\n \"description\": \"<string>\",\n \"durationDays\": 123,\n \"durationHours\": 123,\n \"excludes\": [\n \"<string>\"\n ],\n \"externalReferenceCode\": \"<string>\",\n \"fromPrice\": 1,\n \"includes\": [\n \"<string>\"\n ],\n \"operator\": \"<string>\",\n \"priceBasis\": \"<string>\",\n \"priceMax\": 1,\n \"pricingMode\": \"per_person\",\n \"shortDescription\": \"<string>\",\n \"specialConditions\": \"<string>\",\n \"status\": \"active\",\n \"title\": \"<string>\",\n \"type\": \"package\",\n \"validFrom\": \"2026-01-01\",\n \"validUntil\": \"2026-12-31\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trama.so/v1/catalog/products/{productId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"capacityMax\": 123,\n \"capacityMin\": 123,\n \"currency\": \"USD\",\n \"description\": \"<string>\",\n \"durationDays\": 123,\n \"durationHours\": 123,\n \"excludes\": [\n \"<string>\"\n ],\n \"externalReferenceCode\": \"<string>\",\n \"fromPrice\": 1,\n \"includes\": [\n \"<string>\"\n ],\n \"operator\": \"<string>\",\n \"priceBasis\": \"<string>\",\n \"priceMax\": 1,\n \"pricingMode\": \"per_person\",\n \"shortDescription\": \"<string>\",\n \"specialConditions\": \"<string>\",\n \"status\": \"active\",\n \"title\": \"<string>\",\n \"type\": \"package\",\n \"validFrom\": \"2026-01-01\",\n \"validUntil\": \"2026-12-31\"\n}"
response = http.request(request)
puts response.read_body{
"capacityMax": 123,
"capacityMin": 123,
"coverImage": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"currency": "<string>",
"description": "<string>",
"destinations": [
"<string>"
],
"durationDays": 123,
"durationHours": 123,
"excludes": [
"<string>"
],
"externalReferenceCode": "<string>",
"fromPrice": 123,
"gallery": [
"<string>"
],
"id": "<string>",
"includes": [
"<string>"
],
"operator": "<string>",
"priceBasis": "<string>",
"priceMax": 123,
"shortDescription": "<string>",
"specialConditions": "<string>",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"validFrom": "<string>",
"validUntil": "<string>",
"variants": [
{
"capacityMax": 123,
"capacityMin": 123,
"currency": "<string>",
"description": "<string>",
"durationDays": 123,
"durationHours": 123,
"excludes": [
"<string>"
],
"fromPrice": 123,
"id": "<string>",
"includes": [
"<string>"
],
"label": "<string>",
"position": 123,
"priceMax": 123,
"shortDescription": "<string>"
}
]
}{
"error": {
"code": "CATALOG_PRODUCT_NOT_FOUND",
"message": "The catalog product does not exist."
}
}{
"error": {
"code": "CATALOG_PRODUCT_NOT_FOUND",
"message": "The catalog product does not exist."
}
}{
"error": {
"code": "CATALOG_PRODUCT_NOT_FOUND",
"message": "The catalog product does not exist."
}
}{
"error": {
"code": "CATALOG_PRODUCT_NOT_FOUND",
"message": "The catalog product does not exist."
}
}{
"error": {
"code": "CATALOG_PRODUCT_NOT_FOUND",
"message": "The catalog product does not exist."
}
}Authorizations
bearerAuthapiKeyHeader
The organization API key, sent as Authorization: Bearer <key>.
Path Parameters
Body
application/json
Available options:
economic, mid, premium, null Required string length:
3Example:
"USD"
The code the agency uses for this product in THEIR system. It is what makes syncing possible without storing Trama's ids.
Required range:
x >= 0Required range:
x >= 0Available options:
per_person, per_group, total Available options:
active, paused, draft Minimum string length:
1Available options:
package, experience, expedition, custom Example:
"2026-01-01"
Example:
"2026-12-31"
Response
The updated product.
Available options:
economic, mid, premium, null The code the agency uses for this product in THEIR system. It is what makes syncing possible without storing Trama's ids.
Available options:
per_person, per_group, total Available options:
active, paused, draft Available options:
package, experience, expedition, custom Show child attributes
Show child attributes
⌘I