Create Indent While Onboarding Loading & Unloading Master Data
Request Parameters:
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_TON",
"feed_unique_id": "DO123",
"materials": [
{
"ref_code": "MS TMT BAR",
"total_weight": 90,
"weight_unit": "TON"
}
],
"loading_point": {
"master_data": {
"address": "Patna, 800001",
"display_label": "Patna, 800001",
"location": {}
}
},
"unloading_point": {
"master_data": {
"address": "Mumbai, 400001",
"display_label": "Mumbai, 400001",
"location": {}
}
},
"custom_param": {
"SO": "SO-166334"
},
"payment_mode": "TO_PAY",
"comments": "testing add indent",
"publishing_rule": {
"single": {},
"l1": {},
"l2": {},
"l3": {},
"non_contracted": {
"transporter_ref_code": [
"TA025",
"TA036"
]
},
"multiple": {}
}
}
Schema
{
"type": "object",
"properties": {
"type": {
"type": "string",
"required":true
},
"feed_unique_id": {
"type": "string",
"required":true
},
"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"
}
}
}
]
},
"loading_point": {
"type": "object",
"required":true,
"properties": {
"master_data": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"display_label": {
"type": "string"
},
"location": {
"type": "object"
}
}
}
}
},
"unloading_point": {
"type": "object",
"required":true,
"properties": {
"master_data": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"display_label": {
"type": "string"
},
"location": {
"type": "object"
}
}
}
}
},
"custom_param": {
"type": "object",
"required":"optional",
"properties": {
"SO": {
"type": "string"
}
}
},
"payment_mode": {
"type": "string"
},
"comments": {
"type": "string"
},
"publishing_rule": {
"type": "object",
"properties": {
"single": {
"type": "object"
},
"l1": {
"type": "object"
},
"l2": {
"type": "object"
},
"l3": {
"type": "object"
},
"non_contracted": {
"type": "object",
"properties": {
"transporter_ref_code": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
]
}
}
},
"multiple": {
"type": "object"
}
}
}
}
}
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