You can only provide an external tax_mode when partially refunding.
You're attempting to pass tax_mode: external with a type other than partial or an action other than refund.
| Error Message | You're attempting to pass `tax_mode: external` with a `type` other than `partial` or an `action` other than `refund`. |
| Error Code | adjustment_tax_mode_not_allowed |
| Status Code | 400 |
Common causes
You're trying to create an adjustment where the
tax_modeisexternal, but thetypeisfull. Only partial refunds can be created using external tax amounts.You're trying to create an adjustment where the
tax_modeisexternal, but theactionis one other thanrefund. Only refunds can be created using external tax amounts.
Solutions
Ensure the
typeispartialandactionisrefund.Pass
internalas thetax_modeto specify that amounts are inclusive of tax.