POST api/account/allocate
do allocations for selected payments and charges
Request Information
URI Parameters
None.
Body Parameters
it contains selected payments and selected charge from frontend
AccountAllocationModel| Name | Description | Type | Additional information |
|---|---|---|---|
| payments | Collection of AccountAllocationPayment |
None. |
|
| charges | Collection of AccountAllocationCharge |
None. |
Request Formats
application/json, text/json
Sample:
{
"payments": [
{
"$id": "2",
"id": 1,
"accountIdentifier": "aJJ5lroUpk+1Hcm8mUk/sA==",
"accountIdentifierGuid": "96799268-14ba-4fa6-b51d-c9bc99493fb0",
"saleIdentifier": "sample string 3",
"saleHeaderID": 4,
"saleDetailID": 1,
"salePaymentID": 1,
"saleDetailIdentifier": "YIsM7VdhEkOKF/53vEpqKQ==",
"saleDetailIdentifierGuid": "ed0c8b60-6157-4312-8a17-fe77bc4a6a29",
"salePaymentIdentifier": "hEor+qwQp0SmxgeLb4HMQg==",
"salePaymentIdentifierGuid": "fa2b4a84-10ac-44a7-a6c6-078b6f81cc42",
"totalAmount": 5,
"unallocatedAmount": 6,
"transactionTime": "2026-04-03T06:24:10.8771792",
"transactionTimeLocal": "2026-04-03T06:24:10.8771792",
"created": "2026-04-03T06:24:10.8771792",
"allocatedCharges": [
{
"$id": "3",
"id": 1,
"accountIdentifier": "PcuTZjTaPUCSwGHOmNqTrg==",
"accountIdentifierGuid": "6693cb3d-da34-403d-92c0-61ce98da93ae",
"saleIdentifier": "sample string 3",
"saleHeaderID": 4,
"salePaymentID": 1,
"salePaymentIdentifier": "c3h8jwHZzUmBfF9U7axG9g==",
"salePaymentIdentifierGuid": "8f7c7873-d901-49cd-817c-5f54edac46f6",
"totalAmount": 5,
"unallocatedAmount": 6,
"transactionTime": "2026-04-03T06:24:10.8771792",
"transactionTimeLocal": "2026-04-03T06:24:10.8771792",
"created": "2026-04-03T06:24:10.8771792",
"allocatedPayments": [
{
"$ref": "2"
},
{
"$ref": "2"
}
],
"allocatedAmount": 1
},
{
"$ref": "3"
}
],
"allocatedAmount": 1
},
{
"$ref": "2"
}
],
"charges": [
{
"$ref": "3"
},
{
"$ref": "3"
}
]
}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
void
None.