Error codes

Updated November 18, 20267 min read

When creating, updating, or booking a shipment, Carriyo may return error codes attached to the shipment. Each code has a severity. ERROR codes block booking until corrected. WARNING codes don't block booking but flag data that may cause issues with some carriers.

Required data

Error codeLevelDescription
required_data_missingERRORRequired data is missing. Provide the missing field and reprocess.
required_data_invalidERRORRequired data is invalid. Provide a valid value and reprocess.
merchant_missingERRORThe Merchant provided was not found.
default_merchant_not_configuredERRORNo default Merchant is configured for the tenant. Provide a valid Merchant.

Contact details

Error codeLevelDescription
phone_number_missing_errorERRORPhone number is required and was not provided.
phone_number_missing_warningWARNINGPhone number is missing, required by some carriers.
phone_number_invalidERRORThe phone number provided is invalid.
phone_number_unknownWARNINGThe phone number provided may not be valid.
email_invalidERRORThe contact email provided is invalid.
email_missing_errorERRORContact email is required and was not provided.
email_missing_warningWARNINGContact email is missing, required by some carriers.

Address & geo

Error codeLevelDescription
coordinates_invalidERRORThe provided coordinates are incorrect. Provide valid latitude and longitude.
coordinates_latitude_invalidERRORThe provided latitude is invalid. Valid range is [-90, 90].
coordinates_longitude_invalidERRORThe provided longitude is invalid. Valid range is [-180, 180].
country_invalidERRORThe country code provided is invalid. Use a valid 2-letter ISO 3166 code.
state_invalidERRORThe state provided is invalid for the given country.
postcode_missingWARNINGThe postcode is missing.
postcode_invalidERRORThe postcode provided is not valid for the given country.
address_field_not_foundERRORA referenced address field was not found in the resolved address.
address_free_form_not_subscribedERRORYour account is not subscribed to use free-form addresses. Use a predefined location.
address_code_type_invalidERRORAn address code type provided is not recognized.
duplicated_address_code_typeERRORThe same address code type appears more than once.
invalid_address_code_for_countryERRORThe provided address code is not accepted for the destination country.
partner_location_invalidERRORThe provided location does not exist.
partner_location_not_activeWARNINGThe provided location is not active.
time_slot_invalidWARNINGThe TimeSlot provided does not exist.

Carrier assignment

Error codeLevelDescription
carrier_account_invalidERRORThe carrier account provided does not exist.
invalid_input_carrierERRORThe carrier name provided for a pre-booked shipment is not recognized by Carriyo.
no_carrier_assignedERRORNo carrier account was assigned to the shipment.
no_automation_rule_set_foundERRORNo automation rule set is configured for this merchant; the shipment cannot be auto-assigned.
multiple_automation_rule_sets_foundERRORMore than one automation rule set matches; configuration is ambiguous.

Items

Error codeLevelDescription
items_missingERRORAt least one item is required on the shipment.
item_hscode_missingWARNINGItem HS code may be required for cross-border shipments.
item_origin_country_missingWARNINGItem origin country may be required for cross-border shipments.
item_origin_country_invalidERRORItem origin country code is not a valid ISO 3166 country code.
item_weight_missingWARNINGItem weight may be required for cross-border shipments.
item_missing_in_parcelWARNINGAn item on the shipment is not present in any parcel's parcel_items mapping.

Parcels & packages

Error codeLevelDescription
parcel_info_missingWARNINGParcel information may be required by the carrier. Provide at least one valid parcel.
parcel_info_ambiguousERRORParcel information is ambiguous (e.g. items spread inconsistently across parcels).
parcel_item_invalidERRORParcel items contain invalid data (e.g. quantity exceeds the item's quantity on the shipment).
parcel_weight_missingWARNINGParcel weight may be required by the carrier.
parcel_weight_exceedsERRORA parcel weight exceeds the carrier's maximum allowed weight.
parcel_dimensions_missingWARNINGParcel dimensions may be required by the carrier.
freight_weight_exceedsERRORThe total freight weight exceeds the carrier's maximum allowed weight.
package_reference_not_uniqueERRORA package reference is reused; package references must be unique within a shipment.
package_hierarchy_invalidERRORThe package hierarchy contains an invalid parent reference.
package_circular_referenceERRORThe package hierarchy contains a circular parent reference.
package_weight_invalidERRORA package weight is invalid (negative, zero, or non-numeric).
measurement_system_mixedERRORThe shipment mixes metric and imperial units; pick one system per shipment.

Payment

Error codeLevelDescription
payment_method_invalidERRORThe payment method is invalid. Allowed: PRE_PAID or CASH_ON_DELIVERY.
payment_currency_invalidERRORThe payment currency is invalid. Use a valid ISO 4217 code.
payment_pending_amount_invalid_for_codERRORThe pending amount for CASH_ON_DELIVERY is invalid. Provide a value greater than zero.
payment_pending_amount_invalid_for_prepaidERRORThe pending amount for PRE_PAID is invalid. Set to zero or omit.
amount_exceeds_limitERRORA monetary amount exceeds the allowed limit (999,999,999).

Custom attributes

Error codeLevelDescription
custom_attribute_invalidERRORThe custom attribute name does not exist for this tenant.
custom_attribute_not_subscribedERRORYour account is not subscribed to use custom attributes.
custom_attribute_value_invalidERRORInvalid value provided for the custom attribute.
custom_attribute_value_max_length_exceededERRORCustom attribute value exceeds the 100-character limit.

Cross-border / customs

Error codeLevelDescription
incoterms_invalidERRORThe incoterm is not recognized (must be one of CFR, CIF, CIP, CPT, DAF, DAP, DAT, DDP, DDU, DEQ, DES, DPU, EXW, FAS, FCA, FOB).
registration_number_type_invalidERRORA registration number type is not recognized (must be one of VAT, IOSS, EOR, EIN, GST, etc.).
battery_material_type_invalidERRORBattery material type is not recognized (lithium_ion or lithium_metal).
battery_packing_type_invalidERRORBattery packing type is not recognized (contained_in_equipment, packed_with_equipment, stand_alone).

Documents & labels

Error codeLevelDescription
label_format_invalidERRORThe requested label format is invalid. Allowed: PDF, PNG, ZPL.
weight_unit_invalidERRORThe weight unit is invalid. Allowed: KG.
dimension_unit_invalidERRORThe dimension unit is invalid. Allowed: CM.
template_parsing_failedERRORA document template failed to parse, likely a syntax error in the template configuration.

Source / lifecycle

Error codeLevelDescription
source_type_invalidWARNINGThe shipment source type provided is invalid.
status_change_not_allowedERRORThe requested status change is not permitted from the shipment's current state.
prebooked_tracking_errorERRORCarriyo could not initiate tracking for the pre-booked shipment (carrier rejected the lookup).
collection_scheduled_dates_invalidERRORThe collection schedule from/to dates are invalid (in the past, inverted, or outside carrier windows).
delivery_scheduled_dates_invalidERRORThe delivery schedule from/to dates are invalid.

Carrier integration

Error codeLevelDescription
shipment_id_not_generatedERRORThe carrier returned a successful response but did not generate a tracking number.
timeoutERRORThe carrier API timed out. Carriyo will retry automatically.
unexpected_responseERRORThe carrier returned a response Carriyo could not parse.
error_responseERRORThe carrier returned an error response. See the shipment's error_history for details.

Order & fulfillment

Error codeLevelDescription
fulfillment_location_missingERRORThe fulfillment order is missing a fulfillment_location.
open_line_item_id_invalidERRORA line item ID referenced in the fulfillment order does not exist on the order.
order_line_item_weight_unit_missingERRORAn order line item is missing the weight unit needed to compute fulfillment weight.
invalid_items_in_fulfillment_orderERROROne or more items on the fulfillment order are invalid.
invalid_fulfillment_id_in_fulfillment_order_update_requestERRORThe fulfillment_id in an update request does not match an existing fulfillment order.
partner_location_is_not_an_collection_locationERRORThe location referenced is not configured as a collection location.
delivery_address_missing_in_fulfillment_orderERRORThe fulfillment order has no delivery address.
customer_collection_address_missing_in_fulfillment_orderERRORA customer-collection fulfillment order is missing the customer's address.
delivery_option_invalidERRORThe delivery option referenced does not exist.
shipment_creation_failedERRORCarriyo could not create the shipment for the fulfillment order. The reason is in the message. Fix the cause and retry with the ship endpoint.
shipment_cancellation_failedERRORA shipment booked for the fulfillment order could not be cancelled when the fulfillment order left its location. Cancel the shipment by hand.

Deprecated codes

The following codes are still emitted for backwards-compatibility but should not be relied on for new integrations:

Error codeReplacement
email_missingemail_missing_error / email_missing_warning
phone_number_missingphone_number_missing_error / phone_number_missing_warning
collection_scheduled_dates_are_in_the_pastcollection_scheduled_dates_invalid