Create Indent Using Route Codes

Introduction:

If we have already on-boarded rout code then we can create indent based on rout ref-code, them no need to provide the master loading and unloading point.

Request Parameters:

Name

Type

Location

Description

Example

Name

Type

Location

Description

Example

Authorization

string

headers

JWT token required to authenticate API call.

Authorization: Bearer eyJhbGciOiJIUzI1Ni

Request Body:

Example value:

{ "type": "PER_TRUCK", "feed_unique_id": "FEED10004", "route_ref_code": "Mumbai - Hyderabad", "vehicle_types": [ { "ref_code": "cl32mxl18mt", "quantity": 1, "min_preferred_rate": 0.0, "max_preferred_rate": 0.0 } ], "materials": [ { "ref_code": "ATM", "total_weight": 10, "weight_unit": "TON", "min_preferred_rate": 200, "max_preferred_rate": 500 } ], "loading_point": { "ref_code": "" }, "unloading_point": { "ref_code": "" }, "payment_mode": "TO_PAY", "comments": "testing integration add indent", "custom_param": { "SO": "S1334" }, "publishing_rule": { "single": { "transporter_ref_code": [ "TRN1" ] }, "multiple": {}, "l1": {}, "l2": {}, "l3": {}, "non_contracted": {} } }

Schema

{ "type": "object", "properties": { "type": { "type": "string", "required": true }, "feed_unique_id": { "type": "string", "required": true }, "route_ref_code": { "type": "string", "required": true }, "vehicle_types": { "type": "array", "required": "optional", "discription": "Required when indent based on per truck", "items": [ { "type": "object", "properties": { "ref_code": { "type": "string" }, "quantity": { "type": "integer" }, "min_preferred_rate": { "type": "number" }, "max_preferred_rate": { "type": "number" } } } ] }, "materials": { "type": "array", "required": "optional", "discription": "Required when indent based on per TON", "items": [ { "type": "object", "properties": { "ref_code": { "type": "string" }, "total_weight": { "type": "integer" }, "weight_unit": { "type": "string" }, "min_preferred_rate": { "type": "integer" }, "max_preferred_rate": { "type": "integer" } } } ] }, "loading_point": { "type": "object", "Discription": "If data is already onboarded then not required", "properties": { "ref_code": { "type": "string" } } }, "unloading_point": { "type": "object", "Discription": "If data is already onboarded then not required", "properties": { "ref_code": { "type": "string" } } }, "payment_mode": { "type": "string", "required": true }, "comments": { "type": "string" }, "custom_param": { "type": "object", "required": "optional", "properties": { "SO": { "type": "string" } } }, "publishing_rule": { "type": "object", "properties": { "single": { "type": "object", "properties": { "transporter_ref_code": { "type": "array", "required": true, "items": [ { "type": "string" } ] } } }, "multiple": { "type": "object", "discription":"same structure like single" }, "l1": { "type": "object", "discription":"same structure like single" }, "l2": { "type": "object", "discription":"same structure like single" }, "l3": { "type": "object", "discription":"same structure like single" }, "non_contracted": { "type": "object", "discription":"same structure like single" } } } } }

Responses:

Success

Status code 200 (indent created successfully)

<INDENT ID> Indent created successfully

Failure

Status code 400 (Bad Request)

Status code 401 (Unauthorized user)

Post your questions in the comment box to get answers from the experts who watch this page.

For engineering support: visit FT Support