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": "oOCbFtfBmkGbYl0xLquc4A==", "accountIdentifierGuid": "169be0a0-c1d7-419a-9b62-5d312eab9ce0", "saleIdentifier": "sample string 3", "saleHeaderID": 4, "saleDetailID": 1, "salePaymentID": 1, "saleDetailIdentifier": "nqEygJMWkEmtXNRrJajYNw==", "saleDetailIdentifierGuid": "8032a19e-1693-4990-ad5c-d46b25a8d837", "salePaymentIdentifier": "RC5i1B6eWkCpc1+uyMqwFQ==", "salePaymentIdentifierGuid": "d4622e44-9e1e-405a-a973-5faec8cab015", "totalAmount": 5, "unallocatedAmount": 6, "transactionTime": "2025-08-02T15:11:44.6387421", "transactionTimeLocal": "2025-08-02T15:11:44.6387421", "created": "2025-08-02T15:11:44.6387421", "allocatedCharges": [ { "$id": "3", "id": 1, "accountIdentifier": "y8TtSHuLr0CLraiGAU9IQw==", "accountIdentifierGuid": "48edc4cb-8b7b-40af-8bad-a886014f4843", "saleIdentifier": "sample string 3", "saleHeaderID": 4, "salePaymentID": 1, "salePaymentIdentifier": "2+wZFn6kmkGp+we7ZISJ3Q==", "salePaymentIdentifierGuid": "1619ecdb-a47e-419a-a9fb-07bb648489dd", "totalAmount": 5, "unallocatedAmount": 6, "transactionTime": "2025-08-02T15:11:44.6387421", "transactionTimeLocal": "2025-08-02T15:11:44.6387421", "created": "2025-08-02T15:11:44.6387421", "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.