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": "jraacdajYUKpAOUIT9/bAQ==",
"accountIdentifierGuid": "719ab68e-a3d6-4261-a900-e5084fdfdb01",
"saleIdentifier": "sample string 3",
"saleHeaderID": 4,
"saleDetailID": 1,
"salePaymentID": 1,
"saleDetailIdentifier": "oHNoBiiz+02tA4nrMYxt5Q==",
"saleDetailIdentifierGuid": "066873a0-b328-4dfb-ad03-89eb318c6de5",
"salePaymentIdentifier": "+H8H9pfHL0SQEcZBUxOUCw==",
"salePaymentIdentifierGuid": "f6077ff8-c797-442f-9011-c6415313940b",
"totalAmount": 5,
"unallocatedAmount": 6,
"transactionTime": "2026-06-03T11:39:40.4165623",
"transactionTimeLocal": "2026-06-03T11:39:40.4165623",
"created": "2026-06-03T11:39:40.4165623",
"allocatedCharges": [
{
"$id": "3",
"id": 1,
"accountIdentifier": "ZKUxbb8lTkeYaR/orWI6xA==",
"accountIdentifierGuid": "6d31a564-25bf-474e-9869-1fe8ad623ac4",
"saleIdentifier": "sample string 3",
"saleHeaderID": 4,
"salePaymentID": 1,
"salePaymentIdentifier": "DtNW+cu5X064VCgU3XQdKg==",
"salePaymentIdentifierGuid": "f956d30e-b9cb-4e5f-b854-2814dd741d2a",
"totalAmount": 5,
"unallocatedAmount": 6,
"transactionTime": "2026-06-03T11:39:40.4165623",
"transactionTimeLocal": "2026-06-03T11:39:40.4165623",
"created": "2026-06-03T11:39:40.4165623",
"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.