You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
users/me is deprecated and replaced by users/self (iZettle#143)
* Replaced the deprecated `users/me` with `users/self`
* Updated CHANGELOG with the info about users/me deprecation.
* Editorial fixes
* Update CHANGELOG.adoc
Co-authored-by: AndreaFilyo <[email protected]>
Co-authored-by: AndreaFilyo <[email protected]>
* Updated based on Anand's comment
* Clarified how to specify the organization UUID and how to use `self`
Co-authored-by: AndreaFilyo <[email protected]>
**Replaced the deprecated endpoint `users/me` with `users/self`**
14
+
15
+
The following updates were done for the deprecation:
16
+
17
+
- The OAuth API endpoint `users/me` is deprecated and replaced by `users/self`.
18
+
- Until `users/me` is removed, all API requests to it will be redirected to `users/self`.
19
+
- The API documentation is updated to include `users/self` instead of `users/me`.
20
+
21
+
> **Note:** The support for the deprecated `users/me` will continue until further notice. It is recommended to replace `users/me` with `users/self` in your integration as soon as possible.
22
+
====
23
+
10
24
.**November 24, 2021** `Editorial changes`
11
25
[%collapsible]
12
26
====
@@ -29,7 +43,7 @@ The improvements include the following:
29
43
The Password grant OAuth flow has been deprecated and will be removed on 31st January 2022. Please update your Zettle integration to another authentication flow to keep it running. For information about how to update the authentication flow, see xref:oauth-api/zettle-password-grant-migration-guide/zettle-password-grant-migration-guide.md[Zettle Password grant migration guide].
30
44
====
31
45
32
-
.**July 20 2021** `Finance API`
46
+
.**July 20, 2021** `Finance API`
33
47
[%collapsible]
34
48
====
35
49
**Finance API documentation improvements**
@@ -41,7 +55,7 @@ The improvements include the following:
41
55
- Added user guides.
42
56
====
43
57
44
-
.**May 3 2021** `Pusher API`
58
+
.**May 3, 2021** `Pusher API`
45
59
[%collapsible]
46
60
====
47
61
**Pusher API documentation improvements**
@@ -53,7 +67,7 @@ The improvements include the following:
53
67
- Added the user guides and troubleshooting documents.
54
68
====
55
69
56
-
.**October 28 2020** `Editorial changes`
70
+
.**October 28, 2020** `Editorial changes`
57
71
[%collapsible]
58
72
====
59
73
**Applied a Beta label on any mention of API documentation**
@@ -65,7 +79,7 @@ To be transparent and set expectations right, we've applied a Beta label on any
65
79
We are currently working to improve the Zettle Developer Platform, including the API documentation.
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -55,4 +55,4 @@ When contacting the Integrations team, please provide the following information:
55
55
* Information about affected merchants. That includes:
56
56
* Emails of affected merchants.
57
57
* UUIDs and organisation UUIDs of the affected merchants.
58
-
To fetch UUIDs and organisation UUIDs, use the `GET users/me` endpoint of the OAuth API. For more information about using the endpoint, see [Get user info](authorization.md/#get-user-info).
58
+
To fetch UUIDs and organisation UUIDs, use the `GET users/self` endpoint of the OAuth API. For more information about using the endpoint, see [Get user info](authorization.md/#get-user-info).
Copy file name to clipboardexpand all lines: finance-api/api-reference.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ See example [Fetch current balance for a liquid account](#fetch-current-balance-
48
48
49
49
|Name |Type |In |Required/Optional |Description
50
50
|:---- |:---- |:---- |:---- |:----
51
-
|organizationUuid |string |path |required |Unique identifier for your organisation. You can specify the value with one of the following: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li>Get it by using the `users/me` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
51
+
|organizationUuid |string |path |required |Unique identifier for your organisation. You can specify the value with one of the following: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li>Get it by using the `users/self` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
52
52
|accountTypeGroup |string |path |required |The type of a merchant's Zettle account. You can use one of the following account types: <br/><ul><li> `PRELIMINARY` account where transactions are to be confirmed.</li><li> `LIQUID` account where transactions are to be paid out to the merchant.</li></ul>
53
53
|at |string |query |optional |Used to fetch account balance that is available at a UTC time. If it's used, any transaction after that point will be ignored. If it's not used, the balance of all transactions at the current point of time is returned. <br/>You can specify a UTC time in one of the following formats: <br/><ul><li>`YYYY-MM` to specify a month. By default, it specifies the first second of the first day in the month. For example, for `2020-11`, the time will be `2020-11-01T00:00:00`.</li><li>`YYYY-MM-DD` to specify a date. For example, `2020-11-29`.</li><li>`YYYY-MM-DDThh:mm:ss` to specify a time. For example, `2020-11-29T03:10:02`.</li></ul>
54
54
</details>
@@ -93,7 +93,7 @@ See example [Fetch transactions for a liquid account](#fetch-transactions-for-a-
93
93
94
94
|Name |Type |In |Required/Optional |Description
95
95
|:---- |:---- |:---- |:---- |:----
96
-
|organizationUuid |string |path |required |Unique identifier for your organisation. You can specify the value with one of the following: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li>Get it by using the `users/me` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
96
+
|organizationUuid |string |path |required |Unique identifier for your organisation. You can specify the value with one of the following: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li>Get it by using the `users/self` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
97
97
|accountTypeGroup |string |path |required |The type of a merchant's Zettle account. You can use one of the following account types: <br/><ul><li> `PRELIMINARY` account where transactions are to be confirmed.</li><li> `LIQUID` account where transactions are to be paid out to the merchant.</li></ul>
98
98
|start |string |query |required |A start time in UTC (inclusive) from when the transactions will be fetched. You can specify a UTC time in one of the following formats: <br/><ul><li>`YYYY-MM` to specify a month. By default, it specifies the first second of the first day in the month. For example, for `2020-11`, the time will be `2020-11-01T00:00:00`.</li><li>`YYYY-MM-DD` to specify a date. For example, `2020-11-29`.</li><li>`YYYY-MM-DDThh:mm:ss` to specify a time. For example, `2020-11-29T03:10:02`.</li></ul>
99
99
|end |string |query |required |An end time in UTC (exclusive) before when the transactions will be fetched. You can specify a UTC time in one of the following formats: <br/><ul><li>`YYYY-MM` to specify a month. By default, it specifies the first second of the first day in the month. For example, for `2020-11`, the time will be `2020-11-01T00:00:00`.</li><li>`YYYY-MM-DD` to specify a date. For example, `2020-11-29`.</li><li>`YYYY-MM-DDThh:mm:ss` to specify a time. For example, `2020-11-29T03:10:02`.</li></ul>
@@ -177,7 +177,7 @@ See example [Fetch payout information on a specific period](#fetch-payout-inform
177
177
178
178
|Name |Type |In |Required/Optional |Description
179
179
|:---- |:---- |:---- |:---- |:----
180
-
|organizationUuid |string |path |required |Unique identifier for your organisation. You can specify the value with one of the following: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li>Get it by using the `users/me` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
180
+
|organizationUuid |string |path |required |Unique identifier for your organisation. You can specify the value with one of the following: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li>Get it by using the `users/self` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
181
181
|at |string |query |optional |Used to fetch payouts at a certain point in UTC time. If it's used, any transaction after that time will be ignored. If it's not used, the balance of all transactions at the current point of time is returned. <br/>You can specify a UTC time in one of the following formats: <br/><ul><li>`YYYY-MM` to specify a month. For example, `2020-11`. By default, it specifies the first second of the first day in the month.</li><li>`YYYY-MM-DD` to specify a date. For example, `2020-11-29`.</li><li>`YYYY-MM-DDThh:mm:ss` to specify a time. For example, `2020-11-29T03:10:02`.</li></ul>
Copy file name to clipboardexpand all lines: pusher-api/api-reference.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ See example [Create a webhook subscription](#create-a-webhook-subscription).
71
71
72
72
|Name |Type |In |Required/Optional |Description
73
73
|---- |---- |---- |---- |----
74
-
|organizationUuid |string |path |required |Unique identifier for your organization. You can use following options to fill in this value: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li>Get it by using the `users/me` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
74
+
|organizationUuid |string |path |required |Unique identifier for your organization. You can use following options to fill in this value: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li>Get it by using the `users/self` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
75
75
|uuid |string |query |required | Unique identifier for the subscription as UUID version 1.
76
76
|transportName |string |query |required | The message option used by Pusher API. Currently only `WEBHOOK` is supported.
77
77
|eventNames |array |query |required | Event names for events that you want to create subscription for. The events are specified in an array. <br/>If you pass an empty array, you will subscribe to all events that the Pusher API supports. In this case, make sure that you have all the corresponding authorization scopes issued. See [the list of scopes](#supported-events).
@@ -127,7 +127,7 @@ See example [Get webhook subscriptions](#get-webhook-subscriptions).
127
127
128
128
|Name |Type |In |Required/Optional |Description
129
129
|---- |---- |---- |---- |----
130
-
|organizationUuid |string |path |required |Unique identifier for your organization. You can use following options to fill in this value: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li> Get it by using the `users/me` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
130
+
|organizationUuid |string |path |required |Unique identifier for your organization. You can use following options to fill in this value: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li> Get it by using the `users/self` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
131
131
</details>
132
132
133
133
@@ -178,7 +178,7 @@ See example [Update a webhook subscription](#update-a-webhook-subscription).
178
178
179
179
|Name |Type |In |Required/Optional |Description
180
180
|---- |---- |---- |---- |----
181
-
|organizationUuid |string |path |required |Unique identifier for your organization. You can use following options to fill in this value: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li> Get it by using the `users/me` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
181
+
|organizationUuid |string |path |required |Unique identifier for your organization. You can use following options to fill in this value: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li> Get it by using the `users/self` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
182
182
|subscriptionUuid |string |path |required |Unique identifier for an existing subscription as UUID version 1.
183
183
|transportName |string |query |optional | The message option used by the Pusher API. E.g. `WEBHOOK`. You need to specify the same option that you used while creating the subscription.
184
184
|eventNames |array |query |optional | Events that you want to update on the existing subscription. The events are specified in an array.
@@ -225,7 +225,7 @@ See example [Delete a webhook subscription](#delete-a-webhook-subscription).
225
225
226
226
|Name |Type |In |Required/Optional |Description
227
227
|---- |---- |---- |---- |----
228
-
|organizationUuid |string |path |required |Unique identifier for your organization. You can use following options to fill in this value: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li> Get it by using the `users/me` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
228
+
|organizationUuid |string |path |required |Unique identifier for your organization. You can use following options to fill in this value: <br/><ul><li>Use `self` as the value. This will retrieve your organizationUuid from the authentication token in the request.</li><li> Get it by using the `users/self` endpoint of OAuth2 API. For more information, see [OAuth2 API](../authorization.md).</li></ul>
229
229
|subscriptionUuid |string |path |required |Unique identifier for an existing subscription as UUID version 1.
0 commit comments