Discussions
Reversing Payments
We have 500 payments (part payments on membership invoices) that we need to reverse due to the double triggering of a iMIS Powersuite task... Whilst the documentation says that the execute method on Payment should do this the documntation seems to be incomplete. It doesn't show how to associate the reversal to a specific payment, invoice or even ID.
Does anyone have a complete body payload for this method please. I don't need to reverse the invoice - just one payment from many on an invoice.
Here's the body from the documentation.
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "Reverse",
"EntityTypeName": "Payment",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection1[[System.Object, mscorlib]], mscorlib", "$values": [ { "$type": "Asi.Soa.Commerce.DataContracts.PaymentData, Asi.Contracts", "$value": "payment Value" }, { "$type": "System.Nullable1[[System.DateTime, mscorlib, ]]",
"$value": "reversalDate Value"
},
{
"$type": "System.String",
"$value": "comment Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection1[[System.String, mscorlib]], mscorlib", "$values": [ "Asi.Soa.Commerce.DataContracts.PaymentData, Asi.Contracts", "System.Nullable1[[System.DateTime, mscorlib, ]]",
"System.String"
]
},
"UseJson": false
}
