Show
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
GET
{{subdomain}}/api2
Last modified:2025-03-16 17:12:55
Maintainer:Not configured
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '{{subdomain}}/api2/api2/products/{{productId}}' \
--header 'APIKEY: {{APIKEY}}'
Response Response Example
{
"result": "successful",
"code": 200,
"data": {
"Product": {
"id": "95",
"site_id": "2892083",
"staff_id": "-3",
"name": "Mock Product",
"description": "This is a mock product description.",
"unit_price": "99.99",
"default_quantity": null,
"tax1": "5",
"tax2": "10",
"supplier_id": "100",
"brand": "MockBrand",
"category": "MockCategory",
"tags": "mock, product, example",
"buy_price": "79.99",
"product_code": "MP100",
"supplier_code": null,
"track_stock": "1",
"tracking_type": "quantity_only",
"stock_balance": "50",
"low_stock_thershold": "5",
"barcode": "1234567890123",
"notes": "Notes for the mock product.",
"deactivate": "1",
"status": "1",
"created": "2024-06-09 23:37:32",
"modified": "2024-06-09 23:37:32",
"follow_up_status": null,
"updated_price": "1",
"average_price": "79.99",
"type": null,
"raw_store_id": "200",
"class": null,
"extra_details": null,
"minimum_price": null,
"profit_margin": null,
"discount": null,
"discout_type": null,
"duration_minutes": "60",
"availabe_online": "1",
"source_type": null,
"source_id": null,
"branch_id": "1",
"is_featured": "0",
"bundle_type": null,
"item_group_id": null,
"ProductImage": [],
"ProductCategory": [
{
"id": "9",
"name": "MockCategory",
"description": null,
"category_type": "1",
"parent_id": null,
"created": "2024-06-09 23:37:32",
"modified": "2024-06-09 23:37:32",
"image": null,
"mac_address": null,
"branch_id": "1",
"status": "1"
}
],
"ProductImageS3": []
}
}
}
Request
Header Params
APIKEY
stringÂ
required
Example:
{{APIKEY}}