This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
curl --location -g --request POST '{{subdomain}}/api2/api2/products.json' \
--header 'APIKEY: {{APIKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"Product": {
"staff_id": 1,
"name": "Mock Product",
"description": "This is a mock product description.",
"unit_price": 99.99,
"tax1": 5,
"tax2": 10,
"supplier_id": 100,
"brand": "MockBrand",
"category": "MockCategory",
"tags": "mock, product, example",
"buy_price": 79.99,
"product_code": "MP100",
"track_stock": true,
"stock_balance": 50,
"low_stock_thershold": 5,
"barcode": "1234567890123",
"notes": "Notes for the mock product.",
"status": 1,
"follow_up_status": null,
"updated_price": true,
"average_price": 89.99,
"type": null,
"minimum_price": null,
"profit_margin": null,
"discount": null,
"discount_type": null,
"duration_minutes": 60,
"availabe_online": 1,
"raw_store_id": 200
}
}'
{
"result": "successful",
"code": 202,
"id": "95"
}