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.

OptionAccepted FieldsExplanation
1customer_id or cust_id or id or hased_id or hashed_id or customer_hash or phoneOne 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

NameTypeSampleWhat it gives
customer_id
post
int123Customer id. You may also send cust_id.
hased_id
post
string7bPublic customer hash from links. Aliases: hashed_id, customer_hash.
hashed_id
post
string7bCorrect-spelling alias for hased_id.
customer_hash
post
string7bAlias for hased_id when the UI stores customer hash separately.
phone
post
string0500000000Phone 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.Get

Sample 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"
}