52 lines
890 B
Plaintext
52 lines
890 B
Plaintext
meta {
|
|
name: Create Commodity
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: {{baseUrl}}/api/v1/master-data/commodities
|
|
body: json
|
|
auth: bearer
|
|
}
|
|
|
|
auth:bearer {
|
|
token: {{jwtToken}}
|
|
}
|
|
|
|
headers {
|
|
X-Tenant-ID: {{tenantId}}
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"code": "SOYA",
|
|
"name": "Soybean",
|
|
"hsn_code": "12019000",
|
|
"standard_bag_weight_kg": 50.0,
|
|
"moisture_baseline_pct": 10.0,
|
|
"foreign_matter_max_pct": 2.0,
|
|
"damaged_grain_max_pct": 3.0,
|
|
"qc_required": true,
|
|
"varieties": [
|
|
{
|
|
"code": "JS-335",
|
|
"name": "Jawahar Soya 335"
|
|
},
|
|
{
|
|
"code": "JS-9560",
|
|
"name": "Jawahar Soya 9560"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
docs {
|
|
# Create Commodity (FR-MASTERDATA-001)
|
|
|
|
Creates a tenant-scoped agricultural commodity catalog entry with quality parameters and botanical varieties.
|
|
}
|
|
|