Menambahkan produk baru ke database SalesMania.API ini membutuhkan team_token sebagai parameter dan Bearer Token sebagai authentification.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"name": "string",
"description": "string",
"sku": "string",
"tags": [
"string"
],
"status": true,
"ext_product_code": "string",
"default_disc": "5",
"qty_on_hand": 0,
"product_units": [
{
"name": "string",
"price": 0,
"ratio": 1
}
]
}
Request Code Samples
curl --location --request POST 'https://api.salesmania.id/extapi/v1.0/products?team_token=eyJkYl9pZCI6Mjk4MSwidGVhbV9pZCI6MjQ3Mjh9.LpZ9LEpy123lwzYjzypStjdk123' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"description": "string",
"sku": "string",
"tags": [
"string"
],
"status": true,
"ext_product_code": "string",
"default_disc": "5",
"qty_on_hand": 0,
"product_units": [
{
"name": "string",
"price": 0,
"ratio": 1
}
]
}'
Responses
application/json Modified at 2024-11-01 09:57:18