delta-service
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| delta-service [2025/03/05 23:10] – [✔ InventoryChanges(XML)] Administrator | delta-service [2025/03/13 10:25] (current) – Administrator | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| - | Welcome to the Teamamerica Delta API Interface Guide. | + | Welcome to the Teamamerica Delta API Interface Guide. |
| We hope you will have a smooth and successful integration to our system. | We hope you will have a smooth and successful integration to our system. | ||
| - | Should you have any question | + | ==== Overview ==== |
| - | **it@teamamericany.com** | + | |
| + | This Delta API significantly reduces the need for clients to perform millions of searches daily and enables efficient synchronization by ensuring the client maintains the up-to-date hotel inventory data. This API provides a list of changes that have been created, updated, | ||
| + | |||
| + | - **Cache Updates:** The API returns date ranges that require cache updates on the client side, which should be refreshed using the **XML5+ PriceSearch** API. | ||
| + | - **Inventory Updates:** The API provides availability statuses within specific date ranges, indicating which dates went on **OnRequest** or **ClosedOut**. | ||
| + | |||
| + | **Pre-requirement: | ||
| Development Rest EndPoint: http:// | Development Rest EndPoint: http:// | ||
| - | Note: **only whitelisted IP addresses will be granted access to this endpoint**. Please ensure that the relevant IP addresses are whitelisted to avoid any disruption in service. | + | Should you have any question or need any assistance, Please contact: |
| + | **it@teamamericany.com** | ||
| + | **Note:** **Only whitelisted IP addresses will be granted access to this endpoint**. Please ensure that the relevant IP addresses are whitelisted to avoid any disruption in service. | ||
| + | |||
| + | ---- | ||
| ======Requests====== | ======Requests====== | ||
| + | To retrieve updated data, send an XML request formatted as follows: | ||
| - | =====✔ | + | =====✔ |
| |Request Type |POST | | |Request Type |POST | | ||
| Line 28: | Line 39: | ||
| |Accept | |Accept | ||
| - | **Description: | + | |
| - | **XML Request** | + | === XML Request |
| ^Level^Name^Type^Occurs^Required^Comments^ | ^Level^Name^Type^Occurs^Required^Comments^ | ||
| - | |0 |GetDeltaRateChangesRQ | + | |0 |GetDeltaRateChangesRQ |
| - | |1 |UserName | + | |1 |UserName |
| - | |1 |Password | + | |1 |Password |
| - | |1 |CityCode | + | |1 |CityCode |
| - | |1 |HotelID | + | |1 |HotelID |
| - | |1 |LastSynced | + | |1 |LastSynced |
| === XML Request === | === XML Request === | ||
| Line 44: | Line 56: | ||
| < | < | ||
| < | < | ||
| - | < | + | < |
| < | < | ||
| - | < | + | < |
| < | < | ||
| </ | </ | ||
| Line 52: | Line 64: | ||
| - | === XML Response === | + | === XML Response |
| ^Level^Name^Type^Occurs^Required^Comments^ | ^Level^Name^Type^Occurs^Required^Comments^ | ||
| |0 |GetDeltaRateChangesRS| |1 | | | | |0 |GetDeltaRateChangesRS| |1 | | | | ||
| - | |1 |TimeStamp| | + | |1 |TimeStamp| |
| - | |1 |Hotels| | + | |1 |LastSyncedTime| String |1 |1 |The timestamp of the last cache data synchronized / updated in ISO 8601 format (YYYY-MM-DDTHH: |
| - | |2 |Hotel| | + | |1 |Hotels| |
| - | |3 |Product| | + | |2 |Hotel| |
| - | |4 |Created| | + | |3 |Product| |
| - | |5 |DateRange| | + | |4 |Created| |
| - | |6 |From| Date |1 | | start date | + | |5 |DateRange| |
| - | |6 |To| Date |1 | | end date | + | |6 |From| Date |1 | |Arrival |
| - | |4 |Updated| | + | |6 |To| Date |1 | |Arrival |
| - | |5 | + | |4 |Updated| |
| - | |6 | + | |5 |DateRange| |
| - | |7 | + | |6 |
| - | |7 |To| Date |1 | | end date | + | |6 |To| Date |1 | |Arrival |
| - | |4 |Deleted| | + | |4 |Deleted| |
| - | |5 |DateRange| | + | |5 |DateRange| |
| - | |6 |From| Date |1 | | start date | + | |6 |From| Date |1 | |Arrival |
| - | |6 |To| Date |1 | | end date | + | |6 |To| Date |1 | |Arrival |
| + | |||
| + | === XML Response === | ||
| < | < | ||
| - | < | + | |
| - | < | + | |
| - | < | + | < |
| - | <Hotel id=" | + | < |
| - | <Product code="NYCHXXXXX"> | + | |
| - | < | + | |
| - | < | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | </ | + | </ |
| - | < | + | </ |
| - | < | + | |
| - | | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | < |
| - | </ | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | </ |
| - | </ | + | </ |
| - | | + | |
| - | < | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | | + | |
| </ | </ | ||
| - | </ | + | |
| </ | </ | ||
| - | =====✔ | + | =====✔ |
| |Request Type |POST | | |Request Type |POST | | ||
| Line 131: | Line 135: | ||
| |Accept | |Accept | ||
| - | **Description: | + | === JSON Request |
| - | **JSON Request** | + | |
| - | + | ||
| < | < | ||
| - | { | + | |
| " | " | ||
| - | " | + | " |
| " | " | ||
| - | " | + | " |
| " | " | ||
| } | } | ||
| </ | </ | ||
| - | + | === JSON Response | |
| - | **JSON Response** | + | |
| < | < | ||
| - | { | + | |
| - | " | + | " |
| + | " | ||
| " | " | ||
| " | " | ||
| { | { | ||
| " | " | ||
| - | |||
| " | " | ||
| { | { | ||
| - | " | + | " |
| " | " | ||
| " | " | ||
| { | { | ||
| - | " | + | " |
| - | " | + | " |
| - | }, | + | |
| - | { | + | |
| - | " | + | |
| - | " | + | |
| - | }, | + | |
| - | { | + | |
| - | " | + | |
| - | " | + | |
| } | } | ||
| - | | ||
| ] | ] | ||
| }, | }, | ||
| " | " | ||
| - | " | ||
| - | " | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | ] | ||
| - | }, | ||
| - | |||
| - | " | ||
| " | " | ||
| { | { | ||
| - | " | + | " |
| - | " | + | " |
| } | } | ||
| ] | ] | ||
| } | } | ||
| } | } | ||
| - | |||
| ] | ] | ||
| } | } | ||
| ] | ] | ||
| } | } | ||
| - | } | + | |
| </ | </ | ||
| - | =====✔ | + | =====✔ |
| |Request Type |POST | | |Request Type |POST | | ||
| Line 222: | Line 195: | ||
| |Accept | |Accept | ||
| - | **Description: | ||
| - | **XML Request** | ||
| - | ^Level^Name^Type^Occurs^Required^Comments^ | + | === XML Request Parameters: === |
| - | |0 | GetDeltaInventoryChangesRQ | + | |
| - | |1 |UserName | + | |
| - | |1 |Password | + | |
| - | |1 |CityCode | + | |
| - | |1 |HotelID | + | |
| - | |1 |ShowOnRequest | + | |
| - | |1 |ShowClosedOut | + | |
| - | |1 |LastSynced | + | |
| + | ^Level^Name^Type^Occurs^Required^Comments^ | ||
| + | |0 | GetDeltaInventoryChangesRQ | ||
| + | |1 |UserName | ||
| + | |1 |Password | ||
| + | |1 |CityCode | ||
| + | |1 |HotelID | ||
| + | |1 |ShowOnRequest | ||
| + | |1 |ShowClosedOut | ||
| + | |1 |LastSynced | ||
| + | |||
| + | === XML Request === | ||
| < | < | ||
| < | < | ||
| < | < | ||
| - | < | + | < |
| < | < | ||
| < | < | ||
| - | < | + | < |
| < | < | ||
| < | < | ||
| Line 250: | Line 224: | ||
| - | **XML Response** | + | === XML Response |
| ^Level^Name^Type^Occurs^Required^Comments^ | ^Level^Name^Type^Occurs^Required^Comments^ | ||
| |0 |GetDeltaInventoryChangesRS| |1 | | | | |0 |GetDeltaInventoryChangesRS| |1 | | | | ||
| - | |1 |TimeStamp| | + | |1 |TimeStamp| |
| - | |1 |Hotels| | + | |1 |LastSyncedTime| String |1 |1 |Timestamp of the last synchronization in ISO 8601 format (YYYY-MM-DDTHH: |
| - | |2 |Hotel| | + | |1 |Hotels| |
| - | |3 |Product| | + | |2 |Hotel| |
| - | |4 |Updated| |1 |1 | | + | |3 |Product| |
| - | |5 | + | |4 |Inventory| |1 |1 |Contains inventory availability that has been recently updated.| |
| - | |6 | + | |5 |Status| |
| - | |7 | + | |6 |
| - | |8 | + | |7 |
| - | |8 |To| Date |1 | | end date | + | |7 |To| Date |1 | |Arrival |
| + | |||
| + | === XML Response === | ||
| < | < | ||
| - | < | + | |
| - | < | + | < |
| + | < | ||
| < | < | ||
| - | | + | |
| - | <Product code="NYCETANY10"> | + | <Product code="NYCHBEL2FF"> |
| - | < | + | < |
| - | | + | <Status type=" |
| - | <Status type=" | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | </ |
| - | </ | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | </ |
| - | </ | + | </ |
| - | </ | + | <Status type=" |
| - | <Status type=" | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | </ |
| - | </ | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | </ |
| - | </ | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | </ |
| - | </ | + | </ |
| - | </ | + | </ |
| - | </ | + | </ |
| - | </ | + | </ |
| - | | + | |
| - | </ | + | |
| </ | </ | ||
| - | </ | + | |
| </ | </ | ||
| - | =====✔ | + | =====✔ |
| |Request Type |POST | | |Request Type |POST | | ||
| Line 316: | Line 292: | ||
| |Accept | |Accept | ||
| - | **Description: | ||
| - | **JSON Request** | ||
| + | === JSON Request === | ||
| < | < | ||
| - | { | + | |
| " | " | ||
| - | " | + | " |
| " | " | ||
| - | " | + | " |
| " | " | ||
| " | " | ||
| Line 333: | Line 308: | ||
| - | **JSON Response** | + | === JSON Response |
| < | < | ||
| - | { | + | |
| - | " | + | " |
| + | " | ||
| " | " | ||
| " | " | ||
| { | { | ||
| - | " | + | " |
| " | " | ||
| { | { | ||
| - | " | + | " |
| - | "Updated": { | + | "Inventory": { |
| - | | + | " |
| - | " | + | { |
| - | | + | " |
| - | { | + | " |
| - | " | + | { |
| - | " | + | " |
| - | { | + | " |
| - | " | + | }, |
| - | " | + | { |
| - | } | + | " |
| - | | + | " |
| - | }, | + | } |
| - | | + | ] |
| - | " | + | } |
| - | " | + | ] |
| - | | + | |
| - | | + | |
| - | " | + | |
| - | }, | + | |
| - | { | + | |
| - | " | + | |
| - | " | + | |
| - | | + | |
| - | { | + | |
| - | " | + | |
| - | | + | |
| - | }, | + | |
| - | ] | + | |
| - | } | + | |
| - | ] | + | |
| - | } | + | |
| } | } | ||
| - | | ||
| } | } | ||
| - | + | | |
| ] | ] | ||
| } | } | ||
| ] | ] | ||
| } | } | ||
| - | } | + | |
| </ | </ | ||
| Line 417: | Line 376: | ||
| | Code | Description | | Code | Description | ||
| | DCA101 | | DCA101 | ||
| - | | DCA111 | + | | DCA102 |
| - | | DCA106 | + | | DCA103 |
| - | | DCA104 | + | | DCA104 |
| + | | DCA105 | ||
| + | | DCA106 | ||
delta-service.1741234247.txt.gz · Last modified: 2025/03/05 23:10 by Administrator