Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 1.57 KB

customer_address.md

File metadata and controls

71 lines (50 loc) · 1.57 KB

Customer

Create a new address for the customer.

addressData is an array of customerAddressEntityCreate objects.

magento.customerAddress.create({
  customerId:   val,
  addressData:  [ val, val, val ]
}, callback);

// or a single cell of address data

magento.customerAddress.create({
  customerId:   val,
  addressData:  val
}, callback);

Delete the required customer address.

magento.customerAddress.delete({
  addressId: val
}, callback);

Retrieve information about the required customer address.

magento.customerAddress.info({
  addressId: val
}, callback);

Retrieve the list of customer addresses.

magento.customerAddress.list({
  customerId: val
}, callback);

Update address data of the required customer.

addressData is an array of customerAddressEntityCreate objects.

magento.customerAddress.update({
  addressId:    val,
  addressData:  [ val, val, val ]
}, callback);

// or a single cell of address data

magento.customerAddress.update({
  addressId:    val,
  addressData:  val
}, callback);