POST api/Delivery?pilotId={pilotId}&Lat={Lat}&Long={Long}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pilotId

integer

Required

Lat

decimal number

Required

Long

decimal number

Required

Body Parameters

Collection of GrantinDetails
NameDescriptionTypeAdditional information
HotAreaId

integer

None.

ToTime

date

None.

FromTime

date

None.

OfferId

integer

None.

garanteeDayId

integer

None.

GrantinColor

string

None.

IsRecurrcing

boolean

None.

RecurrcingType

integer

None.

OfferDetails

string

None.

TargetNoOfHour

integer

None.

TargetNoOfRequests

integer

None.

IgnoreNoCount

integer

None.

CancleNoCount

integer

None.

Amount

decimal number

None.

GaranteeFilterId

integer

None.

InsertAllAmount

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "HotAreaId": 1,
    "ToTime": "2025-12-06T06:26:41.8181336+02:00",
    "FromTime": "2025-12-06T06:26:41.8181336+02:00",
    "OfferId": 2,
    "garanteeDayId": 1,
    "GrantinColor": "sample string 3",
    "IsRecurrcing": true,
    "RecurrcingType": 1,
    "OfferDetails": "sample string 4",
    "TargetNoOfHour": 1,
    "TargetNoOfRequests": 1,
    "IgnoreNoCount": 1,
    "CancleNoCount": 1,
    "Amount": 5.0,
    "GaranteeFilterId": 1,
    "InsertAllAmount": true
  },
  {
    "HotAreaId": 1,
    "ToTime": "2025-12-06T06:26:41.8181336+02:00",
    "FromTime": "2025-12-06T06:26:41.8181336+02:00",
    "OfferId": 2,
    "garanteeDayId": 1,
    "GrantinColor": "sample string 3",
    "IsRecurrcing": true,
    "RecurrcingType": 1,
    "OfferDetails": "sample string 4",
    "TargetNoOfHour": 1,
    "TargetNoOfRequests": 1,
    "IgnoreNoCount": 1,
    "CancleNoCount": 1,
    "Amount": 5.0,
    "GaranteeFilterId": 1,
    "InsertAllAmount": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfGrantinDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VOOO_MVCAPI.Models.APIBodies">
  <GrantinDetails>
    <Amount>5</Amount>
    <CancleNoCount>1</CancleNoCount>
    <FromTime>2025-12-06T06:26:41.8181336+02:00</FromTime>
    <GaranteeFilterId>1</GaranteeFilterId>
    <GrantinColor>sample string 3</GrantinColor>
    <HotAreaId>1</HotAreaId>
    <IgnoreNoCount>1</IgnoreNoCount>
    <InsertAllAmount>true</InsertAllAmount>
    <IsRecurrcing>true</IsRecurrcing>
    <OfferDetails>sample string 4</OfferDetails>
    <OfferId>2</OfferId>
    <RecurrcingType>1</RecurrcingType>
    <TargetNoOfHour>1</TargetNoOfHour>
    <TargetNoOfRequests>1</TargetNoOfRequests>
    <ToTime>2025-12-06T06:26:41.8181336+02:00</ToTime>
    <garanteeDayId>1</garanteeDayId>
  </GrantinDetails>
  <GrantinDetails>
    <Amount>5</Amount>
    <CancleNoCount>1</CancleNoCount>
    <FromTime>2025-12-06T06:26:41.8181336+02:00</FromTime>
    <GaranteeFilterId>1</GaranteeFilterId>
    <GrantinColor>sample string 3</GrantinColor>
    <HotAreaId>1</HotAreaId>
    <IgnoreNoCount>1</IgnoreNoCount>
    <InsertAllAmount>true</InsertAllAmount>
    <IsRecurrcing>true</IsRecurrcing>
    <OfferDetails>sample string 4</OfferDetails>
    <OfferId>2</OfferId>
    <RecurrcingType>1</RecurrcingType>
    <TargetNoOfHour>1</TargetNoOfHour>
    <TargetNoOfRequests>1</TargetNoOfRequests>
    <ToTime>2025-12-06T06:26:41.8181336+02:00</ToTime>
    <garanteeDayId>1</garanteeDayId>
  </GrantinDetails>
</ArrayOfGrantinDetails>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>