@@ -47,7 +47,6 @@ The order refunds API allows you to create, view, and delete individual refunds,
47
47
| ` meta_data ` | array | Meta data. See [ Order refund - Meta data properties] ( #order-refund-meta-data-properties ) |
48
48
| ` sku ` | string | Product SKU. <i class =" label label-info " >read-only</i > |
49
49
| ` price ` | string | Product price. <i class =" label label-info " >read-only</i > |
50
- | ` refund_total ` | number | The amount to refund for this line item, excluding taxes. <i class =" label label-info " >write-only</i > |
51
50
52
51
#### Order refund line item - Taxes properties ####
53
52
@@ -56,7 +55,6 @@ The order refunds API allows you to create, view, and delete individual refunds,
56
55
| ` id ` | integer | Tax rate ID. <i class =" label label-info " >read-only</i > |
57
56
| ` total ` | string | Tax total. <i class =" label label-info " >read-only</i > |
58
57
| ` subtotal ` | string | Tax subtotal. <i class =" label label-info " >read-only</i > |
59
- | ` refund_total ` | number | The amount to refund for this tax. <i class =" label label-info " >write-only</i > |
60
58
61
59
### Order refund - Tax lines properties ###
62
60
@@ -250,6 +248,21 @@ woocommerce.post("orders/723/refunds", data).parsed_response
250
248
}
251
249
```
252
250
251
+ #### Line item parameters ####
252
+
253
+ | Parameter | Type | Description |
254
+ | ----------------| ---------| ----------------------------------------------------------------------------|
255
+ | ` id ` | integer | The ID of the line item in the order. |
256
+ | ` refund_total ` | number | The amount to refund for this line item, excluding taxes. |
257
+ | ` refund_tax ` | array | Refunds for tax rates. See [ Refund tax parameters] ( #refund-tax-parameters ) |
258
+
259
+ #### Refund tax parameters ####
260
+
261
+ | Parameter | Type | Description |
262
+ | ----------------| ---------| ----------------------------------------------------------------|
263
+ | ` id ` | integer | The ID of the tax rate. |
264
+ | ` refund_total ` | number | The amount of tax to refund for this line item. |
265
+
253
266
## Retrieve a refund ##
254
267
255
268
This API lets you retrieve and view a specific refund from an order.
0 commit comments