POST api/customer/payment

Request Information

URI Parameters

None.

Body Parameters

CustomerPaymentRequest
NameDescriptionTypeAdditional information
CustomerId

integer

None.

MandiId

integer

None.

Amount

decimal number

None.

PaymentDate

date

None.

PaymentMode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "MandiId": 2,
  "Amount": 3.0,
  "PaymentDate": "2026-10-04T20:37:10.3021697+05:30",
  "PaymentMode": "sample string 5"
}

application/xml, text/xml

Sample:
<CustomerPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FreshMandi.POS.API.Models">
  <Amount>3</Amount>
  <CustomerId>1</CustomerId>
  <MandiId>2</MandiId>
  <PaymentDate>2026-10-04T20:37:10.3021697+05:30</PaymentDate>
  <PaymentMode>sample string 5</PaymentMode>
</CustomerPaymentRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.