Account Management

Account

APIs for retrieving and updating customer account information.

PUT /account

Updates information about customer account.

The customer name cannot be updated. If a different value for name other than null is supplied in the body from what originally exists, an error is returned. The account name is determined by the logged-in user session value of the request.

Parameters

ParameterDescriptionParameter TypeData Type
accountRequest body representing account information to be updatedbodyAccount
bindingResult
bodyBindingResult

Response Message

HTTP Status CodeResponse Model
200If the update to customer account was successful
400

If the provided customer account contains invalid information

401

If authentication failed

404

if the account with given customer name does not exist or issuer of the request is not authorized

default

successful operation

GET /account

Returns customer account information.Returns information about customer account and contact details of currently logged in customer. The customer name is determined by the logged in user session value of the request.

Response Messages

HTTP Status CodeResponse Model
200 If the customer account is returned
401If authentication failed
403

If the issuer of the request is not authorized to view the given customer account

404If the customer account was not found
default

successful operation

Account Features

Provides API to list features available on the account.

GET /features

Returns a list of all features available with a customer account.

Response Messages

HTTP Status CodeResponse Model
200

If the API is successfully executed

401If authentication failed
403

If the issuer of the request is not authorized

404If the given customer account does not exist
default

successful operation