- Introduction
- Getting Started
- Authentication
- Error Handling
- Contact Support
- Modaltrans API
- Get Auth Token
- Accounting
- Customs
- Logistics
- Bookings
- Locations
- Positions
- Tracking
- Shipments
- Depot
- Fleet Management
- CRM
- Timelines
- S3 Files
- Notifications
- User Details
Update a Booking
Developing
Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
PATCH
/api/v1/bookings/{transaction_id}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
transaction_id
integer
required
Body Params application/json
booking
object
required
trans_mode
enum<string>
optional
Allowed values:
roadairseacourier
load_type
enum<string>
optional
Allowed values:
PK
in_container
enum<string>
optional
Allowed values:
at_containerout_of_container
total_pack
number
optional
brut_wg
number
optional
volume
number
optional
price_wg
number
optional
operation_code
string
optional
company_no
string
optional
company_name
string | null
optional
company_taxno
string
optional
company_country_id
string
optional
sender_name
string
optional
sender_eori
string
optional
load_place_type
enum<string>
optional
Allowed values:
airseaportcompanyother
load_place_code
string
optional
load_place
string
optional
dep_zipcode
string
optional
load_state_name
string
optional
load_coun
string
optional
consignee_name
string
optional
consignee_eori
string
optional
unload_place_type
enum<string>
optional
Allowed values:
airseaportcompanyother
unload_place_code
string
optional
unload_place
string
optional
company_id
integer
optional
arv_zipcode
string
optional
unload_state_name
string
optional
unload_coun
string
optional
incoterm
string
optional
packages_attributes
array [object {8}]
optional
containers_attributes
array [object {8}]
optional
Example
{
"booking": {
"load_coun": "UK"
}
}
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/bookings/' \
--header 'Content-Type: application/json' \
--data-raw '{
"booking": {
"load_coun": "UK"
}
}'
Responses
🟢200Success
application/json
Body
alert
string
required
Example
{
"alert": "Booking has been updated succesfully"
}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-08-29 12:21:16