POST customer/receipt/allocation

Allocate customer receipt

Request Information

URI Parameters

None.

Body Parameters

Interprise.Web.Services.Models.CustomerReceiptAllocationInput
NameDescriptionTypeAdditional information
CustomerCode

Optional when customer name is specified

string

None.

CustomerName

Optional when customer code is specified

string

None.

ReceivableCode

string

None.

AllocatedAmount

Zero allocate amount means allocate all

decimal number

None.

Debits

Collection of Interprise.Web.Services.Models.CustomerReceiptAllocationInput+DocumentDetails

None.

Request Formats

{
  "customerCode": "sample string 1",
  "customerName": "sample string 2",
  "receivableCode": "sample string 3",
  "allocatedAmount": 4.0,
  "debits": [
    {
      "documentCode": "sample string 1",
      "allocatedAmount": 2.0
    },
    {
      "documentCode": "sample string 1",
      "allocatedAmount": 2.0
    }
  ]
}
<CustomerReceiptAllocationInput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CustomerCode>sample string 1</CustomerCode>
  <CustomerName>sample string 2</CustomerName>
  <ReceivableCode>sample string 3</ReceivableCode>
  <AllocatedAmount>4</AllocatedAmount>
  <Debits>
    <DocumentDetails>
      <DocumentCode>sample string 1</DocumentCode>
      <AllocatedAmount>2</AllocatedAmount>
      <CurrentBalanceToAllocate>3</CurrentBalanceToAllocate>
    </DocumentDetails>
    <DocumentDetails>
      <DocumentCode>sample string 1</DocumentCode>
      <AllocatedAmount>2</AllocatedAmount>
      <CurrentBalanceToAllocate>3</CurrentBalanceToAllocate>
    </DocumentDetails>
  </Debits>
</CustomerReceiptAllocationInput>

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'CustomerReceiptAllocationInput'.

Response Information

Resource Description

Interprise.Web.Services.Application.Response.DefaultResponse
NameDescriptionTypeAdditional information
Message

Gets or sets the response message

string

None.

Response Formats

Sample not available.