POST Booking

Request Information

URI Parameters

None.

Body Parameters

BookingObject
NameDescriptionTypeAdditional information
GovNumber

string

None.

Signature

string

None.

BranchId

integer

None.

BookingTime

date

None.

MobileNumber

string

None.

PersonName

string

None.

PaymentType

PaymentType

None.

PaymentAmount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "GovNumber": "sample string 1",
  "Signature": "sample string 2",
  "BranchId": 3,
  "BookingTime": "2024-11-21T13:13:05.0860898+04:00",
  "MobileNumber": "sample string 5",
  "PersonName": "sample string 6",
  "PaymentType": 0,
  "PaymentAmount": 7.0
}

application/xml, text/xml

Sample:
<BookingObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.PaymentService.Model">
  <BookingTime>2024-11-21T13:13:05.0860898+04:00</BookingTime>
  <BranchId>3</BranchId>
  <GovNumber>sample string 1</GovNumber>
  <MobileNumber>sample string 5</MobileNumber>
  <PaymentAmount>7</PaymentAmount>
  <PaymentType>Cash</PaymentType>
  <PersonName>sample string 6</PersonName>
  <Signature>sample string 2</Signature>
</BookingObject>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BookingObject'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.