c_agri_trade/project_code/docs/api/bruno/dispatch/create-dispatch.bru

40 lines
667 B
Plaintext

meta {
name: Schedule Outbound Dispatch
type: http
seq: 1
}
post {
url: {{baseUrl}}/api/v1/logistics/dispatches
body: json
auth: bearer
}
auth:bearer {
token: {{jwtToken}}
}
headers {
Content-Type: application/json
X-Tenant-ID: {{tenantId}}
Accept: application/json
}
body:json {
{
"order_id": "{{orderId}}",
"vehicle_reg_no": "RJ-09-GA-1234",
"target_mt": 25.000,
"target_bags": 500,
"dispatch_date": "2026-10-12"
}
}
docs {
# Schedule Outbound Dispatch (FR-DISPATCHDELIVERY-001)
Matches confirmed order and allocated lot to assigned vehicle.
Verifies vehicle is registered and not in MAINTENANCE status.
}