47 lines
1019 B
Plaintext
47 lines
1019 B
Plaintext
meta {
|
|
name: Book Customer Sales Contract
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: {{baseUrl}}/api/v1/sales/orders
|
|
body: json
|
|
auth: bearer
|
|
}
|
|
|
|
auth:bearer {
|
|
token: {{jwtToken}}
|
|
}
|
|
|
|
headers {
|
|
Content-Type: application/json
|
|
X-Tenant-ID: {{tenantId}}
|
|
Accept: application/json
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"order_date": "2026-10-12",
|
|
"customer_id": "b0000000-0000-0000-0000-000000000001",
|
|
"customer_segment": "PROCESSOR",
|
|
"destination_city": "Indore",
|
|
"commodity_id": "c0a80123-0000-0000-0000-000000000001",
|
|
"variety": "Yellow Desi",
|
|
"grade": "FAQ",
|
|
"contract_qty_mt": 50.000,
|
|
"contract_rate_qtl": 4800.00,
|
|
"payment_terms": "15_DAYS",
|
|
"total_value_inr": 2400000.00,
|
|
"credit_override": false
|
|
}
|
|
}
|
|
|
|
docs {
|
|
# Book Customer Sales Contract (FR-SALESCONTRACTS-001, FR-SALESCONTRACTS-002)
|
|
|
|
Books customer order and performs credit limit & projected exposure check.
|
|
Enforces inline warning if ratio > 80% and blocks confirmation if ratio > 100% without Partner override.
|
|
}
|
|
|