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

Parameters: create_customer
NameTypeDescription
name string required string Customer name.
email string string Billing email address.

Request

cURL
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"}'
Python
result = client.call("acumatica", "create_customer", {"name":"Jane Doe"})
Node.js
const result = await cotlet.call('acumatica', 'create_customer', {"name":"Jane Doe"});
CLI
cotlet call acumatica create_customer --data '{"name":"Jane Doe"}'

Example response

JSON

{
  "customer_id": "C000058",
  "name": "Pine Corner Bakery",
  "status": "Active"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.