POST api/Customer/AddCustomerPaymentExtras

Request Information

URI Parameters

None.

Body Parameters

AddPaymentOnlyRequest
NameDescriptionTypeAdditional information
CashRegisterHistoryID

integer

Required

CustomerID

integer

Required

PaymentModeID

integer

None.

CreatedByUserID

integer

None.

TotalAmount

decimal number

None.

Remarks

string

None.

Attachment

string

None.

Documents

Collection of ImageModel

None.

IsAttachmentAttached

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CashRegisterHistoryID": 1,
  "CustomerID": 2,
  "PaymentModeID": 3,
  "CreatedByUserID": 4,
  "TotalAmount": 5.0,
  "Remarks": "sample string 6",
  "Attachment": "sample string 7",
  "Documents": [
    {
      "Base64String": "sample string 1",
      "Extention": "sample string 2"
    },
    {
      "Base64String": "sample string 1",
      "Extention": "sample string 2"
    }
  ],
  "IsAttachmentAttached": true
}

application/xml, text/xml

Sample:
<AddPaymentOnlyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request">
  <Attachment>sample string 7</Attachment>
  <CashRegisterHistoryID>1</CashRegisterHistoryID>
  <CreatedByUserID>4</CreatedByUserID>
  <CustomerID>2</CustomerID>
  <Documents xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
    <d2p1:ImageModel>
      <d2p1:Base64String>sample string 1</d2p1:Base64String>
      <d2p1:Extention>sample string 2</d2p1:Extention>
    </d2p1:ImageModel>
    <d2p1:ImageModel>
      <d2p1:Base64String>sample string 1</d2p1:Base64String>
      <d2p1:Extention>sample string 2</d2p1:Extention>
    </d2p1:ImageModel>
  </Documents>
  <IsAttachmentAttached>true</IsAttachmentAttached>
  <PaymentModeID>3</PaymentModeID>
  <Remarks>sample string 6</Remarks>
  <TotalAmount>5</TotalAmount>
</AddPaymentOnlyRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseDetail
NameDescriptionTypeAdditional information
ResponseCode

integer

None.

ResponseText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseCode": 1,
  "ResponseText": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
  <ResponseCode>1</ResponseCode>
  <ResponseText>sample string 2</ResponseText>
</ResponseDetail>