Create or update carrier
Create a new carrier or update an existing one. This endpoint supports three operations:
-
Creation: Provide all required fields to create a new carrier.
-
Partial Update: Include only the fields you want to update. Carriers are matched by tmsId, so provide the tmsId of the carrier you want to update.
-
Full Update: Include all fields to completely replace the carrier data.
For updating managers and contacts, it is highly recommended to provide tmsId for each manager and contact when creating them. This allows the system to match and update existing managers/contacts by their tmsId during subsequent updates. If tmsId is not provided for managers or contacts, you will need to clear the entire array and re-add all managers/contacts when updating.
Request
- Base URLhttps://api.prod.goaugment.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"customData": {
"tier": "gold",
"score": 98.5,
"verified": true,
"aliases": [
"Acme Freight",
"Acme Carriers LLC"
],
"routing": {
"defaultRegion": "NS",
"allowCrossBorder": false
}
}
}Response
Carrier created or updated successfully
Example response
{
"customData": {
"tier": "gold",
"score": 98.5,
"verified": true,
"aliases": [
"Acme Freight",
"Acme Carriers LLC"
],
"routing": {
"defaultRegion": "NS",
"allowCrossBorder": false
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.