This guide helps you understand the most common API errors across DSV APIs.
Errors are grouped into general platform errors and API-specific examples so you can quickly identify the issue,
understand the likely cause, and take the next troubleshooting step.
How to use this page: Start with Most Common Errors for status codes like 401, 403, 404, and 500.
Then expand the API-specific sections if you are troubleshooting Booking, Tracking, Labels, Upload, Invoices,
Visibility, Webhook, XPress, or SCM APIs.
This page lists common errors returned by DSV APIs along with their meaning and possible resolution steps.
Use the error code or message returned in the API response to quickly identify the issue.
Tip: Use Ctrl + F to search for the error code (for example: 400, 401, E99, validationError).
Most Common Errors
Common across multiple APIs
401 - Unauthorized
The API request is not authenticated correctly
What it means: The request could not be authenticated.
Possible causes:
Missing or invalid DSV-Subscription-Key
Invalid OAuth bearer token
Incorrect user credentials where applicable
What to check:
Make sure the subscription key belongs to the correct environment
Ensure the bearer token is active and not expired
Confirm the Authorization header is sent correctly
{
"message": "Access denied",
"statusCode": 401
}
403 - Forbidden
Access denied due to missing access or permissions
What it means: The request is authenticated, but the user or application does not have access.
Possible causes:
Missing API role in myDSV
Inactive myDSV account
User does not have access to the requested booking or shipment
What to check:
Confirm the user has the correct API role
Check whether the account is active
Verify the shipment or booking belongs to the requesting organization
{
"code": 403,
"message": "Access denied due to missing API role"
}
404 - Not Found
The requested resource could not be found
What it means: The resource does not exist, is not available in that environment, or the request parameters are incorrect.
Possible causes:
Incorrect or missing bookingID, shipmentID, reference, invoice reference, or documentId
Typo or formatting issue in the request
Resource exists in another environment only
What to check:
Verify the ID or reference value
Confirm the resource exists in the same environment you are calling
Review the request structure against the API specification
The server could not process the request successfully
What it means: The server encountered an unexpected issue while processing the request.
Possible causes:
Request sent to an incorrect or inactive endpoint
Missing required headers or parameters
Unexpected internal failure
What to check:
Make sure you are using the correct endpoint URL
Verify required headers and parameters are included
Retry only after validating the request structure
Generic API Errors
Examples across Booking, Labels, Tracking, Upload, Invoices, Visibility, and Webhook APIs
Error
API Area
Main Meaning
400
Booking / Labels / Visibility
Validation issue, missing field, invalid value, or incorrect request structure
403
Tracking
User does not have access to the shipment
404
Download / Invoices
Requested document or invoice was not found
415
Upload
Unsupported file type or incorrect Content-Type
401
Webhook
Missing or invalid OAuth token
400 - Invalid Pickup DateAPI Booking
Pickup date must be today or in the future
Cause: Pickup date is in the past
Resolution: Use today's date or a future date
{
"code": "E99",
"message": "general error",
"fields": [
{
"name": "validationError",
"message": "Pickup date should be same or after current date",
"code": "validationError"
}
]
}
400 - Autobook Disabled / MDM Not AssignedAPI Booking
Autobooking blocked or MDM does not belong to the user
Cause: Autobooking was disabled due to earlier errors
Cause: The provided MDM is not assigned to the authenticated user
Resolution: Check autobooking status and use an MDM mapped to the user
{
"code": "E99",
"message": "general error",
"fields": [
{
"name": "validationError",
"message": "Autobook disabled due to previous errors",
"code": "validationError"
},
{
"name": "bookingError",
"message": "The following mdm is not assigned to this user",
"code": "bookingError"
}
]
}
400 - Invalid Package QuantityAPI Booking
Package quantity must be present and positive
Cause: Missing or non-positive package quantity
Resolution: Include a valid positive quantity in the shipment details
{
"code": "E99",
"message": "General Error",
"fields": [
{
"name": "validationError",
"message": "Package quantity must be present and positive",
"code": "validationError"
}
],
"development": null
}
400 - Missing Address DetailsAPI Booking
Address field such as city, addressLine1, zipCode, country, or state is missing
Cause: One or more required address fields are empty
Resolution: Provide complete address details for all required parties
{
"code": "E99",
"message": "General Error",
"fields": [
{
"name": "validationError",
"message": "Autobook disabled due to previous errors",
"code": "validationError"
},
{
"name": "bookingError",
"message": "Address city is empty",
"code": "bookingError"
}
],
"development": null
}
400 - Unsupported Label FormatAPI Labels
Requested label format is not supported
Cause: Unsupported or missing type field
Resolution: Use a supported format such as PDF, ZPL, or PNG
{
"type": "DOCX"
}
403 - Unauthorized Shipment AccessAPI Tracking
The shipment does not belong to the requesting user or organization
Cause: Shipment belongs to a different account or organization
Cause: API role or permissions are insufficient
Resolution: Verify shipment visibility and permissions with support
{
"shipmentId": "SH123456",
"status": "Pending"
}
404 - Document Not AvailableAPI Download
Requested document was not found
Cause: Invalid documentId
Cause: Document was deleted, expired, or not linked properly
Resolution: Verify the documentId and confirm it belongs to a valid shipment
415 - Unsupported Media TypeAPI Upload
File type or Content-Type header is not supported
Cause: File type is not supported
Cause: Missing or incorrect Content-Type header
Resolution: Use a supported format such as PDF or JPEG and send the correct Content-Type
Content-Type: text/plain
404 - Invoice Does Not ExistAPI Invoices
Invoice reference could not be found
Cause: Invalid invoice reference
Cause: Invoice exists in another environment
Cause: Invoice was archived or removed
Resolution: Confirm the invoice reference and environment
400 - Invalid Shipment DataAPI Visibility
Shipment fields are missing or incorrectly formatted
Cause: Missing required shipment parameters
Cause: Invalid shipmentId or tracking number format
Resolution: Validate the request body against the API schema
401 - Missing OAuth TokenAPI Webhook
Authentication token is missing, expired, or invalid
Cause: No OAuth token in the request headers
Cause: Expired or invalid token
Resolution: Send a valid bearer token in the Authorization header
XPress API Errors
Booking, Quote, Tracking, and Label-related XPress issues
400 - Invalid Booking DetailsAPI Booking XPress
Booking request contains unsupported or invalid values
Cause: pickupDate is in the past
Cause: shipmentType is not supported
Cause: Declared weight exceeds allowed limits
Resolution: Use valid future date, allowed shipmentType, and supported weight