Edit Products
Production
https://{{subdomain}}.daftra.com/api2
Production
https://{{subdomain}}.daftra.com/api2
PUT
https://{{subdomain}}.daftra.com/api2
Products
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'https://.daftra.com/api2/products/' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"Product": {
"staff_id": 0,
"name": "string",
"description": "string",
"unit_price": 0,
"tax1": 0,
"tax2": 0,
"supplier_id": 0,
"brand": "string",
"category": "string",
"tags": "string",
"buy_price": 0,
"product_code": "string",
"track_stock": true,
"stock_balance": 0,
"low_stock_thershold": 0,
"barcode": "string",
"notes": "string",
"status": 0,
"follow_up_status": null,
"updated_price": true,
"average_price": 0,
"type": null,
"minimum_price": null,
"profit_margin": null,
"discount": null,
"discount_type": null,
"duration_minutes": 0,
"availabe_online": 0,
"raw_store_id": null
}
}'
Response Response Example
200 - Example 1
{
"code": 200,
"result": "successful"
}
Request
Path Params
id
string
required
format
string
required
Header Params
Accept
string
optional
Default:
application/json
Content-Type
string
optional
Default:
application/json
Authorization
string
optional
Default:
Bearer {{access_token}}
apikey
string
deprecated
Default:
{{apikey}}
Body Params application/json