@@ -411,7 +413,7 @@ Fetches a deposit by ID.
- `date` _int_ - The date the deposit was paid in unix timestamp format.
- `type` _string_ - The type of deposit. `deposit` `withdrawal`
- `amount` _int_ - The amount of the deposit.
-- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` `estimated`
+- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`.**)
- `bankAccount` _string_ - The bank account the deposit was paid to.
- `currency` _string_ - The currency of the deposit. E.g. `eur`
- `automatic` _bool_ - Whether the deposit was paid automatically.
From d3d4c16632567df0b4d1d81a4b0995de9e08fe2f Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Thu, 7 Dec 2023 14:13:09 +1000
Subject: [PATCH 20/48] Fix text formatting
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 98c7dd5feb4..1f4bac6a6de 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -279,8 +279,8 @@ _Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a fil
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`.**)
-- `status_is_not` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`.**)
+- `status_is` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
+- `status_is_not` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
- `direction` _string_
- `page` _integer_
- `pagesize` _integer_
@@ -292,7 +292,7 @@ _Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a fil
- `date` _int_ - The date the deposit was paid in unix timestamp format.
- `type` _string_ - The type of deposit. `deposit` `withdrawal`
- `amount` _int_ - The amount of the deposit.
- - `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`.**)
+ - `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
- `bankAccount` _string_ - The bank account the deposit was paid to.
- `currency` _string_ - The currency of the deposit. E.g. `eur`
- `automatic` _bool_ - Whether the deposit was paid automatically.
@@ -366,8 +366,8 @@ _Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a fil
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`.**)
-- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`.**)
+- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
+- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
### Returns
@@ -413,7 +413,7 @@ _Since `7.0.0`, `estimated` deposits are no longer returned._
- `date` _int_ - The date the deposit was paid in unix timestamp format.
- `type` _string_ - The type of deposit. `deposit` `withdrawal`
- `amount` _int_ - The amount of the deposit.
-- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`.**)
+- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
- `bankAccount` _string_ - The bank account the deposit was paid to.
- `currency` _string_ - The currency of the deposit. E.g. `eur`
- `automatic` _bool_ - Whether the deposit was paid automatically.
From a3724d3f60abbd993e8da07cd85af62a232b2cb3 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Thu, 7 Dec 2023 14:28:45 +1000
Subject: [PATCH 21/48] Update POST `/deposits` docs with new params
introduced in #7828
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 1f4bac6a6de..332f04aec54 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -460,17 +460,15 @@ Submit an instant deposit for a list of transactions. Only for eligible accounts
### Required body properties
- `type`: _string_ - The type of deposit. `instant`
-- `transaction_ids`: _array_ - The list of transaction IDs to deposit.
+- `currency`: _string_ - The currency of the balance to deposit. E.g. `usd`
+- ~~`transaction_ids`~~: _array_ - **Deprecated since `7.0.0`, use `currency` instead.** The list of transaction IDs to deposit.
```shell
curl -X POST 'https://example.com/wp-json/wc/v3/payments/deposits' \
-u consumer_key:consumer_secret
--data '{
"type": "instant",
- "transaction_ids": [
- "txn_3OHyIxCIHGKp1UAi0aVyDQ5D",
- "txn_3OJSuOCIHGKp1UAi1mRA2lL5"
- ]
+ "currency": "usd"
}'
```
From 2405ff31d4ab8a5577aa30b36f4efd81df0b965f Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Thu, 7 Dec 2023 14:29:54 +1000
Subject: [PATCH 22/48] Update POST `/deposits/download` docs with deprecated
params
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 332f04aec54..62b4b008f13 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -476,6 +476,8 @@ curl -X POST 'https://example.com/wp-json/wc/v3/payments/deposits' \
Request a CSV export of deposits matching the query. A link to the exported CSV will be emailed to the provided email address or the account's primary email address if no email address is provided.
+_Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filter parameter._
+
### HTTP request
@@ -496,8 +498,8 @@ Request a CSV export of deposits matching the query. A link to the exported CSV
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` `estimated`
-- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` `estimated`
+- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
+- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
### Returns
@@ -507,7 +509,7 @@ Request a CSV export of deposits matching the query. A link to the exported CSV
curl -X POST 'https://example.com/wp-json/wc/v3/payments/deposits/download?status_is=paid' \
-u consumer_key:consumer_secret
--data '{
- "user_email": "name@example.woo.com",
+ "user_email": "name@example.woo.com"
}'
```
From c50324f1d6898398ff6eab4224cde12fcb54afe2 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Thu, 7 Dec 2023 14:31:58 +1000
Subject: [PATCH 23/48] Tweak formatting
---
.../source/includes/wp-api-v3/deposits.md | 22 +++++++++----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 62b4b008f13..0f93847afa3 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -257,7 +257,7 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/overview \
Fetch a list of deposits.
-_Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filter parameter._
+Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filter parameter.
### HTTP request
@@ -279,8 +279,8 @@ _Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a fil
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
-- `status_is_not` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
+- `status_is` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
+- `status_is_not` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
- `direction` _string_
- `page` _integer_
- `pagesize` _integer_
@@ -292,7 +292,7 @@ _Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a fil
- `date` _int_ - The date the deposit was paid in unix timestamp format.
- `type` _string_ - The type of deposit. `deposit` `withdrawal`
- `amount` _int_ - The amount of the deposit.
- - `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
+ - `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
- `bankAccount` _string_ - The bank account the deposit was paid to.
- `currency` _string_ - The currency of the deposit. E.g. `eur`
- `automatic` _bool_ - Whether the deposit was paid automatically.
@@ -348,7 +348,7 @@ Fetches a summary of deposits matching the query. This includes the total number
Useful in combination with the **List deposits** endpoint to get a summary of deposits matching the query without having to fetch the full list of deposits.
-_Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filter parameter._
+Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filter parameter.
### HTTP request
@@ -366,8 +366,8 @@ _Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a fil
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
-- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
+- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
+- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
### Returns
@@ -413,7 +413,7 @@ _Since `7.0.0`, `estimated` deposits are no longer returned._
- `date` _int_ - The date the deposit was paid in unix timestamp format.
- `type` _string_ - The type of deposit. `deposit` `withdrawal`
- `amount` _int_ - The amount of the deposit.
-- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
+- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
- `bankAccount` _string_ - The bank account the deposit was paid to.
- `currency` _string_ - The currency of the deposit. E.g. `eur`
- `automatic` _bool_ - Whether the deposit was paid automatically.
@@ -476,7 +476,7 @@ curl -X POST 'https://example.com/wp-json/wc/v3/payments/deposits' \
Request a CSV export of deposits matching the query. A link to the exported CSV will be emailed to the provided email address or the account's primary email address if no email address is provided.
-_Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filter parameter._
+Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filter parameter.
### HTTP request
@@ -498,8 +498,8 @@ _Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a fil
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
-- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ **deprecated since `7.0.0`**)
+- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
+- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
### Returns
From 55b97a4933e6aaa217f9d2fa3f7c326105c1903a Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Thu, 7 Dec 2023 14:33:06 +1000
Subject: [PATCH 24/48] Update CSV export deprecation comment
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 0f93847afa3..63d7fabb2db 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -476,7 +476,7 @@ curl -X POST 'https://example.com/wp-json/wc/v3/payments/deposits' \
Request a CSV export of deposits matching the query. A link to the exported CSV will be emailed to the provided email address or the account's primary email address if no email address is provided.
-Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filter parameter.
+Since `7.0.0`, `estimated` deposits are no longer included in the CSV export or accepted as a filter parameter.
### HTTP request
From dc5eaf52d197034732d84565593c62a8aece64b3 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Thu, 7 Dec 2023 14:43:42 +1000
Subject: [PATCH 25/48] Add changelog entry
---
.../fix-7847-update-deposits-api-docs-estimated-deposits-rm | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 changelog/fix-7847-update-deposits-api-docs-estimated-deposits-rm
diff --git a/changelog/fix-7847-update-deposits-api-docs-estimated-deposits-rm b/changelog/fix-7847-update-deposits-api-docs-estimated-deposits-rm
new file mode 100644
index 00000000000..cd0f0e04d8d
--- /dev/null
+++ b/changelog/fix-7847-update-deposits-api-docs-estimated-deposits-rm
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Update REST API documentation for deposits endpoints with changes to estimated and instant deposits
From 02fc498bf99abd3eda3236f9813c788a0b399ff2 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Thu, 7 Dec 2023 15:00:06 +1000
Subject: [PATCH 26/48] Update `transaction_ids` to show `undefined`/no longer
present
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 63d7fabb2db..c7a073e2be7 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -37,7 +37,7 @@ Fetch an overview of account deposits for all deposit currencies. This includes
- `fee` _int_ - The fee amount of the balance.
- `fee_percentage` _int_ - The fee percentage of the balance.
- `net` _int_ - The net amount of the balance.
- - ~~`transaction_ids`~~ _array_ - **Deprecated since `7.0.0`, now returns an empty array.** The list of transaction IDs that make up the balance.
+ - ~~`transaction_ids`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
- `account` _object_
- `deposits_enabled` _bool_ - Whether deposits are enabled for the account.
- `deposits_blocked` _bool_ - Whether deposits are blocked for the account.
@@ -130,8 +130,7 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/overview-all \
"currency": "usd",
"fee": 185,
"fee_percentage": 1.5,
- "net": 0,
- "transaction_ids": []
+ "net": 0
}
]
},
@@ -181,7 +180,7 @@ Fetch an overview of account deposits for a single deposit currency. This includ
- `fee` _int_ - The fee amount of the balance.
- `fee_percentage` _int_ - The fee percentage of the balance.
- `net` _int_ - The net amount of the balance.
- - ~~`transaction_ids`~~ _array_ - **Deprecated since `7.0.0`, now returns an empty array.** The list of transaction IDs that make up the balance.
+ - ~~`transaction_ids`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
- `account` _object_
- `deposits_disabled` _bool_ - Whether deposits are enabled for the account.
- `deposits_blocked` _bool_ - Whether deposits are blocked for the account.
@@ -237,8 +236,7 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/overview \
"currency": "usd",
"fee": 0,
"fee_percentage": 1.5,
- "net": 0,
- "transaction_ids": []
+ "net": 0
},
"account": {
"deposits_disabled": false,
From dac0ba76d3473a46fb632e4f5fe77eda8741da17 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Thu, 7 Dec 2023 15:19:38 +1000
Subject: [PATCH 27/48] Add not found response for GET `/deposits/id`
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index bd042579f62..b7a3fea5014 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -458,6 +458,10 @@ Fetches a deposit by ID.
### Returns
+If no deposit is found for the provided ID, the response will be an empty array.
+
+If a deposit is found for the provided ID, the response will include the following properties:
+
- `id` _string_ - The deposit ID.
- `date` _int_ - The date the deposit was paid in unix timestamp format.
- `type` _string_ - The type of deposit. `deposit` `withdrawal`
From c4f4244c481742757f4572d516a707a7f9b2fecc Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 12:40:11 +1000
Subject: [PATCH 28/48] No longer return `next_scheduled`
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 38088724adc..7a520692c5f 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -19,7 +19,7 @@ Fetch an overview of account deposits for all deposit currencies. This includes
- `deposit` _object_
- `last_paid` _array_ - The last deposit that has been paid for each deposit currency.
- - ~~`next_scheduled`~~ _array_ - **Deprecated since `7.0.0`, now returns an empty array.** The next scheduled deposit for each deposit currency.
+ - ~~`next_scheduled`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
- `last_manual_deposits` _array_ - Manual deposits that have been paid in the last 24 hours.
- `balance` _object_
- `pending` _array_ - The pending balance for each deposit currency.
@@ -86,7 +86,6 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/overview-all \
"created": 1701302400
}
],
- "next_scheduled": [],
"last_manual_deposits": []
},
"balance": {
From 1a27029b197e9e8deb5c64f6db99df7cdb677def Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 12:41:02 +1000
Subject: [PATCH 29/48] No longer return `next_deposit`
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 7a520692c5f..d2354ddcb66 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -162,7 +162,7 @@ Fetch an overview of account deposits for a single deposit currency. This includ
### Returns
- `last_deposit` _object_ | _null_- The last deposit that has been paid for the deposit currency.
-- ~~`next_deposit`~~ _object_ | _null_ - **Deprecated since `7.0.0`, now returns _null_** - The next scheduled deposit for the deposit currency.
+- ~~`next_deposit`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
- `balance` _object_
- `pending` _object_ - The pending balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
@@ -212,7 +212,6 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/overview \
"fee_percentage": 0,
"created": 1701648000
},
- "next_deposit": null,
"balance": {
"available": {
"amount": 573480,
From 94551834726f9e803aeb4b2eb316f4851185f620 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 12:42:46 +1000
Subject: [PATCH 30/48] Show `404` response if deposit not found
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index d2354ddcb66..b66cb32d049 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -392,7 +392,7 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/summary \
Fetches a deposit by ID.
-_Since `7.0.0`, `estimated` deposits are no longer returned._
+_Since `7.0.0`, `estimated` deposits are no longer returned and will return a `404` status code._
### HTTP request
@@ -405,7 +405,7 @@ _Since `7.0.0`, `estimated` deposits are no longer returned._
### Returns
-If no deposit is found for the provided ID, the response will be an empty array.
+If no deposit is found for the provided ID, the response will return a `404` status code.
If a deposit is found for the provided ID, the response will include the following properties:
From 38daf7dca4aa2076603d1401f1ad9f2e8bc1cd8d Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 15:39:06 +1000
Subject: [PATCH 31/48] Add Deposit object and update deposit overview
---
.../source/includes/wp-api-v3/deposits.md | 22 ++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index b7a3fea5014..10939e85157 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -2,6 +2,22 @@
The Deposits API endpoints provide access to an account's deposits data, including an overview of account balances, deposit schedule and deposit history.
+## Deposit object
+
+### Properties
+
+- `id` _string_ - The deposit ID.
+- `date` _int_ - The arrival date of the deposit in unix timestamp milliseconds.
+- `type` _string_ - The type of deposit. `deposit` `withdrawal`
+- `amount` _int_ - The amount of the deposit.
+- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` `estimated`
+- `bankAccount` _string_ - The bank account the deposit was/will be paid to.
+- `currency` _string_ - The currency of the deposit. E.g. `eur`
+- `automatic` _bool_ - Returns `true` if the payout is created by an automated schedule and `false` if it’s requested manually.
+- `fee` _int_ - The fee amount of the deposit.
+- `fee_percentage` _int_ - The fee percentage of the deposit.
+- `created` _int_ - The arrival date of the deposit in unix timestamp seconds.
+
## Get deposits overview for all account deposit currencies
Fetch an overview of account deposits for all deposit currencies. This includes details for the last paid deposit, next scheduled deposit, and last manual deposits.
@@ -18,9 +34,9 @@ Fetch an overview of account deposits for all deposit currencies. This includes
### Returns
- `deposit` _object_
- - `last_paid` _array_ - The last deposit that has been paid for each deposit currency.
- - `next_scheduled` _array_ - The next scheduled deposit for each deposit currency.
- - `last_manual_deposits` _array_ - Manual deposits that have been paid in the last 24 hours.
+ - `last_paid` _array_ of [**Deposit**](#deposit-object) - The last deposit that has been paid for each deposit currency.
+ - `next_scheduled` _array_ of [**Deposit**](#deposit-object) - The next scheduled deposit for each deposit currency.
+ - `last_manual_deposits` _array_ of [**Deposit**](#deposit-object) - Manual deposits that have been paid in the last 24 hours.
- `balance` _object_
- `pending` _array_ - The pending balance for each deposit currency.
- `amount` _int_ - The amount of the balance.
From d633b2d08ab4e4105a95df7865fc8a0db487276f Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 15:40:34 +1000
Subject: [PATCH 32/48] Update deposit return types in `deposits/overview`
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 10939e85157..51569f5bf73 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -209,8 +209,8 @@ Fetch an overview of account deposits for a single deposit currency. This includ
### Returns
-- `last_deposit` _object_ | _null_- The last deposit that has been paid for the deposit currency.
-- `next_deposit` _object_ | _null_ - The next scheduled deposit for the deposit currency.
+- `last_deposit` _object_ [**Deposit**](#deposit-object) | _null_- The last deposit that has been paid for the deposit currency.
+- `next_deposit` _object_ [**Deposit**](#deposit-object) | _null_ - The next scheduled deposit for the deposit currency.
- `balance` _object_
- `pending` _object_ - The pending balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
From e3f1c7bb634b42cb071f65794fbdc99561836bf9 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 15:42:24 +1000
Subject: [PATCH 33/48] Add deposit object example
---
.../source/includes/wp-api-v3/deposits.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 51569f5bf73..e7c41a012c3 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -4,6 +4,22 @@ The Deposits API endpoints provide access to an account's deposits data, includi
## Deposit object
+```json
+{
+ "id": "po_1OJ466CBu6Jj8nBr38JRxdNE",
+ "date": 1701648000000,
+ "type": "deposit",
+ "amount": 802872,
+ "status": "paid",
+ "bankAccount": "STRIPE TEST BANK •••• 3000 (EUR)",
+ "currency": "eur",
+ "automatic": true,
+ "fee": 0,
+ "fee_percentage": 0,
+ "created": 1701648000
+}
+```
+
### Properties
- `id` _string_ - The deposit ID.
From fd2924c224b55f04e7c5091e5ca3aa42a060b2e2 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 15:44:05 +1000
Subject: [PATCH 34/48] Use deposit object return type in list deposits
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index e7c41a012c3..a57ec56c7fe 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -359,18 +359,7 @@ Fetch a list of deposits.
### Returns
-- `data` _array_ - List of deposit objects.
- - `id` _string_ - The deposit ID.
- - `date` _int_ - The date the deposit was paid in unix timestamp format.
- - `type` _string_ - The type of deposit. `deposit` `withdrawal`
- - `amount` _int_ - The amount of the deposit.
- - `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` `estimated`
- - `bankAccount` _string_ - The bank account the deposit was paid to.
- - `currency` _string_ - The currency of the deposit. E.g. `eur`
- - `automatic` _bool_ - Whether the deposit was paid automatically.
- - `fee` _int_ - The fee amount of the deposit.
- - `fee_percentage` _int_ - The fee percentage of the deposit.
- - `created` _int_ - The date the deposit was created in unix timestamp format.
+- `data` _array_ of [**Deposit**](#deposit-object) - The list of deposits matching the query.
- `total_count` _int_ - The total number of deposits matching the query.
```shell
From 8d9a3b5e01e4dd243a75a533dc6ff5fa076c0880 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 15:45:25 +1000
Subject: [PATCH 35/48] Use deposit object return type in GET single deposit
---
.../source/includes/wp-api-v3/deposits.md | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index a57ec56c7fe..b0fae8bfb8d 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -479,21 +479,9 @@ Fetches a deposit by ID.
### Returns
-If no deposit is found for the provided ID, the response will be an empty array.
-
-If a deposit is found for the provided ID, the response will include the following properties:
+If a deposit is found for the provided ID, the response will return a [**Deposit**](#deposit-object) object.
-- `id` _string_ - The deposit ID.
-- `date` _int_ - The date the deposit was paid in unix timestamp format.
-- `type` _string_ - The type of deposit. `deposit` `withdrawal`
-- `amount` _int_ - The amount of the deposit.
-- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` `estimated`
-- `bankAccount` _string_ - The bank account the deposit was paid to.
-- `currency` _string_ - The currency of the deposit. E.g. `eur`
-- `automatic` _bool_ - Whether the deposit was paid automatically.
-- `fee` _int_ - The fee amount of the deposit.
-- `fee_percentage` _int_ - The fee percentage of the deposit.
-- `created` _int_ - The date the deposit was created in unix timestamp format.
+If no deposit is found for the provided ID, the response will be an empty array.
```shell
curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/po_123abc \
From 64648dc111bd559031b687325e61ea3b6229f373 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 15:50:46 +1000
Subject: [PATCH 36/48] Update balance `source_types` response description
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index b0fae8bfb8d..f075242ea5f 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -57,12 +57,12 @@ Fetch an overview of account deposits for all deposit currencies. This includes
- `pending` _array_ - The pending balance for each deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- - `source_types` _object_ - The amount of the balance from each source type, e.g. `card` or `financing`.
+ - `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- `deposits_count` _int_ - The number of deposits that make up the balance.
- `available` _array_ - The available balance for each deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- - `source_types` _object_ - The amount of the balance from each source type, e.g. `card` or `financing`.
+ - `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- `instant` _array_ - The instant balance for each deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
@@ -231,12 +231,12 @@ Fetch an overview of account deposits for a single deposit currency. This includ
- `pending` _object_ - The pending balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- - `source_types` _object_ - The amount of the balance from each source type, e.g. `card` or `financing`.
+ - `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- `deposits_count` _int_ - The number of deposits that make up the balance.
- `available` _object_ - The available balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- - `source_types` _object_ - The amount of the balance from each source type, e.g. `card` or `financing`.
+ - `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- `instant_balance` _object_ | _null_ - The instant balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
From 61e29100380d5efd056872942984fabf986e9d08 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 16:12:24 +1000
Subject: [PATCH 37/48] Deprecate `estimated` status from Deposit Object
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 3ee34d4021b..b0cbc78c15c 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -26,7 +26,7 @@ The Deposits API endpoints provide access to an account's deposits data, includi
- `date` _int_ - The arrival date of the deposit in unix timestamp milliseconds.
- `type` _string_ - The type of deposit. `deposit` `withdrawal`
- `amount` _int_ - The amount of the deposit.
-- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` `estimated`
+- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
- `bankAccount` _string_ - The bank account the deposit was/will be paid to.
- `currency` _string_ - The currency of the deposit. E.g. `eur`
- `automatic` _bool_ - Returns `true` if the payout is created by an automated schedule and `false` if it’s requested manually.
From 4e252208b7996daeca56e48bffc0aae559db72d0 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 16:13:28 +1000
Subject: [PATCH 38/48] Deprecated `balance.deposits_count`
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index b0cbc78c15c..71b41671a5b 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -58,7 +58,7 @@ Fetch an overview of account deposits for all deposit currencies. This includes
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- - `deposits_count` _int_ - The number of deposits that make up the balance.
+ - ~~`deposits_count`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
- `available` _array_ - The available balance for each deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
@@ -127,16 +127,14 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/overview-all \
"currency": "eur",
"source_types": {
"card": -114696
- },
- "deposits_count": 1
+ }
},
{
"amount": 707676,
"currency": "usd",
"source_types": {
"card": 707676
- },
- "deposits_count": 2
+ }
}
],
"available": [
@@ -200,7 +198,7 @@ Fetch an overview of account deposits for a single deposit currency. This includ
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- - `deposits_count` _int_ - The number of deposits that make up the balance.
+ - ~~`deposits_count`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
- `available` _object_ - The available balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
@@ -257,8 +255,7 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/overview \
"currency": "eur",
"source_types": {
"card": -114696
- },
- "deposits_count": 1
+ }
}
},
"instant_balance": {
From 08b4515a7bcc3d124dbb203d37fdc26a967e7ae7 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Fri, 8 Dec 2023 16:16:14 +1000
Subject: [PATCH 39/48] Tweak formatting
---
.../rest-api/source/includes/wp-api-v3/deposits.md | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 71b41671a5b..ff43d266cc6 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -51,14 +51,14 @@ Fetch an overview of account deposits for all deposit currencies. This includes
- `deposit` _object_
- `last_paid` _array_ of [**Deposit**](#deposit-object) - The last deposit that has been paid for each deposit currency.
- - ~~`next_scheduled`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
+ - ~~`next_scheduled`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
- `last_manual_deposits` _array_ of [**Deposit**](#deposit-object) - Manual deposits that have been paid in the last 24 hours.
- `balance` _object_
- `pending` _array_ - The pending balance for each deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- - ~~`deposits_count`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
+ - ~~`deposits_count`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
- `available` _array_ - The available balance for each deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
@@ -69,7 +69,7 @@ Fetch an overview of account deposits for all deposit currencies. This includes
- `fee` _int_ - The fee amount of the balance.
- `fee_percentage` _int_ - The fee percentage of the balance.
- `net` _int_ - The net amount of the balance.
- - ~~`transaction_ids`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
+ - ~~`transaction_ids`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
- `account` _object_
- `deposits_enabled` _bool_ - Whether deposits are enabled for the account.
- `deposits_blocked` _bool_ - Whether deposits are blocked for the account.
@@ -192,13 +192,13 @@ Fetch an overview of account deposits for a single deposit currency. This includ
### Returns
- `last_deposit` _object_ [**Deposit**](#deposit-object) | _null_- The last deposit that has been paid for the deposit currency.
-- ~~`next_deposit`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
+- ~~`next_deposit`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
- `balance` _object_
- `pending` _object_ - The pending balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- - ~~`deposits_count`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
+ - ~~`deposits_count`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
- `available` _object_ - The available balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
@@ -209,7 +209,7 @@ Fetch an overview of account deposits for a single deposit currency. This includ
- `fee` _int_ - The fee amount of the balance.
- `fee_percentage` _int_ - The fee percentage of the balance.
- `net` _int_ - The net amount of the balance.
- - ~~`transaction_ids`~~ _undefined_ - **Deprecated since `7.0.0`, no longer included in response.**
+ - ~~`transaction_ids`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
- `account` _object_
- `deposits_disabled` _bool_ - Whether deposits are enabled for the account.
- `deposits_blocked` _bool_ - Whether deposits are blocked for the account.
@@ -467,7 +467,7 @@ Submit an instant deposit for a list of transactions. Only for eligible accounts
- `type`: _string_ - The type of deposit. `instant`
- `currency`: _string_ - The currency of the balance to deposit. E.g. `usd`
-- ~~`transaction_ids`~~: _array_ - **Deprecated since `7.0.0`, use `currency` instead.** The list of transaction IDs to deposit.
+- ~~`transaction_ids`~~: _array_ - Deprecated since `7.0.0`, use `currency` instead. The list of transaction IDs to deposit.
```shell
curl -X POST 'https://example.com/wp-json/wc/v3/payments/deposits' \
From dc9227bd9c37309381f3bce9c3eda81fb3b70fcb Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Tue, 9 Jan 2024 09:59:39 +1000
Subject: [PATCH 40/48] =?UTF-8?q?Change=20est=20deposit=20deprecation=20ve?=
=?UTF-8?q?rsion=207.0.0=20=E2=86=92=207.1.0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../source/includes/wp-api-v3/deposits.md | 36 +++++++++----------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index ff43d266cc6..63abb03d4c2 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -26,7 +26,7 @@ The Deposits API endpoints provide access to an account's deposits data, includi
- `date` _int_ - The arrival date of the deposit in unix timestamp milliseconds.
- `type` _string_ - The type of deposit. `deposit` `withdrawal`
- `amount` _int_ - The amount of the deposit.
-- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
+- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
- `bankAccount` _string_ - The bank account the deposit was/will be paid to.
- `currency` _string_ - The currency of the deposit. E.g. `eur`
- `automatic` _bool_ - Returns `true` if the payout is created by an automated schedule and `false` if it’s requested manually.
@@ -51,14 +51,14 @@ Fetch an overview of account deposits for all deposit currencies. This includes
- `deposit` _object_
- `last_paid` _array_ of [**Deposit**](#deposit-object) - The last deposit that has been paid for each deposit currency.
- - ~~`next_scheduled`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
+ - ~~`next_scheduled`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `last_manual_deposits` _array_ of [**Deposit**](#deposit-object) - Manual deposits that have been paid in the last 24 hours.
- `balance` _object_
- `pending` _array_ - The pending balance for each deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- - ~~`deposits_count`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
+ - ~~`deposits_count`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `available` _array_ - The available balance for each deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
@@ -69,7 +69,7 @@ Fetch an overview of account deposits for all deposit currencies. This includes
- `fee` _int_ - The fee amount of the balance.
- `fee_percentage` _int_ - The fee percentage of the balance.
- `net` _int_ - The net amount of the balance.
- - ~~`transaction_ids`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
+ - ~~`transaction_ids`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `account` _object_
- `deposits_enabled` _bool_ - Whether deposits are enabled for the account.
- `deposits_blocked` _bool_ - Whether deposits are blocked for the account.
@@ -192,13 +192,13 @@ Fetch an overview of account deposits for a single deposit currency. This includ
### Returns
- `last_deposit` _object_ [**Deposit**](#deposit-object) | _null_- The last deposit that has been paid for the deposit currency.
-- ~~`next_deposit`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
+- ~~`next_deposit`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `balance` _object_
- `pending` _object_ - The pending balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- - ~~`deposits_count`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
+ - ~~`deposits_count`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `available` _object_ - The available balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
@@ -209,7 +209,7 @@ Fetch an overview of account deposits for a single deposit currency. This includ
- `fee` _int_ - The fee amount of the balance.
- `fee_percentage` _int_ - The fee percentage of the balance.
- `net` _int_ - The net amount of the balance.
- - ~~`transaction_ids`~~ _undefined_ - Deprecated since `7.0.0`, no longer included in response.
+ - ~~`transaction_ids`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `account` _object_
- `deposits_disabled` _bool_ - Whether deposits are enabled for the account.
- `deposits_blocked` _bool_ - Whether deposits are blocked for the account.
@@ -282,7 +282,7 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/overview \
Fetch a list of deposits.
-Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filter parameter.
+Since `7.1.0`, `estimated` deposits are no longer returned or accepted as a filter parameter.
### HTTP request
@@ -304,8 +304,8 @@ Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filt
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
-- `status_is_not` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
+- `status_is` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
+- `status_is_not` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
- `direction` _string_
- `page` _integer_
- `pagesize` _integer_
@@ -362,7 +362,7 @@ Fetches a summary of deposits matching the query. This includes the total number
Useful in combination with the **List deposits** endpoint to get a summary of deposits matching the query without having to fetch the full list of deposits.
-Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filter parameter.
+Since `7.1.0`, `estimated` deposits are no longer returned or accepted as a filter parameter.
### HTTP request
@@ -380,8 +380,8 @@ Since `7.0.0`, `estimated` deposits are no longer returned or accepted as a filt
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
-- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
+- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
+- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
### Returns
@@ -410,7 +410,7 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/summary \
Fetches a deposit by ID.
-_Since `7.0.0`, `estimated` deposits are no longer returned and will return a `404` status code._
+_Since `7.1.0`, `estimated` deposits are no longer returned and will return a `404` status code._
### HTTP request
@@ -467,7 +467,7 @@ Submit an instant deposit for a list of transactions. Only for eligible accounts
- `type`: _string_ - The type of deposit. `instant`
- `currency`: _string_ - The currency of the balance to deposit. E.g. `usd`
-- ~~`transaction_ids`~~: _array_ - Deprecated since `7.0.0`, use `currency` instead. The list of transaction IDs to deposit.
+- ~~`transaction_ids`~~: _array_ - Deprecated since `7.1.0`, use `currency` instead. The list of transaction IDs to deposit.
```shell
curl -X POST 'https://example.com/wp-json/wc/v3/payments/deposits' \
@@ -482,7 +482,7 @@ curl -X POST 'https://example.com/wp-json/wc/v3/payments/deposits' \
Request a CSV export of deposits matching the query. A link to the exported CSV will be emailed to the provided email address or the account's primary email address if no email address is provided.
-Since `7.0.0`, `estimated` deposits are no longer included in the CSV export or accepted as a filter parameter.
+Since `7.1.0`, `estimated` deposits are no longer included in the CSV export or accepted as a filter parameter.
### HTTP request
@@ -504,8 +504,8 @@ Since `7.0.0`, `estimated` deposits are no longer included in the CSV export or
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
-- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.0.0`)
+- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
+- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
### Returns
From 4e44254b66c5a8a509c6cd8c42bc5d82f097aa52 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Tue, 23 Jan 2024 11:34:07 +1000
Subject: [PATCH 41/48] Remove deposit status `estimated` value
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 63abb03d4c2..82cf0e39198 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -26,7 +26,7 @@ The Deposits API endpoints provide access to an account's deposits data, includi
- `date` _int_ - The arrival date of the deposit in unix timestamp milliseconds.
- `type` _string_ - The type of deposit. `deposit` `withdrawal`
- `amount` _int_ - The amount of the deposit.
-- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
+- `status` _string_ - The status of the deposit. `paid` `pending` `in_transit` `canceled` `failed`
- `bankAccount` _string_ - The bank account the deposit was/will be paid to.
- `currency` _string_ - The currency of the deposit. E.g. `eur`
- `automatic` _bool_ - Returns `true` if the payout is created by an automated schedule and `false` if it’s requested manually.
From 0c8f6f3ad49e4cda5d74d6694be4545248cb3b55 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Tue, 23 Jan 2024 11:36:37 +1000
Subject: [PATCH 42/48] Remove deprecated overview-all fields
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 3 ---
1 file changed, 3 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 82cf0e39198..527069ecb1b 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -51,14 +51,12 @@ Fetch an overview of account deposits for all deposit currencies. This includes
- `deposit` _object_
- `last_paid` _array_ of [**Deposit**](#deposit-object) - The last deposit that has been paid for each deposit currency.
- - ~~`next_scheduled`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `last_manual_deposits` _array_ of [**Deposit**](#deposit-object) - Manual deposits that have been paid in the last 24 hours.
- `balance` _object_
- `pending` _array_ - The pending balance for each deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- - ~~`deposits_count`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `available` _array_ - The available balance for each deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
@@ -69,7 +67,6 @@ Fetch an overview of account deposits for all deposit currencies. This includes
- `fee` _int_ - The fee amount of the balance.
- `fee_percentage` _int_ - The fee percentage of the balance.
- `net` _int_ - The net amount of the balance.
- - ~~`transaction_ids`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `account` _object_
- `deposits_enabled` _bool_ - Whether deposits are enabled for the account.
- `deposits_blocked` _bool_ - Whether deposits are blocked for the account.
From 1cc7a42bcac46f1d631fa82e182d204fe7ac93d3 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Tue, 23 Jan 2024 11:37:25 +1000
Subject: [PATCH 43/48] Remove deprecated overview fields
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 3 ---
1 file changed, 3 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 527069ecb1b..2af0d41d4d8 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -189,13 +189,11 @@ Fetch an overview of account deposits for a single deposit currency. This includ
### Returns
- `last_deposit` _object_ [**Deposit**](#deposit-object) | _null_- The last deposit that has been paid for the deposit currency.
-- ~~`next_deposit`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `balance` _object_
- `pending` _object_ - The pending balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
- `source_types` _object_ | _null_ - The amount of the balance from each source type, e.g. `{ "card": 12345 }`
- - ~~`deposits_count`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `available` _object_ - The available balance for the deposit currency.
- `amount` _int_ - The amount of the balance.
- `currency` _string_ - The currency of the balance. E.g. `usd`.
@@ -206,7 +204,6 @@ Fetch an overview of account deposits for a single deposit currency. This includ
- `fee` _int_ - The fee amount of the balance.
- `fee_percentage` _int_ - The fee percentage of the balance.
- `net` _int_ - The net amount of the balance.
- - ~~`transaction_ids`~~ _undefined_ - Deprecated since `7.1.0`, no longer included in response.
- `account` _object_
- `deposits_disabled` _bool_ - Whether deposits are enabled for the account.
- `deposits_blocked` _bool_ - Whether deposits are blocked for the account.
From 96f48c0a65deed44f5bc61554da11e4a31e357d0 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Tue, 23 Jan 2024 11:38:28 +1000
Subject: [PATCH 44/48] Remove deprecated deposit list values
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index 2af0d41d4d8..a647f68d583 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -276,8 +276,6 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/overview \
Fetch a list of deposits.
-Since `7.1.0`, `estimated` deposits are no longer returned or accepted as a filter parameter.
-
### HTTP request
@@ -298,8 +296,8 @@ Since `7.1.0`, `estimated` deposits are no longer returned or accepted as a filt
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
-- `status_is_not` _string_ `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
+- `status_is` _string_ `paid` `pending` `in_transit` `canceled` `failed`
+- `status_is_not` _string_ `paid` `pending` `in_transit` `canceled` `failed`
- `direction` _string_
- `page` _integer_
- `pagesize` _integer_
From 3d6cb986e7ec6e70089ccccd47264d81cb2f08f2 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Tue, 23 Jan 2024 11:39:27 +1000
Subject: [PATCH 45/48] Remove deprecated deposit summary values
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index a647f68d583..e9919ec4233 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -354,8 +354,6 @@ Fetches a summary of deposits matching the query. This includes the total number
Useful in combination with the **List deposits** endpoint to get a summary of deposits matching the query without having to fetch the full list of deposits.
-Since `7.1.0`, `estimated` deposits are no longer returned or accepted as a filter parameter.
-
### HTTP request
@@ -372,8 +370,8 @@ Since `7.1.0`, `estimated` deposits are no longer returned or accepted as a filt
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
-- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
+- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed`
+- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed`
### Returns
From 0370a3a0357970b7142aea26b3066aed6fc461a9 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Tue, 23 Jan 2024 11:40:53 +1000
Subject: [PATCH 46/48] Update get deposit description
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index e9919ec4233..f551feaa2b3 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -400,8 +400,6 @@ curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/summary \
Fetches a deposit by ID.
-_Since `7.1.0`, `estimated` deposits are no longer returned and will return a `404` status code._
-
### HTTP request
@@ -415,7 +413,7 @@ _Since `7.1.0`, `estimated` deposits are no longer returned and will return a `4
If a deposit is found for the provided ID, the response will return a [**Deposit**](#deposit-object) object.
-If no deposit is found for the provided ID, the response will return a `404` status code.
+If no deposit is found for the provided ID, the response will return a `500` status code.
```shell
curl -X GET https://example.com/wp-json/wc/v3/payments/deposits/po_123abc \
From 9d443778c42d47d14576235904a719ccc9686441 Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Tue, 23 Jan 2024 11:41:39 +1000
Subject: [PATCH 47/48] Remove deprecated POST instant deposit field
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index f551feaa2b3..c85c687f3d6 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -455,7 +455,6 @@ Submit an instant deposit for a list of transactions. Only for eligible accounts
- `type`: _string_ - The type of deposit. `instant`
- `currency`: _string_ - The currency of the balance to deposit. E.g. `usd`
-- ~~`transaction_ids`~~: _array_ - Deprecated since `7.1.0`, use `currency` instead. The list of transaction IDs to deposit.
```shell
curl -X POST 'https://example.com/wp-json/wc/v3/payments/deposits' \
From 809796e9daa1fdcedc57b7c9fe82bd7ae1d724af Mon Sep 17 00:00:00 2001
From: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Date: Tue, 23 Jan 2024 11:42:26 +1000
Subject: [PATCH 48/48] Remove deprecated POST deposit download values
---
docs/rest-api/source/includes/wp-api-v3/deposits.md | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/docs/rest-api/source/includes/wp-api-v3/deposits.md b/docs/rest-api/source/includes/wp-api-v3/deposits.md
index c85c687f3d6..4d1d8a07607 100644
--- a/docs/rest-api/source/includes/wp-api-v3/deposits.md
+++ b/docs/rest-api/source/includes/wp-api-v3/deposits.md
@@ -469,8 +469,6 @@ curl -X POST 'https://example.com/wp-json/wc/v3/payments/deposits' \
Request a CSV export of deposits matching the query. A link to the exported CSV will be emailed to the provided email address or the account's primary email address if no email address is provided.
-Since `7.1.0`, `estimated` deposits are no longer included in the CSV export or accepted as a filter parameter.
-
### HTTP request
@@ -491,8 +489,8 @@ Since `7.1.0`, `estimated` deposits are no longer included in the CSV export or
- `date_before` _string_
- `date_after` _string_
- `date_between` _array_
-- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
-- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed` (~~`estimated`~~ deprecated since `7.1.0`)
+- `status_is` _string_ - `paid` `pending` `in_transit` `canceled` `failed`
+- `status_is_not` _string_ - `paid` `pending` `in_transit` `canceled` `failed`
### Returns