Create customer
Create a customer with a name and a billing email.
POST https://cotlet.dev/api/v1/acumatica/customers
write Confirm
Creates a customer and returns its customer_id for create_ar_invoice. The call checks the name against existing customers first and stops on an exact match, so you do not get a duplicate. Other customer settings stay at the defaults your Acumatica setup applies. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Customer name. |
| email string | string | Billing email address. |
Request
curl -X POST https://cotlet.dev/api/v1/acumatica/customers \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Doe"}' result = client.call("acumatica", "create_customer", {"name":"Jane Doe"}) const result = await cotlet.call('acumatica', 'create_customer', {"name":"Jane Doe"}); cotlet call acumatica create_customer --data '{"name":"Jane Doe"}' Example response
{
"customer_id": "C000058",
"name": "Pine Corner Bakery",
"status": "Active"
}