customer
customer.add
Add customer into store.
post/customer.add.json
Request
- Base URL: https://api.api2cart.com/v1.1
- URL: https://api.api2cart.com/v1.1/customer.add.json
- Auth: API key in header x-api-key and API key in header x-store-key
Request body
Example request
{
"email": "mail@example.com",
"first_name": "John",
"last_name": "Smith",
"password": "fd5gfd5g75fd",
"group": "Register",
"group_ids": "1,2,3",
"status": "disabled",
"created_time": "2014-01-30 15:58:41",
"modified_time": "2014-07-30 15:58:41",
"login": "makaka",
"last_login": "2013-02-26 15:00:00",
"birth_day": "2013-02-26 15:00:00",
"news_letter_subscription": true,
"partner_offers_subscription": true,
"gender": "male",
"website": "http://api2cart.com",
"fax": "54545787",
"company": "Apple",
"phone": "56686868654",
"note": "Customer note",
"country": "US",
"currency_id": "usd",
"vendor_id": "1",
"store_id": "1",
"idempotency_key": "098f6bcd4621d373cade4e832627b4f6",
"address": [
{
"address_book_type": "billing",
"address_book_first_name": "John",
"address_book_last_name": "Smith",
"address_book_company": "Samsung",
"address_book_fax": "5758787",
"address_book_phone": "5758787",
"address_book_phone_mobile": "5758787",
"address_book_website": "http://api2cart.com",
"address_book_address1": "Green str. 35",
"address_book_address2": "Green str. 35",
"address_book_city": "Chicago",
"address_book_country": "US",
"address_book_state": "IL",
"address_book_postcode": "12345",
"address_book_gender": "male",
"address_book_region": "Alabama",
"address_book_default": true,
"address_book_tax_id": "`12345678`",
"address_book_identification_number": "`123-456-7890`",
"address_book_alias": "Address alias"
}
]
}Response
successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.