Documentation

ErrorCode
in package

Class ErrorCode, this class provides constants used for Error Codes.

Table of Contents

AUTO_FUND_NOT_SUPPORTED  = "auto_fund_not_supported"
Only certain carriers support pre-paid balances. So you can only add funds to those carriers. If you attempt to add funds to a carrier that doesn't support it, then you'll get this error code.
BATCH_CANNOT_BE_MODIFIED  = "batch_cannot_be_modified"
Once a batch has started processing, it cannot be modified. Attempting to modify it will cause this error.
CARRIER_CONFLICT  = "carrier_conflict"
You attempted to perform an operation on multiple shipments from different carriers. Try performing separate operations for each carrier instead.
CARRIER_NOT_CONNECTED  = "carrier_not_connected"
This error means that you're trying to use a carrier that hasn't been setup yet. You can setup carriers from your ShipEngine dashboard, or via the API.
CARRIER_NOT_SUPPORTED  = "carrier_not_supported"
The operation you are performing isn't supported by the specified carrier.
CONFIRMATION_NOT_SUPPORTED  = "confirmation_not_supported"
Some forms of delivery confirmation aren't supported by some carriers.
FIELD_CONFLICT  = "field_conflict"
This error means that two or more fields in your API request are mutually exclusive or contain conflicting values. The error will include a fields array that lists the conflicting fields.
FIELD_VALUE_REQUIRED  = "field_value_required"
A required field is missing or empty. The field_name property indicates which field is missing. Note that some fields are conditionally required, based on the values of other fields or the type of operation being performed.
FORBIDDEN  = "forbidden"
You attempted to perform an operation that you don't have permissions to do.
IDENTIFIER_CONFLICT  = "identifier_conflict"
A few parts of the ShipEngine API allow you to provide your own ID for resources.
IDENTIFIER_MUST_MATCH  = "identifiers_must_match"
When updating a resource (such as a shipment or warehouse), the ID in the URL and in the request body must match.
INCOMPATIBLE_PAIRED_LABELS  = "incompatible_paired_labels"
When creating a return label, you can optionally pair it to an outbound_label_id.
INVALID_ADDRESS  = "invalid_address"
The mailing address that you provided is invalid. Try using our address validation API to verify addresses before using them.
INVALID_BILLING_PLAN  = "invalid_billing_plan"
You attempted to perform an operation that isn't allowed for your billing plan.
INVALID_CHARGE_EVENT  = "invalid_charge_event"
When creating a label or creating a return label, if you set the charge_event field to a value that isn't offered by the carrier, then you will receive this error. You can leave the charge_event field unset, or set it to carrier_default instead.
INVALID_FIELD_VALUE  = "invalid_field_value"
One of the fields in your API request has an invalid value. The field_name property indicates which field is invalid.
INVALID_IDENTIFIER  = "invalid_identifier"
This error is similar to invalid_field_value, but is specifically for ID fields, such as label_id, shipmentId, carrierId, etc. The field_name property indicates which field is invalid.
INVALID_STATUS  = "invalid_status"
The operation you're attempting to perform is not allowed because the resource public const * is in the wrong status. For example, if a label's status is "voided"; then it cannot be included in a manifest.
INVALID_STRING_LENGTH  = "invalid_string_length"
A string field in your API request is either too short or too long. The field_name property indicates which field is invalid, and the min_length and max_length properties indicate the allowed length.
LABEL_IMAGES_NOT_SUPPORTED  = "label_images_not_supported"
Not all carriers allow you to add custom images to labels. You can only set the label_image_id for supported carriers
METER_FAILURE  = "meter_failure"
This error indicates a problem with your FedEx account. Please contact FedEx to resolve the issue.
NOT_FOUND  = "not_found"
The ShipEngine API endpoint that was requested does not exist.
RATE_LIMIT_EXCEEDED  = "rate_limit_exceeded"
You have exceeded a rate limit. Check the the error_source field to determine whether the rate limit was imposed by ShipEngine or by a third-party, such as a carrier. If the rate limit is from ShipEngine, then consider using bulk operations to reduce the nuber of API calls, or contact our support team about increasing your rate limit.
REQUEST_BODY_REQUIRED  = "request_body_required"
The API call requires a JSON request body. See the corresponding documentation page for details about the request structure.
RETURN_LABEL_NOT_SUPPORTED  = "return_label_not_supported"
You may receive this error if you attempt to schedule a pickup for a return label.
SUBSCRIPTION_INACTIVE  = "subscription_inactive"
You may receive this error if you attempt to perform an operation that requires a subscription. Please contact our sales department to discuss a ShipEngine enterprise contract.
TERMS_NOT_ACCEPTED  = "terms_not_accepted"
Some carriers require you to accept their terms and conditions before you can use them via ShipEngine. If you get this error, then please login to the ShipEngine dashboard to read and accept the carrier's terms.
TIMEOUT  = "timeout"
An API call timed out because ShipEngine did not respond within the allowed timeframe.
TRACKING_NOT_SUPPORTED  = "tracking_not_supported"
This error will occur if you attempt to track a package for a carrier that doesn't offer that service.
TRIAL_EXPIRED  = "trial_expired"
You may receive this error if your free trial period has expired and you have not upgraded your account or added billing information.
UNAUTHORIZED  = "unauthorized"
Your API key is incorrect, expired, or missing. Check our authentication guide to learn more about authentication with ShipEngine.
UNSPECIFIED  = "unspecified"
This error has not yet been assigned a code. See the notes above about how to handle these.
VERIFICATION_FAILURE  = "verification_failure"
When verifying your account (by email, SMS, phone call, etc.) this error indicates that the verification code is incorrect. Please re-start the verification process to get a new code.
WAREHOUSE_CONFLICT  = "warehouse_conflict"
You attempted to perform an operation on multiple shipments from different warehouses. Try performing separate operations for each warehouse instead.
WEBHOOK_EVENT_TYPE_CONFLICT  = "webhook_event_type_conflict"
ShipEngine only allows you to have one webhook of each type. If you would like to replace a webhook with a new one, please delete the old one first.

Constants

AUTO_FUND_NOT_SUPPORTED

Only certain carriers support pre-paid balances. So you can only add funds to those carriers. If you attempt to add funds to a carrier that doesn't support it, then you'll get this error code.

public mixed AUTO_FUND_NOT_SUPPORTED = "auto_fund_not_supported"

BATCH_CANNOT_BE_MODIFIED

Once a batch has started processing, it cannot be modified. Attempting to modify it will cause this error.

public mixed BATCH_CANNOT_BE_MODIFIED = "batch_cannot_be_modified"

CARRIER_CONFLICT

You attempted to perform an operation on multiple shipments from different carriers. Try performing separate operations for each carrier instead.

public mixed CARRIER_CONFLICT = "carrier_conflict"

CARRIER_NOT_CONNECTED

This error means that you're trying to use a carrier that hasn't been setup yet. You can setup carriers from your ShipEngine dashboard, or via the API.

public mixed CARRIER_NOT_CONNECTED = "carrier_not_connected"

CARRIER_NOT_SUPPORTED

The operation you are performing isn't supported by the specified carrier.

public mixed CARRIER_NOT_SUPPORTED = "carrier_not_supported"

CONFIRMATION_NOT_SUPPORTED

Some forms of delivery confirmation aren't supported by some carriers.

public mixed CONFIRMATION_NOT_SUPPORTED = "confirmation_not_supported"

This error means that the combination of carrier and delivery confirmation are not supported.

FIELD_CONFLICT

This error means that two or more fields in your API request are mutually exclusive or contain conflicting values. The error will include a fields array that lists the conflicting fields.

public mixed FIELD_CONFLICT = "field_conflict"

FIELD_VALUE_REQUIRED

A required field is missing or empty. The field_name property indicates which field is missing. Note that some fields are conditionally required, based on the values of other fields or the type of operation being performed.

public mixed FIELD_VALUE_REQUIRED = "field_value_required"

FORBIDDEN

You attempted to perform an operation that you don't have permissions to do.

public mixed FORBIDDEN = "forbidden"

Check your API key to ensure that you're using the correct one. Or contact our support team to ensure that your account has the necessary permissions.

IDENTIFIER_CONFLICT

A few parts of the ShipEngine API allow you to provide your own ID for resources.

public mixed IDENTIFIER_CONFLICT = "identifier_conflict"

These IDs must be unique; otherwise, you'll get this error code.

IDENTIFIER_MUST_MATCH

When updating a resource (such as a shipment or warehouse), the ID in the URL and in the request body must match.

public mixed IDENTIFIER_MUST_MATCH = "identifiers_must_match"

INCOMPATIBLE_PAIRED_LABELS

When creating a return label, you can optionally pair it to an outbound_label_id.

public mixed INCOMPATIBLE_PAIRED_LABELS = "incompatible_paired_labels"

The outbound label must be from the same carrier as the return label.

INVALID_ADDRESS

The mailing address that you provided is invalid. Try using our address validation API to verify addresses before using them.

public mixed INVALID_ADDRESS = "invalid_address"

INVALID_BILLING_PLAN

You attempted to perform an operation that isn't allowed for your billing plan.

public mixed INVALID_BILLING_PLAN = "invalid_billing_plan"

Contact our sales team for assistance.

INVALID_CHARGE_EVENT

When creating a label or creating a return label, if you set the charge_event field to a value that isn't offered by the carrier, then you will receive this error. You can leave the charge_event field unset, or set it to carrier_default instead.

public mixed INVALID_CHARGE_EVENT = "invalid_charge_event"

INVALID_FIELD_VALUE

One of the fields in your API request has an invalid value. The field_name property indicates which field is invalid.

public mixed INVALID_FIELD_VALUE = "invalid_field_value"

INVALID_IDENTIFIER

This error is similar to invalid_field_value, but is specifically for ID fields, such as label_id, shipmentId, carrierId, etc. The field_name property indicates which field is invalid.

public mixed INVALID_IDENTIFIER = "invalid_identifier"

INVALID_STATUS

The operation you're attempting to perform is not allowed because the resource public const * is in the wrong status. For example, if a label's status is "voided"; then it cannot be included in a manifest.

public mixed INVALID_STATUS = "invalid_status"

INVALID_STRING_LENGTH

A string field in your API request is either too short or too long. The field_name property indicates which field is invalid, and the min_length and max_length properties indicate the allowed length.

public mixed INVALID_STRING_LENGTH = "invalid_string_length"

LABEL_IMAGES_NOT_SUPPORTED

Not all carriers allow you to add custom images to labels. You can only set the label_image_id for supported carriers

public mixed LABEL_IMAGES_NOT_SUPPORTED = "label_images_not_supported"

METER_FAILURE

This error indicates a problem with your FedEx account. Please contact FedEx to resolve the issue.

public mixed METER_FAILURE = "meter_failure"

NOT_FOUND

The ShipEngine API endpoint that was requested does not exist.

public mixed NOT_FOUND = "not_found"

RATE_LIMIT_EXCEEDED

You have exceeded a rate limit. Check the the error_source field to determine whether the rate limit was imposed by ShipEngine or by a third-party, such as a carrier. If the rate limit is from ShipEngine, then consider using bulk operations to reduce the nuber of API calls, or contact our support team about increasing your rate limit.

public mixed RATE_LIMIT_EXCEEDED = "rate_limit_exceeded"

REQUEST_BODY_REQUIRED

The API call requires a JSON request body. See the corresponding documentation page for details about the request structure.

public mixed REQUEST_BODY_REQUIRED = "request_body_required"

RETURN_LABEL_NOT_SUPPORTED

You may receive this error if you attempt to schedule a pickup for a return label.

public mixed RETURN_LABEL_NOT_SUPPORTED = "return_label_not_supported"

SUBSCRIPTION_INACTIVE

You may receive this error if you attempt to perform an operation that requires a subscription. Please contact our sales department to discuss a ShipEngine enterprise contract.

public mixed SUBSCRIPTION_INACTIVE = "subscription_inactive"

TERMS_NOT_ACCEPTED

Some carriers require you to accept their terms and conditions before you can use them via ShipEngine. If you get this error, then please login to the ShipEngine dashboard to read and accept the carrier's terms.

public mixed TERMS_NOT_ACCEPTED = "terms_not_accepted"

TIMEOUT

An API call timed out because ShipEngine did not respond within the allowed timeframe.

public mixed TIMEOUT = "timeout"

TRACKING_NOT_SUPPORTED

This error will occur if you attempt to track a package for a carrier that doesn't offer that service.

public mixed TRACKING_NOT_SUPPORTED = "tracking_not_supported"

TRIAL_EXPIRED

You may receive this error if your free trial period has expired and you have not upgraded your account or added billing information.

public mixed TRIAL_EXPIRED = "trial_expired"

UNAUTHORIZED

Your API key is incorrect, expired, or missing. Check our authentication guide to learn more about authentication with ShipEngine.

public mixed UNAUTHORIZED = "unauthorized"

UNSPECIFIED

This error has not yet been assigned a code. See the notes above about how to handle these.

public mixed UNSPECIFIED = "unspecified"

VERIFICATION_FAILURE

When verifying your account (by email, SMS, phone call, etc.) this error indicates that the verification code is incorrect. Please re-start the verification process to get a new code.

public mixed VERIFICATION_FAILURE = "verification_failure"

WAREHOUSE_CONFLICT

You attempted to perform an operation on multiple shipments from different warehouses. Try performing separate operations for each warehouse instead.

public mixed WAREHOUSE_CONFLICT = "warehouse_conflict"

WEBHOOK_EVENT_TYPE_CONFLICT

ShipEngine only allows you to have one webhook of each type. If you would like to replace a webhook with a new one, please delete the old one first.

public mixed WEBHOOK_EVENT_TYPE_CONFLICT = "webhook_event_type_conflict"

Search results