POST Deposits/Create

This call is used to create a new discount

Request Information

URI Parameters

None.

Body Parameters

CreateDepositRequestCommand
Name Type Description Additional information
SiteID integer

None.

Name string

None.

PhoneNo string

None.

ReservationDateTime date

None.

Amount decimal number

None.

Notes string

None.

Request Formats

application/json, text/json

Sample:
{
  "SiteID": 1,
  "Name": "sample string 2",
  "PhoneNo": "sample string 3",
  "ReservationDateTime": "2024-11-21T06:23:55.0322506+00:00",
  "Amount": 5.0,
  "Notes": "sample string 6"
}

application/xml, text/xml

Sample:
<CreateDepositRequestCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.Core.Models.Deposits.Commands">
  <Amount>5</Amount>
  <Name>sample string 2</Name>
  <Notes>sample string 6</Notes>
  <PhoneNo>sample string 3</PhoneNo>
  <ReservationDateTime>2024-11-21T06:23:55.0322506+00:00</ReservationDateTime>
  <SiteID>1</SiteID>
</CreateDepositRequestCommand>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateDepositResultDto
Name Type Description Additional information
DepositID integer

None.

Name string

None.

PhoneNo string

None.

ReservationDateTime date

None.

Amount decimal number

None.

PaymentMethod string

None.

Notes string

None.

Response Formats

application/json, text/json

Sample:
{
  "DepositID": 1,
  "Name": "sample string 2",
  "PhoneNo": "sample string 3",
  "ReservationDateTime": "2024-11-21T06:23:55.0322506+00:00",
  "Amount": 5.0,
  "PaymentMethod": "sample string 6",
  "Notes": "sample string 7"
}

application/xml, text/xml

Sample:
<CreateDepositResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.Core.Models.SignalR.Dtos">
  <Amount>5</Amount>
  <DepositID>1</DepositID>
  <Name>sample string 2</Name>
  <Notes>sample string 7</Notes>
  <PaymentMethod>sample string 6</PaymentMethod>
  <PhoneNo>sample string 3</PhoneNo>
  <ReservationDateTime>2024-11-21T06:23:55.0322506+00:00</ReservationDateTime>
</CreateDepositResultDto>