POST

Products.Get

Return one product by id, including stored category, pricing, stock, SKU, type, suppliers_id as an array (dashboard multi-select), main_image / sub_image paths, and main_image_url / sub_image_url when images exist. Product Type (type) on the row is product, subscription, service, or donation (dashboard Type dropdown).

Permissions

  • User must be logged in with a valid bearer token.
  • Returned or changed records are limited by the user permissions, team access, folder access, and account settings.

Action

  • Returns Products information as JSON for the UI.

Push Service

No push is sent because this function only reads data or returns helper information.

Automation

No automation is run for this function.

Special Instructions

  • Product type (type) values: product = Physical Product; subscription = Subscription; service = Service; donation = Donation.
  • suppliers_id is always returned as an array of string ids (e.g. ["267"]), matching dashboard check_json. Empty / legacy 0 becomes [].
  • main_image is usually a biz1upload/site/... path (same as dashboard). main_image_url is the full files URL.

Required Parameters

NameTypeSampleExplanation
id
post
int123Product id to fetch.

Optional Parameters

No optional body parameters are defined for this function.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Products.Get",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "id": "123"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Products.Get",
    "url_domain": "https:\/\/{domain}\/app\/Products.Get"
}

Endpoint

POST /app/Products.Get
POST https://{user}.bull36.com/app/Products.Get
POST https://{domain}/app/Products.Get

Sample Output

{
    "success": 1,
    "data": {
        "id": "123",
        "product_name": "Membership",
        "type": "product",
        "cat_id": "17963",
        "suppliers_id": [
            "8",
            "12"
        ],
        "price": "99.00",
        "stock": "10",
        "main_image": "biz1upload\/site\/14-ab12cd341712345678.jpg",
        "main_image_url": "https:\/\/files.biz1.co.il\/biz1upload\/site\/14-ab12cd341712345678.jpg"
    }
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams();
// Fill body fields from the Sample Request JSON above.
const res = await fetch('/app/Products.Get', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
const data = await res.json();
console.log(data);

Error Example

{
    "success": 0,
    "message": "Record was not found."
}