POST api/Customer/SaveAdvancePayment

Request Information

URI Parameters

None.

Body Parameters

CustomerAdvancePayment
NameDescriptionTypeAdditional information
ReceiptNo

string

None.

ReceiptDate

date

None.

RecivedAmount

decimal number

None.

CustCode

string

None.

TerminalNO

string

None.

InsertUser

string

None.

USNo

string

None.

Payments

Collection of InvoicePayment

None.

Request Formats

application/json, text/json

Sample:
{
  "ReceiptNo": "sample string 1",
  "ReceiptDate": "2026-11-01T03:25:35.2525731-08:00",
  "RecivedAmount": 3.0,
  "CustCode": "sample string 4",
  "TerminalNO": "sample string 5",
  "InsertUser": "sample string 6",
  "USNo": "sample string 7",
  "Payments": [
    {
      "PaidAmount": 1.0,
      "PaymentMethod": "sample string 2",
      "ChequeNo": "sample string 3",
      "ChequeDate": "2026-11-01T03:25:35.2525731-08:00",
      "Bank": "sample string 4"
    },
    {
      "PaidAmount": 1.0,
      "PaymentMethod": "sample string 2",
      "ChequeNo": "sample string 3",
      "ChequeDate": "2026-11-01T03:25:35.2525731-08:00",
      "Bank": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<CustomerAdvancePayment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SOFTO.POS.Sync.Models">
  <CustCode>sample string 4</CustCode>
  <InsertUser>sample string 6</InsertUser>
  <Payments>
    <InvoicePayment>
      <Bank>sample string 4</Bank>
      <ChequeDate>2026-11-01T03:25:35.2525731-08:00</ChequeDate>
      <ChequeNo>sample string 3</ChequeNo>
      <PaidAmount>1</PaidAmount>
      <PaymentMethod>sample string 2</PaymentMethod>
    </InvoicePayment>
    <InvoicePayment>
      <Bank>sample string 4</Bank>
      <ChequeDate>2026-11-01T03:25:35.2525731-08:00</ChequeDate>
      <ChequeNo>sample string 3</ChequeNo>
      <PaidAmount>1</PaidAmount>
      <PaymentMethod>sample string 2</PaymentMethod>
    </InvoicePayment>
  </Payments>
  <ReceiptDate>2026-11-01T03:25:35.2525731-08:00</ReceiptDate>
  <ReceiptNo>sample string 1</ReceiptNo>
  <RecivedAmount>3</RecivedAmount>
  <TerminalNO>sample string 5</TerminalNO>
  <USNo>sample string 7</USNo>
</CustomerAdvancePayment>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.