POST Umroh/Search

Request Information

URI Parameters

None.

Body Parameters

UmrohSearchRequest
NameDescriptionTypeAdditional information
Keyword

string

None.

MinPrice

decimal number

None.

MaxPrice

decimal number

None.

Duration

integer

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Keyword": "sample string 1",
  "MinPrice": 2.0,
  "MaxPrice": 3.0,
  "Duration": 4,
  "userID": "sample string 5",
  "accessToken": "sample string 6"
}

application/xml, text/xml

Sample:
<UmrohSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 6</accessToken>
  <userID>sample string 5</userID>
  <Duration>4</Duration>
  <Keyword>sample string 1</Keyword>
  <MaxPrice>3</MaxPrice>
  <MinPrice>2</MinPrice>
</UmrohSearchRequest>

Response Information

Resource Description

UmrohSearchListResponse
NameDescriptionTypeAdditional information
Umroh

Collection of UmrohSearchResponse

None.

respTime

describe time in sending response

date

None.

userID

user ID to access API

string

None.

accessToken

access token that needed to access API

string

None.

status

SUCCESS or FAILED

string

None.

respMessage

detail message of response status

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Umroh": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Duration": 3,
      "Date": "2021-11-27T11:42:59.77728+07:00",
      "StartPrice": 4.0,
      "Packages": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "PricePerPax": 3.0,
          "Allotment": 4,
          "Hotels": [
            {
              "HotelName": "sample string 1",
              "City": "sample string 2",
              "Rating": 3,
              "Information": "sample string 4"
            },
            {
              "HotelName": "sample string 1",
              "City": "sample string 2",
              "Rating": 3,
              "Information": "sample string 4"
            }
          ]
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "PricePerPax": 3.0,
          "Allotment": 4,
          "Hotels": [
            {
              "HotelName": "sample string 1",
              "City": "sample string 2",
              "Rating": 3,
              "Information": "sample string 4"
            },
            {
              "HotelName": "sample string 1",
              "City": "sample string 2",
              "Rating": 3,
              "Information": "sample string 4"
            }
          ]
        }
      ]
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Duration": 3,
      "Date": "2021-11-27T11:42:59.77728+07:00",
      "StartPrice": 4.0,
      "Packages": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "PricePerPax": 3.0,
          "Allotment": 4,
          "Hotels": [
            {
              "HotelName": "sample string 1",
              "City": "sample string 2",
              "Rating": 3,
              "Information": "sample string 4"
            },
            {
              "HotelName": "sample string 1",
              "City": "sample string 2",
              "Rating": 3,
              "Information": "sample string 4"
            }
          ]
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "PricePerPax": 3.0,
          "Allotment": 4,
          "Hotels": [
            {
              "HotelName": "sample string 1",
              "City": "sample string 2",
              "Rating": 3,
              "Information": "sample string 4"
            },
            {
              "HotelName": "sample string 1",
              "City": "sample string 2",
              "Rating": 3,
              "Information": "sample string 4"
            }
          ]
        }
      ]
    }
  ],
  "respTime": "2021-11-27T11:42:59.77728+07:00",
  "userID": "sample string 2",
  "accessToken": "sample string 3",
  "status": "sample string 4",
  "respMessage": "sample string 5"
}

application/xml, text/xml

Sample:
<UmrohSearchListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 3</accessToken>
  <respMessage>sample string 5</respMessage>
  <respTime>2021-11-27T11:42:59.77728+07:00</respTime>
  <status>sample string 4</status>
  <userID>sample string 2</userID>
  <Umroh>
    <UmrohSearchResponse>
      <Date>2021-11-27T11:42:59.77728+07:00</Date>
      <Duration>3</Duration>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Packages>
        <UmrohPackage>
          <Allotment>4</Allotment>
          <Hotels>
            <UmrohHotelInfo>
              <City>sample string 2</City>
              <HotelName>sample string 1</HotelName>
              <Information>sample string 4</Information>
              <Rating>3</Rating>
            </UmrohHotelInfo>
            <UmrohHotelInfo>
              <City>sample string 2</City>
              <HotelName>sample string 1</HotelName>
              <Information>sample string 4</Information>
              <Rating>3</Rating>
            </UmrohHotelInfo>
          </Hotels>
          <Id>1</Id>
          <Name>sample string 2</Name>
          <PricePerPax>3</PricePerPax>
        </UmrohPackage>
        <UmrohPackage>
          <Allotment>4</Allotment>
          <Hotels>
            <UmrohHotelInfo>
              <City>sample string 2</City>
              <HotelName>sample string 1</HotelName>
              <Information>sample string 4</Information>
              <Rating>3</Rating>
            </UmrohHotelInfo>
            <UmrohHotelInfo>
              <City>sample string 2</City>
              <HotelName>sample string 1</HotelName>
              <Information>sample string 4</Information>
              <Rating>3</Rating>
            </UmrohHotelInfo>
          </Hotels>
          <Id>1</Id>
          <Name>sample string 2</Name>
          <PricePerPax>3</PricePerPax>
        </UmrohPackage>
      </Packages>
      <StartPrice>4</StartPrice>
    </UmrohSearchResponse>
    <UmrohSearchResponse>
      <Date>2021-11-27T11:42:59.77728+07:00</Date>
      <Duration>3</Duration>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Packages>
        <UmrohPackage>
          <Allotment>4</Allotment>
          <Hotels>
            <UmrohHotelInfo>
              <City>sample string 2</City>
              <HotelName>sample string 1</HotelName>
              <Information>sample string 4</Information>
              <Rating>3</Rating>
            </UmrohHotelInfo>
            <UmrohHotelInfo>
              <City>sample string 2</City>
              <HotelName>sample string 1</HotelName>
              <Information>sample string 4</Information>
              <Rating>3</Rating>
            </UmrohHotelInfo>
          </Hotels>
          <Id>1</Id>
          <Name>sample string 2</Name>
          <PricePerPax>3</PricePerPax>
        </UmrohPackage>
        <UmrohPackage>
          <Allotment>4</Allotment>
          <Hotels>
            <UmrohHotelInfo>
              <City>sample string 2</City>
              <HotelName>sample string 1</HotelName>
              <Information>sample string 4</Information>
              <Rating>3</Rating>
            </UmrohHotelInfo>
            <UmrohHotelInfo>
              <City>sample string 2</City>
              <HotelName>sample string 1</HotelName>
              <Information>sample string 4</Information>
              <Rating>3</Rating>
            </UmrohHotelInfo>
          </Hotels>
          <Id>1</Id>
          <Name>sample string 2</Name>
          <PricePerPax>3</PricePerPax>
        </UmrohPackage>
      </Packages>
      <StartPrice>4</StartPrice>
    </UmrohSearchResponse>
  </Umroh>
</UmrohSearchListResponse>