POST api/Payments

Request Information

URI Parameters

None.

Body Parameters

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.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "DriverId": "sample string 2",
  "AmountPaid": 1.1,
  "Client": 1,
  "DatePaid": "2021-11-30T23:32:58.9696076+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:32:58.9696076+02:00</DatePaid>
  <DriverId>sample string 2</DriverId>
  <FullName>sample string 3</FullName>
  <PetrolPayment>true</PetrolPayment>
  <id>1</id>
</Payment>

application/x-www-form-urlencoded

Sample:

Sample not available.

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:32:58.9696076+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:32:58.9696076+02:00</DatePaid>
  <DriverId>sample string 2</DriverId>
  <FullName>sample string 3</FullName>
  <PetrolPayment>true</PetrolPayment>
  <id>1</id>
</Payment>