diff options
| author | Pete Woods <pete.woods@canonical.com> | 2016-09-23 10:34:05 +0100 |
|---|---|---|
| committer | Pete Woods <pete.woods@canonical.com> | 2016-09-23 10:34:05 +0100 |
| commit | 104585516c19d1d8a2c72eab9194b99dc527d583 (patch) | |
| tree | c7c4baefa0c0657c23135f0d2fb179c613e9de6c /docs | |
| parent | 1e02e614dbb439a5ff9642df749ecdbe075a6715 (diff) | |
Document the API changes
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/rest.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/rest.md b/docs/rest.md index 0a3a3da048..0b23dd293a 100644 --- a/docs/rest.md +++ b/docs/rest.md @@ -120,6 +120,8 @@ kind | value description `two-factor-failed` | the OTP provided wasn't recognised `login-required` | the requested operation cannot be performed without an authenticated user. This is the kind of any other 401 Unauthorized response. `invalid-auth-data` | the authentication data provided failed to validate (e.g. a malformed email address). The `value` of the error is an object with a key per failed field and a list of the failures on each field. +`tos-not-accepted` | the user has not accepted the store's terms of service. +`no-payment-methods` | the user does not have a payment method registered to complete a purchase. ### Timestamps @@ -603,6 +605,15 @@ Generally the UUID of a background operation you are interested in. } ``` +## /v2/buy/ready + +### GET + +* Description: Determine if the user's account ready to make purchases. +* Access: authenticated +* Operation: sync +* Return: bool true, or error. + ## /v2/buy/methods ### GET |
