Authorization: Bearer ********************{
"order": {
"input_output": "input",
"warehouse_code": "TEST1212",
"notes": "ApiTest",
"extref": "AT121314",
"entry_date": "2024-08-22",
"sender_name": "Demo Uk",
"consignee_name": "YUMCO COMMERCE DOO",
"order_address": "123 Baker Street, Suite 456, London, Greater London, NW1 6XE, United Kingdom",
"district": "Greater London",
"city": "London",
"orderlines_attributes": [
{
"line_no": "1",
"serial_no": "TA121314",
"weight": "200.0",
"volume": "100.0",
"productName": "TestApi",
"barCode": "TestApi",
"packCount": "10",
"packType": "Box"
}
]
}
}curl --location --request POST 'https://demo.modaltrans.com/api/v1/orders' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"order": {
"input_output": "input",
"warehouse_code": "TEST1212",
"notes": "ApiTest",
"extref": "AT121314",
"entry_date": "2024-08-22",
"sender_name": "Demo Uk",
"consignee_name": "YUMCO COMMERCE DOO",
"order_address": "123 Baker Street, Suite 456, London, Greater London, NW1 6XE, United Kingdom",
"district": "Greater London",
"city": "London",
"orderlines_attributes": [
{
"line_no": "1",
"serial_no": "TA121314",
"weight": "200.0",
"volume": "100.0",
"productName": "TestApi",
"barCode": "TestApi",
"packCount": "10",
"packType": "Box"
}
]
}
}'{
"order_id": "string",
"reference": "string",
"assignee_email": "string",
"operator_email": "string",
"position_id": 0,
"notes": "string",
"ncts_declarations": [
{
"transaction_id": 0,
"reference": "string",
"trailer_code": "string",
"vehicle_code": "string",
"container": "string",
"lrn": "string",
"mrn": "string",
"status": "string",
"carrier_name": "string",
"guarantee_price": 0,
"guarantee_curr": "string",
"manifesto_price": 0,
"currency": "string",
"holder_name": "string"
}
]
}