Replies: 1
I’ve build a HTTP JSON Post request to automatically refund an order in WooCommerce true API. This perfectly refunds an order with the line items and the line item taxes. The body looks like this:
{
“reason”: “GU: De credit van originele order #{{5.OrderID}} wordt gebruikt voor betaling van nieuwe order ….”,
“api_refund”: false,
“api_restock”: true,
“line_items”: [
{
“id”: “1234”,
“quantity”: -2,
“refund_total”: “20”,
“refund_tax”: [
{
“id”: “1234”,
“refund_total”: “10”
}
]
}
],
Somehow I’m not able to add shipping_lines and fee_lines to the refund. Tried multiple codes for this but all without luck, can someone tell me how to add shipping_lines en fee_lines parameters to the API create order refund?