api/v1/customer/addresses/create

POST

api/v1/customer/addresses/create

This API method will allow you to create a shipping address for the logged in customer.

Request Parameters

ParameterValue / TypeRequired
is_defaultINTEGERfalse
contact_nameSTRINGfalse
address_line_1STRINGfalse
address_line_2STRINGfalse
citySTRINGfalse
stateSTRINGfalse
zipSTRINGfalse
phoneSTRINGfalse

Sample Response

{
  "status": true,
  "item": {
    "id": "Ol2GJkRbElpEA53xM8B1",
    "customer_id": "LZWBJx0PmYkEwjGdr2vO",
    "is_default": 10,
    "contact_name": "demo name",
    "address_line_1": "address1",
    "address_line_2": "address2",
    "city": "city 1",
    "state": "state 1",
    "zip": 12345,
    "phone": "1111111111",
    "created_at": "2018-09-17 13:30:06",
    "updated_at": "2018-09-17 13:30:06"
  }
}
{
  "status": false,
  "message": "Duplicate record found. Cannot complete request"
}