PUT api/Certificates/Status?reservationID={reservationID}&reservationStatusID={reservationStatusID}
Updates the status of an existing certificate based on the provided reservation ID and status ID. There are diferent types of status: [ {ID: 1, Active},{ID: 2, Pending},{ID: 3, Canceled},{ID: 4, Complete},{ID: 5, Checked In},{ID: 6, Checked Out},{ID: 7, No Show},{ID: 8, Modified},{ID: 9, Open},{ID: 10, Quinela},{ID: 11, NQ},{ID: 12, Broker Pending},{ID: 13, Pending Support},{ID: 14, Traveled},{ID: 15, Expire},{ID: 16, Hooked},{ID: 17, Softhook},{ID: 18, NQ Hooked},{ID: 19, Hotel No Hook},{ID: 20, Pending Receipt},{ID: 21, Refunded},{ID: 22, Declined},{ID: 23, Invalid},{ID: 24, On Hold},{ID: 25, Pending Payment},{ID: 26, Sent to NetCenter},{ID: 27, Pending Confirmation},{ID: 28, Pending Reservation},{ID: 29, Blocked},{ID: 30, Special Request},{ID: 31, NA} ]
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| reservationID |
The unique identifier of the certificate whose status is to be updated. |
globally unique identifier |
Required |
| reservationStatusID |
The status ID that represents the new status to be applied to the certificate (e.g., "1" for Active, "2" for Pending). |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Returns the updated certificate information, including the changes made to the status, in the AttemptResponseV2.Message property of the response.
AttemptResponseV2| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseType | Attempt_ResponseTypes |
None. |
|
| Exception | Exception |
None. |
|
| ID | Object |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
{
"ResponseType": 0,
"Exception": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
},
"ID": {},
"Message": "sample string 2"
}
application/xml, text/xml
<AttemptResponseV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.Utils">
<Exception xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
<Message i:nil="true" xmlns="" />
<Data i:nil="true" xmlns="" />
<InnerException i:nil="true" xmlns="" />
<HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
<StackTraceString i:nil="true" xmlns="" />
<RemoteStackTraceString i:nil="true" xmlns="" />
<RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
<ExceptionMethod i:nil="true" xmlns="" />
<HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
<Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
<WatsonBuckets i:nil="true" xmlns="" />
</Exception>
<ID />
<Message>sample string 2</Message>
<ResponseType>Warning</ResponseType>
</AttemptResponseV2>