SEOTOASTER 2.0 Documentation: Store API for developers
Class

Api_Store_Customers

class Api_Store_Customers extends Api_Service_Abstract

Customers REST API controller

Methods

JSON getAction()

Get customers data

postAction()

Attaching user group for customers if groupId exist

JSON putAction()

Assign groups for customer Changing customer passwords

JSON deleteAction()

Delete customer

Details

at line 44
public JSON getAction()

Get customers data

Resourse:
: /api/store/customers/id/:id

HttpMethod:
: GET

## Parameters:
type (type string)
: Type of data. Possible values: country, state

pairs (type sting)
: If given data will be returned as key-value array

Return Value

JSON List of customers

at line 82
public postAction()

Attaching user group for customers if groupId exist

at line 138
public JSON putAction()

Assign groups for customer Changing customer passwords

Resourse:
: /api/store/customers/

HttpMethod:
: PUT

## Parameters:
customerIds (type string)
: List of customer IDs

groupId (type integer)
: group Id

allGroups (type integer)
: all Groups

changePassword (type integer)
: change Password flag

Return Value

JSON Result of operations

at line 201
public JSON deleteAction()

Delete customer

Resourse:
: /api/store/customers/

HttpMethod:
: DELETE

## Parameters:
ids (type string)
: List of customer IDs to delete

Return Value

JSON Result of operations