GET api/Payments?driverId={driverId}&IsPetrolPayment={IsPetrolPayment}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
driverId

string

Required

IsPetrolPayment

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of 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:38:01.3695348+02:00",
    "FullName": "sample string 3",
    "PetrolPayment": true
  },
  {
    "id": 1,
    "DriverId": "sample string 2",
    "AmountPaid": 1.1,
    "Client": 1,
    "DatePaid": "2021-11-30T23:38:01.3695348+02:00",
    "FullName": "sample string 3",
    "PetrolPayment": true
  }
]

application/xml, text/xml

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