Get a customer
get_customerFor shop owners: one customer in full: contact, the seller's private note, order count, money spent and owed, first and last order, and their five latest orders. It changes nothing: save_customer does.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer": "<customer>"
},
"name": "get_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer | Yes | The customer: their id (cus_...) or name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| owed | No | ||
| error | No | ||
| spent | No | ||
| orders | No | ||
| choices | No | ||
| outcome | No | ||
| customer | No | ||
| timezone | No | ||
| last_order_at | No | ||
| recent_orders | No | ||
| first_order_at | No |