Create Indent Using Loading & Unloading RefCodes

If we have the loading and unloading refcode already on-boarded in the system the we can create the indent based on loading and unloading refcode no need t give the loading and unloading master data for create indent

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 Method:”POST”
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": "AB123" }, "unloading_point": { "ref_code": "PC345" }, "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, "example": "PER_TRUCK", "PER_TON" }, "feed_unique_id": { "type": "string", "required":true }, "route_ref_code": { "type": "string" }, "vehicle_types": { "discription":"Required when indent based on 'PER TRUCK'", "type": "array", "items": [ { "type": "object", "required":true, "properties": { "ref_code": { "type": "string", "required":true }, "quantity": { "type": "integer", "required":true }, "min_preferred_rate": { "type": "integer", "required":true }, "max_preferred_rate": { "type": "integer", "required":true } } } ] }, "materials": { "discription":"Required when indent based on 'PER TON'", "type": "array", "items": [ { "type": "object", "required":true, "properties": { "ref_code": { "type": "string", "required":true }, "total_weight": { "type": "integer", "required":true }, "weight_unit": { "type": "string", "required":true }, "min_preferred_rate": { "type": "integer", "required":true }, "max_preferred_rate": { "type": "integer", "required":true }, "master_data": { "type": "object", "properties": { "label": { "type": "string" } } } } } ] }, "loading_point": { "type": "object", "required":true, "Discription":"Required while creating the trip based on loading and unloading ref_code ", "properties": { "ref_code": { "type": "string" }, "master_data": { "type": "object", "properties": { "address": { "type": "string" }, "display_label": { "type": "string" }, "location": { "type": "object", "properties": { "lat": { "type": "number" }, "lon": { "type": "number" } } } } } } }, "unloading_point": { "type": "object",, "required":true, "Discription":"Required while creating the trip based on loading and unloading ref_code ", "properties": { "ref_code": { "type": "string" }, "master_data": { "type": "object", "properties": { "address": { "type": "string" }, "display_label": { "type": "string" }, "location": { "type": "object", "properties": { "lat": { "type": "number" }, "lon": { "type": "number" } } } } } } }, "payment_mode": { "type": "string" }, "comments": { "type": "string" }, "custom_param": { "type": "object", "properties": { "SO": { "type": "string" }, "DO": { "type": "string" }, "custom_param_array": { "type": "array", "items": [ { "type": "string" }, { "type": "string" } ] } } }, "publishing_rule": { "type": "object", "required":true, "properties": { "single": { "type": "object", "properties": { "transporter_ref_code": { "type": "array", "required":true, "items": [ { "type": "string" } ] }, "acceptance_deadline": { "type": "integer", "required":true }, "schedule_timestamp": { "type": "integer", "required":true } } }, "l1": { "type": "object", "properties": { "transporter_ref_code": { "type": "array", "items": [ { "type": "string" } ] } } }, "l2": { "type": "object", "properties": { "transporter_ref_code": { "type": "array", "items": [ { "type": "string" } ] }, "acceptance_deadline": { "type": "integer" }, "schedule_timestamp": { "type": "integer" } } }, "l3": { "type": "object", "properties": { "transporter_ref_code": { "type": "array", "items": [ { "type": "string" } ] }, "acceptance_deadline": { "type": "integer" }, "schedule_timestamp": { "type": "integer" } } }, "non_contracted": { "type": "object", "properties": { "transporter_ref_code": { "type": "array", "items": [ { "type": "string" } ] }, "acceptance_deadline": { "type": "integer" }, "schedule_timestamp": { "type": "integer" } } }, "multiple": { "type": "object", "properties": { "transporter_ref_code": { "type": "array", "items": [ { "type": "string" } ] }, "acceptance_deadline": { "type": "integer" }, "schedule_timestamp": { "type": "integer" } } } } }, "assignment_deadline": { "type": "integer" }, "reporting_deadline": { "type": "integer" }, "reporting_overdue": { "type": "integer" }, "bid_acceptance_deadline": { "type": "integer" }, "branch_ref_code": { "type": "string" } } }

Responses:

Success

Status code 200 (Trip 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