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
AccountAllocationModelName | 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": "l5YSUGQy10eakBn/SUTmaQ==", "accountIdentifierGuid": "50129697-3264-47d7-9a90-19ff4944e669", "saleIdentifier": "sample string 3", "saleHeaderID": 4, "saleDetailID": 1, "salePaymentID": 1, "saleDetailIdentifier": "W5FBNM3jbEGK4K32+whBnw==", "saleDetailIdentifierGuid": "3441915b-e3cd-416c-8ae0-adf6fb08419f", "salePaymentIdentifier": "p2pA2S6zRkSkcUjA9kqYkA==", "salePaymentIdentifierGuid": "d9406aa7-b32e-4446-a471-48c0f64a9890", "totalAmount": 5, "unallocatedAmount": 6, "transactionTime": "2025-10-04T23:59:52.917062", "transactionTimeLocal": "2025-10-04T23:59:52.917062", "created": "2025-10-04T23:59:52.917062", "allocatedCharges": [ { "$id": "3", "id": 1, "accountIdentifier": "59s1mosQ90WR8J8nB+PSag==", "accountIdentifierGuid": "9a35dbe7-108b-45f7-91f0-9f2707e3d26a", "saleIdentifier": "sample string 3", "saleHeaderID": 4, "salePaymentID": 1, "salePaymentIdentifier": "hMEvHAj8mka1183Z+wCXvA==", "salePaymentIdentifierGuid": "1c2fc184-fc08-469a-b5d7-cdd9fb0097bc", "totalAmount": 5, "unallocatedAmount": 6, "transactionTime": "2025-10-04T23:59:52.917062", "transactionTimeLocal": "2025-10-04T23:59:52.917062", "created": "2025-10-04T23:59:52.917062", "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.