GET https://app.airkit.com/travel-products-catalog/product-by-id
cURL
curl --request GET \
--url 'https://app.airkit.com/travel-products-catalog/product-by-id?id=20b544f2-b413-4f14-ad62-490fde66c60e' \
--header 'accept: application/json'
Query Params
collection (String; required)
A product's unique ID.
Responses
200
Returns a list containing the Product Object corresponding to the given ID.
Example
[
{
"__id": "20b544f2-b413-4f14-ad62-490fde66c60e",
"invention_date": {
"year": 1804,
"month": 2,
"day": 21
},
"image": "https://media4.giphy.com/media/8F3bK4aq1tCo0TLkf7/giphy.gif?cid=794be903jrapsn5xqr77pmkphfjqnzlpslj6u7w4vuqjekag&rid=giphy.gif&ct=g",
"product_description": "A series of connected vehicles that run along a railway track and transport people or freight.",
"product_name": "Train",
"price": {
"amount": 50000000,
"precision": 2,
"code": "USD"
},
"product_collection": "Basics"
}
]
400
Returns Error Object.
Example
{
"error": "Invalid Query Parameters.",
"description": "Product ID must match existing product."
}