From 16b8534968f3d37c8d8f4aa13f3e4af10cea8fa8 Mon Sep 17 00:00:00 2001 From: Jonas Kwiedor Date: Mon, 25 Oct 2021 14:26:47 +0200 Subject: [PATCH] Fixing syntax error Due to the fact that colons are missing there, an error code: rest_invalid_json is thrown out via the API. --- source/includes/wp-api-v3/_order-refunds.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/includes/wp-api-v3/_order-refunds.md b/source/includes/wp-api-v3/_order-refunds.md index ce2c6ef..c484619 100644 --- a/source/includes/wp-api-v3/_order-refunds.md +++ b/source/includes/wp-api-v3/_order-refunds.md @@ -79,7 +79,7 @@ curl -X POST https://example.com/wp-json/wc/v3/orders/723/refunds \ "refund_total": 10, "refund_tax": [ { - "id" "222", + "id": "222", "refund_total": 20 } ]