GET api/Payments/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

None.

Response Information

Resource Description

Payment
NameDescriptionTypeAdditional information
id

integer

None.

DriverId

string

None.

AmountPaid

decimal number

None.

Client

integer

None.

DatePaid

date

None.

FullName

string

None.

PetrolPayment

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "DriverId": "sample string 2",
  "AmountPaid": 1.1,
  "Client": 1,
  "DatePaid": "2021-11-30T23:21:21.7387655+02:00",
  "FullName": "sample string 3",
  "PetrolPayment": true
}

application/xml, text/xml

Sample:
<Payment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BonaITBackend.Models">
  <AmountPaid>1.1</AmountPaid>
  <Client>1</Client>
  <DatePaid>2021-11-30T23:21:21.7387655+02:00</DatePaid>
  <DriverId>sample string 2</DriverId>
  <FullName>sample string 3</FullName>
  <PetrolPayment>true</PetrolPayment>
  <id>1</id>
</Payment>