These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

Executing an invoice operaton

Hi,

We are trying to execute the ProcessAccrualAdjustment invoice operation to modify the pricing on accrual invoices and need some help with the request. This is the json to be included in the body based on the documentation:

{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "ProcessAccrualAdjustment",
"EntityTypeName": "Invoice",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection1[[System.Object, mscorlib]], mscorlib", "$values": [ { "$type": "Asi.Soa.Commerce.DataContracts.InvoiceActionAccrualAdjustmentData, Asi.Contracts", "$value": "invoiceActionAccrualAdjustmentData Value" } ] }, "ParameterTypeName": { "$type": "System.Collections.ObjectModel.Collection1[[System.String, mscorlib]], mscorlib",
"$values": [
"Asi.Soa.Commerce.DataContracts.InvoiceActionAccrualAdjustmentData, Asi.Contracts"
]
},
"UseJson": false
}

Can you please help us with the values we need to send over for 'invoiceActionAccrualAdjustmentData' or if you can send an example for such a request that'll help us out a lot. If this is not the right request to adjust the pricing on an accrual invoice, please point us in the right direction.

Thank you!!