POST
Customer.Get
Return one customer as JSON by customer id, customer hash, or phone, using the logged-in user visibility rules.
Required Choice
Send at least one complete option from the list below.
| Option | Accepted Fields | Explanation |
|---|---|---|
| 1 | customer_id or cust_id or id or hased_id or hashed_id or customer_hash or phone | One of these values is required to create the record. |
Permissions
- User must be allowed to see this customer.
Action
- Returns one customer record as JSON by id, public customer hash, or phone.
Push Service
No push is sent because this is a read method.
Automation
No automation is run because this is a read method.
Special Instructions
- Send one of customer_id, id, cust_id, hased_id, hashed_id, customer_hash, or phone.
- hased_id is the same customer hash used in public customer links.
Required Parameters
No body parameters are required for this function.
Optional Parameters
| Name | Type | Sample | What it gives |
|---|---|---|---|
customer_idpost | int | 123 | Customer id. You may also send cust_id. |
hased_idpost | string | 7b | Public customer hash from links. Aliases: hashed_id, customer_hash. |
hashed_idpost | string | 7b | Correct-spelling alias for hased_id. |
customer_hashpost | string | 7b | Alias for hased_id when the UI stores customer hash separately. |
phonepost | string | 0500000000 | Phone lookup when customer id is not available. |
Authentication
Send the bearer token returned by Login in the request header.
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/Customer.Get",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": {
"hased_id": "7b"
},
"url_user": "https:\/\/{user}.bull36.com\/app\/Customer.Get",
"url_domain": "https:\/\/{domain}\/app\/Customer.Get"
}Endpoint
POST /app/Customer.Get
POST https://{user}.bull36.com/app/Customer.Get
POST https://{domain}/app/Customer.GetSample Output
{
"success": 1,
"data": {
"id": "123",
"customer_id": "123",
"hased_id": "7b",
"hashed_id": "7b",
"name": "John Demo",
"mobile": "0500000000"
}
}Fail Response
{
"success": 0,
"message": "Customer not found"
}JavaScript Example
const token = 'YOUR TOKEN';
const body = new URLSearchParams({ hased_id: '7b' });
const res = await fetch('/app/Customer.Get', {
method: 'POST',
headers: { Authorization: 'Bearer ' + token },
body
});
const data = await res.json();
console.log(data);Error Example
{
"success": 0,
"message": "Customer not found"
}