POST api/v1/Ota/invoice/{code}/change-services
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
code | string |
Required |
Body Parameters
ChangeeServiceRequestName | Description | Type | Additional information |
---|---|---|---|
BookingSource | integer |
None. |
|
ChannelCode | string |
None. |
|
BookingCode | string |
None. |
|
Note | string |
None. |
|
PayAmount | decimal number |
None. |
|
TotalAmount | decimal number |
None. |
|
Services | Collection of ExchangeServiceInfo |
None. |
|
PaymentTypeRequests | Collection of PaymentTypeRequest |
None. |
Request Formats
application/json, text/json
Sample:
{ "BookingSource": 1, "ChannelCode": "sample string 2", "BookingCode": "sample string 3", "Note": "sample string 4", "PayAmount": 5.0, "TotalAmount": 6.0, "Services": [ { "IdentifyCode": "sample string 1", "ServiceId": 2, "ServiceName": "sample string 3", "BeforeUsingDate": "sample string 4", "PolicyId": 5, "PolicyName": "sample string 6", "ExchangeRateId": 7, "ExchangeRateName": "sample string 8", "ExchangeServiceId": 9, "ExchangeServiceName": "sample string 10", "Quantity": 11, "Price": 12.0, "Amount": 13.0, "ExchangePrice": 14.0, "ExchangeAmount": 15.0 }, { "IdentifyCode": "sample string 1", "ServiceId": 2, "ServiceName": "sample string 3", "BeforeUsingDate": "sample string 4", "PolicyId": 5, "PolicyName": "sample string 6", "ExchangeRateId": 7, "ExchangeRateName": "sample string 8", "ExchangeServiceId": 9, "ExchangeServiceName": "sample string 10", "Quantity": 11, "Price": 12.0, "Amount": 13.0, "ExchangePrice": 14.0, "ExchangeAmount": 15.0 } ], "PaymentTypeRequests": [ { "Type": 1, "Amount": 2.0, "ApprovalCode": "sample string 3", "TransactionId": "sample string 4" }, { "Type": 1, "Amount": 2.0, "ApprovalCode": "sample string 3", "TransactionId": "sample string 4" } ] }
application/xml, text/xml
Sample:
<ChangeeServiceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTA.Proxy.Request"> <BookingCode>sample string 3</BookingCode> <BookingSource>1</BookingSource> <ChannelCode>sample string 2</ChannelCode> <Note>sample string 4</Note> <PayAmount>5</PayAmount> <PaymentTypeRequests> <PaymentTypeRequest> <Amount>2</Amount> <ApprovalCode>sample string 3</ApprovalCode> <TransactionId>sample string 4</TransactionId> <Type>1</Type> </PaymentTypeRequest> <PaymentTypeRequest> <Amount>2</Amount> <ApprovalCode>sample string 3</ApprovalCode> <TransactionId>sample string 4</TransactionId> <Type>1</Type> </PaymentTypeRequest> </PaymentTypeRequests> <Services> <ExchangeServiceInfo> <Amount>13</Amount> <BeforeUsingDate>sample string 4</BeforeUsingDate> <ExchangeAmount>15</ExchangeAmount> <ExchangePrice>14</ExchangePrice> <ExchangeRateId>7</ExchangeRateId> <ExchangeRateName>sample string 8</ExchangeRateName> <ExchangeServiceId>9</ExchangeServiceId> <ExchangeServiceName>sample string 10</ExchangeServiceName> <IdentifyCode>sample string 1</IdentifyCode> <PolicyId>5</PolicyId> <PolicyName>sample string 6</PolicyName> <Price>12</Price> <Quantity>11</Quantity> <ServiceId>2</ServiceId> <ServiceName>sample string 3</ServiceName> </ExchangeServiceInfo> <ExchangeServiceInfo> <Amount>13</Amount> <BeforeUsingDate>sample string 4</BeforeUsingDate> <ExchangeAmount>15</ExchangeAmount> <ExchangePrice>14</ExchangePrice> <ExchangeRateId>7</ExchangeRateId> <ExchangeRateName>sample string 8</ExchangeRateName> <ExchangeServiceId>9</ExchangeServiceId> <ExchangeServiceName>sample string 10</ExchangeServiceName> <IdentifyCode>sample string 1</IdentifyCode> <PolicyId>5</PolicyId> <PolicyName>sample string 6</PolicyName> <Price>12</Price> <Quantity>11</Quantity> <ServiceId>2</ServiceId> <ServiceName>sample string 3</ServiceName> </ExchangeServiceInfo> </Services> <TotalAmount>6</TotalAmount> </ChangeeServiceRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.