GET Products

Overview

Search Product by Product Code

Request

GET /Products?code=[code]

Request Information

Request Parameters

Name
Type
Requirement
Description
code
String
Mandatory
Code of trip product

Response Information

Response Properties

Name
Type
Description
products
List<Product>
List of Products

Products

Name
Type
Description
name
String
Product Name
code
String
Product Code
id
Integer
ID of the resource
href
String
URI of the resource
sequence
Int64
Sequence of product

Response Codes

HTTP status code
Description
200 OK
The resource was retrieved successfully
400 Bad Request
The resource was malformed
401 Unauthorized
Missing or invalid API key
404 Not Found
The specified resource was not found
500 Internal Server Error
An unexpected error occurred on the API server

Response Example

{
  "products": [
    {
      "name": "Beautiful Thailand",
      "code": "TTSN",
      "id": 887124,
      "href": "products/887124",
      "sequence": "202403312359580000"
    },
    {
      "name": "Beautiful Thailand",
      "code": "TTSN",
      "id": 887124,
      "href": "products/887124",
      "sequence": "202403312359580000"
    }
  ]
}