Skip to content

Latest commit

 

History

History
85 lines (59 loc) · 1.67 KB

customer.md

File metadata and controls

85 lines (59 loc) · 1.67 KB

Customer

Create a new customer.

customerData is an array of customerCustomerEntityToCreate objects.

magento.customer.create({
  customerData: [ val, val, val ]
}, callback);

// or a single cell of customer data

magento.customer.create({
  customerData: val
}, callback);

Delete the required customer.

magento.customer.delete({
  customerId: val
}, callback);

Retrieve information about the specified customer.

magento.customer.info({
  customerId: val,
  attributes: [ val, val, val ]   /* optional */
}, callback);

// or a single attribute

magento.customer.info({
  customerId: val,
  attributes: val   /* optional */
}, callback);

Allows you to retrieve the list of customers.

magento.customer.list({
  filters: [ val, val, val ]
}, callback);

// or a single attribute

magento.customer.list({
  filters: val
}, callback);

Update information about the required customer.

Note that you need to pass only those arguments which you want to be updated.

customerData is an array of customerCustomerEntityToCreate objects.

magento.customer.update({
  customerId:   val,
  customerData: [ val, val, val ]
}, callback);

// or a single attribute

magento.customer.update({
  customerId:   val,
  customerData: val
}, callback);