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": "zd4GnfM/S0Cgb5L3gNmkfw==", "accountIdentifierGuid": "9d06decd-3ff3-404b-a06f-92f780d9a47f", "saleIdentifier": "sample string 3", "saleHeaderID": 4, "saleDetailID": 1, "salePaymentID": 1, "saleDetailIdentifier": "9FqveEEV0EC9PE7JFtEixQ==", "saleDetailIdentifierGuid": "78af5af4-1541-40d0-bd3c-4ec916d122c5", "salePaymentIdentifier": "op2knBoYjk+1UgIZXnhhmQ==", "salePaymentIdentifierGuid": "9ca49da2-181a-4f8e-b552-02195e786199", "totalAmount": 5, "unallocatedAmount": 6, "transactionTime": "2025-06-14T06:40:11.7845397", "transactionTimeLocal": "2025-06-14T06:40:11.7845397", "created": "2025-06-14T06:40:11.7845397", "allocatedCharges": [ { "$id": "3", "id": 1, "accountIdentifier": "RGmOp0hoSEma8atNoO9llw==", "accountIdentifierGuid": "a78e6944-6848-4948-9af1-ab4da0ef6597", "saleIdentifier": "sample string 3", "saleHeaderID": 4, "salePaymentID": 1, "salePaymentIdentifier": "hwle4SfAAEGZFoujK5KRxw==", "salePaymentIdentifierGuid": "e15e0987-c027-4100-9916-8ba32b9291c7", "totalAmount": 5, "unallocatedAmount": 6, "transactionTime": "2025-06-14T06:40:11.7845397", "transactionTimeLocal": "2025-06-14T06:40:11.7845397", "created": "2025-06-14T06:40:11.7845397", "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.