Discussions
AdditionalCharges through REST API
I am trying to add the AdditionalCharges object to our payload that is sent to IMIS' REST API to add items to cart. The way it is currently formatted uses a TaxAuthority to try to calculate tax automatically but it is not displaying any extra values or calculations on the cart screen. The payload for AdditionalCharges is as follows:
"AdditionalCharges": {
"$values": [{
"AdditionalChargeId": "HSTAddCharge",
"Description": "HST",
"Tax": {
"Details": {
"$values": [{
"IsTaxInclusive": false,
"TaxAuthority": {
"Description": "HST",
"Name": "HST",
"TaxAuthorityCode": "HST",
"TaxAuthorityId": "HST"
}
}]
}
}
}]
},
I have tried toggling the IsTaxInclusive property but it does not work for both true and false. Taxes can be calculated fine when adding items to the cart manually, but not through the API. Any help would be appreciated.
Thanks