POST api/bookingpaymnet/insertpayment

Request Information

URI Parameters

None.

Body Parameters

Payment
NameDescriptionTypeAdditional information
PaymentId

integer

None.

BookingId

integer

None.

MemberId

integer

None.

ResortId

integer

None.

PaymentDate

date

None.

PaymentMethod

string

None.

TotalAmount

decimal number

None.

PaymentStatus

string

None.

Shift4Responce

string

None.

Invoice

string

None.

CreatedDate

date

None.

ModifiedDate

date

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PaymentId": 1,
  "BookingId": 2,
  "MemberId": 3,
  "ResortId": 4,
  "PaymentDate": "2025-06-24T13:34:42.5021638+00:00",
  "PaymentMethod": "sample string 6",
  "TotalAmount": 7.0,
  "PaymentStatus": "sample string 8",
  "Shift4Responce": "sample string 9",
  "Invoice": "sample string 10",
  "CreatedDate": "2025-06-24T13:34:42.5021638+00:00",
  "ModifiedDate": "2025-06-24T13:34:42.5021638+00:00",
  "CreatedBy": 1,
  "ModifiedBy": 1,
  "IsActive": true,
  "IsDeleted": true
}

text/html

Sample:
{"PaymentId":1,"BookingId":2,"MemberId":3,"ResortId":4,"PaymentDate":"2025-06-24T13:34:42.5021638+00:00","PaymentMethod":"sample string 6","TotalAmount":7.0,"PaymentStatus":"sample string 8","Shift4Responce":"sample string 9","Invoice":"sample string 10","CreatedDate":"2025-06-24T13:34:42.5021638+00:00","ModifiedDate":"2025-06-24T13:34:42.5021638+00:00","CreatedBy":1,"ModifiedBy":1,"IsActive":true,"IsDeleted":true}

application/xml, text/xml

Sample:
<Payment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SRG.Core">
  <CreatedBy>1</CreatedBy>
  <CreatedDate>2025-06-24T13:34:42.5021638+00:00</CreatedDate>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedDate>2025-06-24T13:34:42.5021638+00:00</ModifiedDate>
  <BookingId>2</BookingId>
  <Invoice>sample string 10</Invoice>
  <MemberId>3</MemberId>
  <PaymentDate>2025-06-24T13:34:42.5021638+00:00</PaymentDate>
  <PaymentId>1</PaymentId>
  <PaymentMethod>sample string 6</PaymentMethod>
  <PaymentStatus>sample string 8</PaymentStatus>
  <ResortId>4</ResortId>
  <Shift4Responce>sample string 9</Shift4Responce>
  <TotalAmount>7</TotalAmount>
</Payment>

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 'Payment'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.