- Introduction
- Getting Started
- Authentication
- Error Handling
- Contact Support
- Modaltrans API
- Get Auth Token
- Accounting
- Customs
- Logistics
- Depot
- Fleet Management
- CRM
- Timelines
- S3 Files
- Notifications
- User Details
Update an Order
Developing
Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
PATCH
/api/v1/orders/{reference}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
reference
string
required
Example:
200000001
Body Params application/json
order
object
required
entry_date
string <date>
optional
extref
string
optional
input_output
string
optional
file_no
string
optional
order_no
string
optional
sender_code
string
optional
sender_name
string
optional
consignee_code
string
optional
consignee_name
string
optional
order_address
string
optional
city
string
optional
district
string
optional
warehouse_code
string
optional
notes
string
optional
interface_code
string
optional
from_location_code
string
optional
to_location_code
string
optional
status
string
optional
arrival_date
string <date>
optional
process_type
string
optional
orderlines_attributes
array [object {15}]
optional
Example
{
"order": {
"order_no": "123"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://demo.modaltrans.com/api/v1/orders/200000001' \
--header 'Content-Type: application/json' \
--data-raw '{
"order": {
"order_no": "123"
}
}'
Responses
🟢200Success
application/json
Body
array of:
reference
string
required
entry_date
string <date>
required
extref
string
required
input_output
string
required
order_no
string
required
file_no
string
required
from_location_code
string
required
to_location_code
string
required
arrival_date
string <date>
required
sender_code
string
required
sender_name
string
required
consignee_code
string
required
consignee_name
string
required
order_address
string
required
district
string
required
city
string
required
postcode
string
required
state
string
required
country_id
string
required
warehouseCode
string
required
interface_code
string
required
orderLines
array [object {15}]
required
line_no
integer
required
serial_no
string
required
weight
number
required
volume
number
required
price
number
required
price_curr
string
required
delivery_date
string <date>
required
asset_no
string
required
subinventory_code
string
required
origin_country_id
string
required
remote_id
string
required
productName
string
required
barCode
string
required
packCount
number
required
packType
string
required
Example
{
"reference": "200000001",
"entry_date": "2020-10-13",
"extref": "20200000001",
"input_output": "input",
"order_no": "123",
"file_no": "09afdb44-e4c1-4109-a944-ce22dd0b508b",
"from_location_code": "",
"to_location_code": "",
"arrival_date": "",
"sender_code": "",
"sender_name": "",
"consignee_code": "",
"consignee_name": "",
"order_address": "",
"district": "",
"city": "",
"postcode": "",
"state": "",
"country_id": "",
"warehouseCode": "",
"interface_code": null,
"orderLines": [
{
"line_no": "",
"serial_no": "",
"weight": "0.0",
"volume": "0.0",
"price": "0.0",
"price_curr": "",
"delivery_date": "",
"asset_no": "",
"subinventory_code": "",
"origin_country_id": "",
"remote_id": "",
"productName": "PIL",
"barCode": "PIL",
"packCount": "200.0",
"packType": ""
}
]
}
🟠400Bad Request
🟠422Unprocessable Content
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-08-29 12:21:00