POST api/Payment/AddVoucherDetails

Request Information

URI Parameters

None.

Body Parameters

VoucherDetailsModel
NameDescriptionTypeAdditional information
DoctorId

integer

None.

OrderId

decimal number

None.

TotalVoucher

integer

None.

UsedVoucher

integer

None.

Amount

decimal number

None.

CreatedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "DoctorId": 1,
  "OrderId": 2.1,
  "TotalVoucher": 3,
  "UsedVoucher": 4,
  "Amount": 5.1,
  "CreatedOn": "2026-01-12T18:55:55.8997675+05:30"
}

application/xml, text/xml

Sample:
<VoucherDetailsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AssociateAPI.Models">
  <Amount>5.1</Amount>
  <CreatedOn>2026-01-12T18:55:55.8997675+05:30</CreatedOn>
  <DoctorId>1</DoctorId>
  <OrderId>2.1</OrderId>
  <TotalVoucher>3</TotalVoucher>
  <UsedVoucher>4</UsedVoucher>
</VoucherDetailsModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.