Create customer
phppos_create_customerWRITE: create a customer in the store. Store-account balance, credit limit and loyalty points cannot be set here. Needs a Read/Write API key. Retrying creates a duplicate (check phppos_list_customers first). The store's 'new customer' webhook, if configured, fires. POST /customers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | No | Postal code. | |
| city | No | City. | |
| No | Email address. | ||
| state | No | State or region. | |
| country | No | Country. | |
| taxable | No | Whether sales to this customer are taxed. | |
| comments | No | Comments. | |
| address_1 | No | Address line 1. | |
| address_2 | No | Address line 2. | |
| last_name | No | Last name. | |
| first_name | Yes | First name (required by PHP Point of Sale). | |
| company_name | No | Company name. | |
| phone_number | No | Phone number. | |
| account_number | No | Customer account number. | |
| internal_notes | No | Internal notes (not shown to the customer). |