POST Report/CourierPayment

Request Information

URI Parameters

None.

Body Parameters

ReportRequest
NameDescriptionTypeAdditional information
Courier

integer

None.

StartDate

string

None.

EndDate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Courier": 1,
  "StartDate": "sample string 2",
  "EndDate": "sample string 3"
}

application/xml, text/xml

Sample:
<ReportRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlpaslanKuryeMobilAPI.Models">
  <Courier>1</Courier>
  <EndDate>sample string 3</EndDate>
  <StartDate>sample string 2</StartDate>
</ReportRequest>

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 'ReportRequest'.

Response Information

Resource Description

CourierPaymentReport
NameDescriptionTypeAdditional information
Payments

PaymentMethodTotals

None.

Packages

Collection of PaymentReportPackage

None.

Response Formats

application/json, text/json

Sample:
{
  "Payments": {
    "Cash": 1.0,
    "Card": 2.0,
    "Online": 3.0,
    "FoodCard": 4.0,
    "OnlineFoodCard": 5.0,
    "Other": 6.0
  },
  "Packages": [
    {
      "ID": 1,
      "Date": "2025-12-23T13:41:36.7692067+03:00",
      "PackagePrice": 3.0,
      "CourierPrice": 4.0,
      "PackageNumber": "sample string 5",
      "BuyerName": "sample string 6",
      "Address": "sample string 7",
      "PaymentMethod": "sample string 8",
      "IsPaymentGetFromCourier": true
    },
    {
      "ID": 1,
      "Date": "2025-12-23T13:41:36.7692067+03:00",
      "PackagePrice": 3.0,
      "CourierPrice": 4.0,
      "PackageNumber": "sample string 5",
      "BuyerName": "sample string 6",
      "Address": "sample string 7",
      "PaymentMethod": "sample string 8",
      "IsPaymentGetFromCourier": true
    }
  ]
}

application/xml, text/xml

Sample:
<CourierPaymentReport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlpaslanKuryeMobilAPI.Models">
  <Packages>
    <PaymentReportPackage>
      <Address>sample string 7</Address>
      <BuyerName>sample string 6</BuyerName>
      <CourierPrice>4</CourierPrice>
      <Date>2025-12-23T13:41:36.7692067+03:00</Date>
      <ID>1</ID>
      <IsPaymentGetFromCourier>true</IsPaymentGetFromCourier>
      <PackageNumber>sample string 5</PackageNumber>
      <PackagePrice>3</PackagePrice>
      <PaymentMethod>sample string 8</PaymentMethod>
    </PaymentReportPackage>
    <PaymentReportPackage>
      <Address>sample string 7</Address>
      <BuyerName>sample string 6</BuyerName>
      <CourierPrice>4</CourierPrice>
      <Date>2025-12-23T13:41:36.7692067+03:00</Date>
      <ID>1</ID>
      <IsPaymentGetFromCourier>true</IsPaymentGetFromCourier>
      <PackageNumber>sample string 5</PackageNumber>
      <PackagePrice>3</PackagePrice>
      <PaymentMethod>sample string 8</PaymentMethod>
    </PaymentReportPackage>
  </Packages>
  <Payments>
    <Card>2</Card>
    <Cash>1</Cash>
    <FoodCard>4</FoodCard>
    <Online>3</Online>
    <OnlineFoodCard>5</OnlineFoodCard>
    <Other>6</Other>
  </Payments>
</CourierPaymentReport>