POST api/v1/Ota/invoice/{code}/extend-services

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

string

Required

Body Parameters

ExtendMultipleServiceRequest
NameDescriptionTypeAdditional information
BookingSource

integer

None.

ChannelCode

string

None.

ReferenceNumber

string

None.

ApproveCode

string

None.

Reason

string

None.

PaymentType

integer

None.

TotalAmount

decimal number

None.

Services

Collection of ExtendServiceInfo

None.

Request Formats

application/json, text/json

Sample:
{
  "BookingSource": 1,
  "ChannelCode": "sample string 2",
  "ReferenceNumber": "sample string 3",
  "ApproveCode": "sample string 4",
  "Reason": "sample string 5",
  "PaymentType": 6,
  "TotalAmount": 7.0,
  "Services": [
    {
      "IdentifyCode": "sample string 1",
      "SiteId": 2,
      "SiteName": "sample string 3",
      "ServiceId": 4,
      "ServiceName": "sample string 5",
      "BeforeUsingDate": "sample string 6",
      "PolicyId": 7,
      "PolicyName": "sample string 8",
      "ExtendDate": "sample string 9",
      "ExtendFeeType": 10,
      "ExtendFee": 11.1,
      "Amount": 12.0
    },
    {
      "IdentifyCode": "sample string 1",
      "SiteId": 2,
      "SiteName": "sample string 3",
      "ServiceId": 4,
      "ServiceName": "sample string 5",
      "BeforeUsingDate": "sample string 6",
      "PolicyId": 7,
      "PolicyName": "sample string 8",
      "ExtendDate": "sample string 9",
      "ExtendFeeType": 10,
      "ExtendFee": 11.1,
      "Amount": 12.0
    }
  ]
}

application/xml, text/xml

Sample:
<ExtendMultipleServiceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTA.Proxy.Request">
  <ApproveCode>sample string 4</ApproveCode>
  <BookingSource>1</BookingSource>
  <ChannelCode>sample string 2</ChannelCode>
  <PaymentType>6</PaymentType>
  <Reason>sample string 5</Reason>
  <ReferenceNumber>sample string 3</ReferenceNumber>
  <Services>
    <ExtendServiceInfo>
      <Amount>12</Amount>
      <BeforeUsingDate>sample string 6</BeforeUsingDate>
      <ExtendDate>sample string 9</ExtendDate>
      <ExtendFee>11.1</ExtendFee>
      <ExtendFeeType>10</ExtendFeeType>
      <IdentifyCode>sample string 1</IdentifyCode>
      <PolicyId>7</PolicyId>
      <PolicyName>sample string 8</PolicyName>
      <ServiceId>4</ServiceId>
      <ServiceName>sample string 5</ServiceName>
      <SiteId>2</SiteId>
      <SiteName>sample string 3</SiteName>
    </ExtendServiceInfo>
    <ExtendServiceInfo>
      <Amount>12</Amount>
      <BeforeUsingDate>sample string 6</BeforeUsingDate>
      <ExtendDate>sample string 9</ExtendDate>
      <ExtendFee>11.1</ExtendFee>
      <ExtendFeeType>10</ExtendFeeType>
      <IdentifyCode>sample string 1</IdentifyCode>
      <PolicyId>7</PolicyId>
      <PolicyName>sample string 8</PolicyName>
      <ServiceId>4</ServiceId>
      <ServiceName>sample string 5</ServiceName>
      <SiteId>2</SiteId>
      <SiteName>sample string 3</SiteName>
    </ExtendServiceInfo>
  </Services>
  <TotalAmount>7</TotalAmount>
</ExtendMultipleServiceRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.