c_agri_trade/project_code/docs/api/bruno/bardana/post-stock-entry.bru

42 lines
728 B
Plaintext

meta {
name: Record Bardana Stock Entry
type: http
seq: 2
}
post {
url: {{baseUrl}}/api/v1/bardana/stock-entries
body: json
auth: bearer
}
auth:bearer {
token: {{jwtToken}}
}
headers {
X-Tenant-ID: {{tenantId}}
Content-Type: application/json
Accept: application/json
}
body:json {
{
"godown_id": "WH-01",
"bag_type": "NEW_JUTE_50KG",
"transaction_type": "PURCHASE_RECEIPT",
"reference_id": "PO-BAG-2026-001",
"opening_count": 1000,
"inward_count": 500,
"outward_count": 0,
"damaged_count": 0
}
}
docs {
# Record Bardana Stock Entry (FR-BARDANA-001)
Posts an immutable double-entry packaging bag stock movement enforcing non-negative closing count invariants.
}