Discussions
Adjusting a Persisted Cash Dues Invoice
3 days ago by mb
Using the REST API we would like to adjust a dues invoice. The response is "OperationNotAvailable".
We are using the execute method with the ProcessCashAdjustment.
Here is the our JSON:
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "ProcessCashAdjustment",
"EntityTypeName": "Invoice",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "Asi.Soa.Commerce.DataContracts.InvoiceActionCashAdjustmentData, Asi.Contracts",
"InvoiceId": "10776",
"AdjustmentDate": "2025-10-16",
"InvoiceLineAdjustments": {
"$type": "System.Collections.Generic.List1[[Asi.Soa.Commerce.DataContracts.PartialInvoiceLine, Asi.Contracts]], mscorlib",
"$values": [
{
"$type": "Asi.Soa.Commerce.DataContracts.PartialInvoiceLine, Asi.Contracts",
"Item": {
"$type": "Asi.Soa.Commerce.DataContracts.ItemSummaryData, Asi.Contracts",
"Description": "",
"ItemClass": {
"$type": "Asi.Soa.Commerce.DataContracts.ItemClassSummaryData, Asi.Contracts",
"ItemClassId": "DUES",
"Name": "Dues"
},
"ItemCode": "IND",
"ItemId": "IND",
"Name": "Annual Individual Membership"
},
"ItemSet": null,
"ProductCode": "IND",
"IsRemoved": false,
"OriginalUnitPrice": null,
"NewUnitPrice": null,
"AdjustmentPrice": 10
}
]
}
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"Asi.Soa.Commerce.DataContracts.InvoiceActionCashAdjustmentData, Asi.Contracts"
]
},
"UseJson": false
}
Can someone please help?