{"componentChunkName":"component---src-templates-redoc-operation-js","path":"/freight/reference/operation/cancel-freight-pickup/","result":{"data":{"contentItem":{"type":"redoc-operation","link":"/freight/reference/operation/cancel-freight-pickup/","data":{"redocStoreStr":"{\"menu\":{\"activeItemIdx\":-1},\"definition\":{\"data\":{\"openapi\":\"3.0.0\",\"info\":{\"title\":\"Freight API\",\"description\":\"API specification for LTL/FTL freight integrations.\\n\\nNote: date and time formats must adhere to [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) as component parts of ISO 8601.\\n\\nA 200 response means the operation succeeded. When it fails, for example because the carrier rejects the request, the response is an `ErrorResponse` with a 4xx or 5xx status. Its `detailed_errors[].normalized_error_code` says what went wrong; the codes freight modules use are listed in that field's description.\",\"version\":\"1.0.0\",\"contact\":{\"name\":\".\"}},\"servers\":[{\"url\":\"http://localhost:3000\",\"description\":\"localhost\"}],\"security\":[{\"FreightApiCode\":[]}],\"tags\":[{\"name\":\"Pickup\"}],\"paths\":{\"/cancel-freight-pickup\":{\"post\":{\"summary\":\"Cancel Freight Pickup\",\"description\":\"Cancel a scheduled freight pickup. When the carrier consolidates multiple shipments onto one confirmation number (for example XPO), supply `bol_number` to cancel only that shipment and omit it to cancel the entire pickup.\\n\\nCancelling a pickup that is already cancelled is a success, so repeating a cancel is safe.\\n\\nWhen the operation fails, the response is an `ErrorResponse` with a 4xx or 5xx status and a code in `detailed_errors[].normalized_error_code`.\",\"operationId\":\"cancel-freight-pickup\",\"parameters\":[],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/CancelFreightPickupResponse\"},\"examples\":{\"cancelled\":{\"summary\":\"Cancelled\",\"value\":{\"transaction_id\":\"txn-exla-0002\",\"carrier_code\":\"EXLA\",\"status\":\"cancelled\",\"confirmation_number\":\"124381117\",\"cancellation_date\":\"2026-10-08T14:32:00Z\"}},\"alreadyCancelled\":{\"summary\":\"Already cancelled (repeating a cancel is safe)\",\"value\":{\"transaction_id\":\"txn-exla-0005\",\"carrier_code\":\"EXLA\",\"status\":\"cancelled\",\"confirmation_number\":\"124381117\",\"message\":\"The pickup was already cancelled\"}}}}},\"description\":\"OK\"},\"400\":{\"description\":\"Bad Request\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"401\":{\"description\":\"Unauthorized\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"403\":{\"description\":\"Forbidden\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"404\":{\"description\":\"Not Found\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"409\":{\"description\":\"Conflict\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"422\":{\"description\":\"Unprocessable Entity\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"429\":{\"description\":\"Too Many Requests\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"500\":{\"description\":\"Internal Server Error\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"503\":{\"description\":\"Service Unavailable\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"520\":{\"description\":\"External Server Error\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}},\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/CancelFreightPickupRequest\"},\"examples\":{\"entirePickup\":{\"summary\":\"Cancel an entire pickup\",\"value\":{\"transaction_id\":\"txn-exla-0002\",\"carrier_code\":\"EXLA\",\"confirmation_number\":\"124381117\",\"reason\":\"customer_request\"}},\"singleShipment\":{\"summary\":\"Cancel one shipment on a consolidated pickup (e.g. XPO)\",\"value\":{\"transaction_id\":\"txn-cnwy-0003\",\"carrier_code\":\"CNWY\",\"confirmation_number\":\"7781234\",\"bol_number\":\"BOL-44219\",\"reason\":\"schedule_conflict\",\"comments\":\"Freight not ready\"}}}}}},\"tags\":[\"Pickup\"]}},\"/schedule-freight-pickup\":{\"post\":{\"summary\":\"Schedule Freight Pickup\",\"description\":\"Schedule a freight pickup / dispatch. One shipment per pickup. In response the carrier will supply a confirmation number and possibly a PRO number as well. If a confirmation number is not returned but the request succeeded the user will need to follow up with the carrier directly to ensure that they received the request. If a PRO number is not returned then one will be assigned by the carrier at the time of pickup. Additionally some carriers might not support specifying a delivery window for pickup requests. If that is the case the user will again need to coordinate that directly with the carrier.\\n\\nWeights are totals: `commodities[].weight` is required and is the sum for the commodity across all `count` units of its handling unit, and `handling_units[].tare_weight` is the optional packaging weight (for example the pallets) for all `count` units. Do not multiply either by `count`. There is no handling unit weight: the gross weight of an entry is the sum of its commodity weights plus `tare_weight`. `dimensions` on a handling unit describe one unit.\\n\\nIn order to send test pickup requests you can set `carrier.test = true`, however if a carrier does not support that functionality it is up to the integration app to handle that flag appropriately by returning an error to the user explaining it's not supported instead of scheduling a pickup with the carrier.\\n\\nWhen the operation fails, the response is an `ErrorResponse` with a 4xx or 5xx status and a code in `detailed_errors[].normalized_error_code`.\",\"operationId\":\"schedule-freight-pickup\",\"parameters\":[],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ScheduleFreightPickupResponse\"},\"examples\":{\"confirmed\":{\"summary\":\"Confirmed by the carrier\",\"value\":{\"transaction_id\":\"txn-exla-0001\",\"carrier_code\":\"EXLA\",\"status\":\"confirmed\",\"confirmation_number\":\"124381117\",\"pro_number\":\"0123456789\"}}}}},\"description\":\"OK\"},\"400\":{\"description\":\"Bad Request\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"401\":{\"description\":\"Unauthorized\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"403\":{\"description\":\"Forbidden\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"404\":{\"description\":\"Not Found\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"409\":{\"description\":\"Conflict\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"422\":{\"description\":\"Unprocessable Entity\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"429\":{\"description\":\"Too Many Requests\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"500\":{\"description\":\"Internal Server Error\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"503\":{\"description\":\"Service Unavailable\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}},\"520\":{\"description\":\"External Server Error\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}},\"requestBody\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ScheduleFreightPickupRequest\"},\"examples\":{\"estes\":{\"summary\":\"Estes (EXLA) - mixed-class unit with hazmat\",\"value\":{\"transaction_id\":\"txn-exla-0001\",\"carrier_code\":\"EXLA\",\"bol_number\":\"BOL-44219\",\"carrier\":{\"instructions\":\"Call ahead, dock 4\"},\"service_level\":\"standard\",\"pickup\":{\"date\":\"2026-10-12\",\"earliest_time\":\"08:00\",\"latest_time\":\"16:00\"},\"handling_units\":[{\"count\":2,\"package_type\":\"pallet\",\"stackable\":true,\"tare_weight\":{\"value\":60,\"unit\":\"pounds\"},\"dimensions\":{\"length\":48,\"width\":40,\"height\":48,\"unit\":\"inches\"},\"commodities\":[{\"description\":\"Bagged plastic resin pellets\",\"freight_class\":55,\"nmfc_code\":\"156600\",\"package_type\":\"bag\",\"pieces\":40,\"weight\":{\"value\":840,\"unit\":\"pounds\"}}]},{\"count\":1,\"package_type\":\"pallet\",\"stackable\":false,\"tare_weight\":{\"value\":30,\"unit\":\"pounds\"},\"dimensions\":{\"length\":48,\"width\":40,\"height\":60,\"unit\":\"inches\"},\"commodities\":[{\"description\":\"Industrial cleaning solvent, small containers\",\"freight_class\":92.5,\"package_type\":\"case\",\"pieces\":12,\"weight\":{\"value\":240,\"unit\":\"pounds\"},\"hazardous\":{\"identification_number_type\":\"UN\",\"identification_number\":\"UN1090\",\"shipping_name\":\"Acetone\",\"hazard_class\":\"3\",\"packaging_group\":\"II\",\"emergency_contact\":{\"name\":\"Jane Doe\",\"phone_number\":\"5555550123\"}}}]}],\"accessorials\":[{\"code\":\"liftgate_pickup\"},{\"code\":\"appointment_delivery\"}],\"reference_identifiers\":[{\"type\":\"purchase_order\",\"value\":\"PO-88213\"}],\"shipment_totals\":{\"linear_feet\":8},\"ship_from\":{\"address\":{\"location_name\":\"Acme Plastics Inc\",\"address_lines\":[\"4210 Industrial Pkwy\"],\"city_locality\":\"Elkhart\",\"state_province\":\"IN\",\"postal_code\":\"46514\",\"country_code\":\"US\",\"location_type\":\"distribution_center\"},\"contact\":{\"name\":\"Sam Warehouse\",\"phone_number\":\"5555550100\",\"email\":\"warehouse@acmeplastics.example\"}},\"ship_to\":{\"address\":{\"location_name\":\"Riverside Manufacturing\",\"address_lines\":[\"900 River Rd\",\"Building C\"],\"city_locality\":\"Nashville\",\"state_province\":\"TN\",\"postal_code\":\"37201\",\"country_code\":\"US\",\"location_type\":\"commercial\"},\"contact\":{\"name\":\"Pat Receiving\",\"phone_number\":\"5555550199\",\"email\":\"receiving@riverside.example\"}},\"bill_to\":{\"type\":\"shipper\",\"payment_terms\":\"prepaid\"},\"requested_by\":{\"location_name\":\"Acme Plastics Inc\",\"contact\":{\"name\":\"Sam Warehouse\",\"phone_number\":\"5555550100\",\"email\":\"warehouse@acmeplastics.example\"}}}}}}}},\"tags\":[\"Pickup\"]}}},\"components\":{\"schemas\":{\"Accessorial\":{\"type\":\"object\",\"properties\":{\"code\":{\"$ref\":\"#/components/schemas/AccessorialCode\"}},\"required\":[\"code\"],\"description\":\"A service offered by a carrier in addition to transportation, such as a liftgate at pickup.\"},\"AccessorialCode\":{\"type\":\"string\",\"enum\":[\"liftgate_pickup\",\"liftgate_delivery\",\"inside_pickup\",\"inside_delivery\",\"appointment_pickup\",\"appointment_delivery\",\"notify_before_delivery\",\"sort_and_segregate\",\"protect_from_freeze\",\"over_length\",\"pallet_jack_pickup\",\"pallet_jack_delivery\"],\"description\":\"The canonical accessorial vocabulary. Limited access and residential locations are expressed with `Address.location_type`, and the level of service is expressed with `service_level`, not here.\"},\"Address\":{\"type\":\"object\",\"properties\":{\"location_name\":{\"type\":\"string\",\"description\":\"The name of the business or site at this address, for example a company name or the name of a warehouse or store. Optional, because a location such as a residence may not have one.\"},\"address_lines\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"The street address, one line per element, with between one and three lines. Carriers use the first one or two lines and some truncate long lines, so put the street address first.\",\"minItems\":1,\"maxItems\":3},\"city_locality\":{\"type\":\"string\",\"description\":\"The city or locality of the shipment address.\"},\"state_province\":{\"type\":\"string\",\"description\":\"The state or province of the shipment address.\"},\"postal_code\":{\"type\":\"string\",\"description\":\"The postal code of the shipment address.\"},\"country_code\":{\"type\":\"string\",\"description\":\"The two character country code of the shipment address. The codes are specified by ISO 3166-1 alpha-2.\",\"minLength\":2,\"maxLength\":2}},\"required\":[\"address_lines\",\"city_locality\",\"state_province\",\"postal_code\",\"country_code\"]},\"BillingPartyType\":{\"type\":\"string\",\"enum\":[\"consignee\",\"shipper\",\"third_party\"]},\"BillingPaymentTerms\":{\"type\":\"string\",\"enum\":[\"collect\",\"prepaid\",\"third_party\"]},\"CancelFreightPickupReason\":{\"type\":\"string\",\"enum\":[\"customer_request\",\"schedule_conflict\",\"business_closure\",\"other\"],\"description\":\"Why the pickup is being cancelled. Use `other` and explain in `comments`.\"},\"CancelFreightPickupRequest\":{\"type\":\"object\",\"properties\":{\"transaction_id\":{\"type\":\"string\",\"description\":\"A unique ID for this request, set by the caller and echoed back in the response for tracing. It is not a business identifier.\"},\"carrier_code\":{\"type\":\"string\",\"description\":\"Identifies the carrier this request is for. For US LTL carriers this is the carrier's SCAC, for example `EXLA`. It matches `Codes[].SCAC` in the app's carrier metadata.\\n\\nThis is not an `ApiCode`, which is an identifier in the ShipEngine registry.\"},\"auth\":{\"type\":\"object\",\"additionalProperties\":{},\"description\":\"The carrier authorization information needed to fulfill this request. The shape is intentionally undefined and may vary by carrier. It is currently unused, carrier apps read their credentials from environment variables.\"},\"confirmation_number\":{\"type\":\"string\",\"description\":\"The confirmation number of the pickup to cancel.\"},\"reason\":{\"$ref\":\"#/components/schemas/CancelFreightPickupReason\"},\"comments\":{\"type\":\"string\",\"description\":\"Free text notes for the carrier about the cancellation.\",\"maxLength\":200},\"bol_number\":{\"type\":\"string\",\"description\":\"The BOL of the specific shipment to cancel when the carrier consolidates multiple shipments onto one confirmation number (for example XPO). Omit to cancel the entire pickup. Ignored by carriers that do not consolidate.\",\"maxLength\":50}},\"required\":[\"carrier_code\",\"confirmation_number\",\"transaction_id\"],\"description\":\"Cancel a scheduled freight pickup.\"},\"CancelFreightPickupResponse\":{\"type\":\"object\",\"properties\":{\"transaction_id\":{\"type\":\"string\",\"description\":\"The `transaction_id` from the request.\"},\"carrier_code\":{\"type\":\"string\",\"description\":\"The `carrier_code` from the request. For US LTL carriers this is the carrier's SCAC.\"},\"status\":{\"$ref\":\"#/components/schemas/CancelFreightPickupStatus\"},\"confirmation_number\":{\"type\":\"string\"},\"cancellation_date\":{\"type\":\"string\",\"description\":\"When the pickup (or, when `bol_number` was supplied, the targeted shipment) was cancelled.\",\"format\":\"date-time\"},\"items_removed\":{\"type\":\"integer\",\"description\":\"Informational only. When `bol_number` was supplied on a consolidated pickup, the number of line items removed for that BOL.\",\"minimum\":1},\"message\":{\"type\":\"string\"},\"warnings\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Warning\"}}},\"required\":[\"carrier_code\",\"status\",\"transaction_id\"],\"description\":\"The outcome of a cancel pickup request that succeeded. When the cancel fails, the module throws a Connect runtime error with a code from `FreightErrorCodes`, and the caller gets an `ErrorResponse` instead.\"},\"CancelFreightPickupStatus\":{\"type\":\"string\",\"description\":\"`cancelled` when the pickup is cancelled, including when it was already cancelled, so repeating a cancel is safe.\",\"enum\":[\"cancelled\"]},\"Commodity\":{\"type\":\"object\",\"properties\":{\"description\":{\"type\":\"string\",\"description\":\"A plain description of the goods, as it should appear on the BOL.\"},\"freight_class\":{\"$ref\":\"#/components/schemas/FreightClass\",\"description\":\"The NMFC freight class. Optional, because carriers do not need it to schedule a pickup and intra-Canada shipments have no class. When it is sent, it must be one of the NMFC classes.\"},\"nmfc_code\":{\"type\":\"string\",\"description\":\"NMFC commodity code / item number\"},\"package_type\":{\"$ref\":\"#/components/schemas/PackageType\",\"description\":\"The packaging of each piece of this commodity, for example `box` pieces on a `pallet` handling unit. Optional, because not every source knows it.\"},\"pieces\":{\"type\":\"integer\",\"description\":\"The number of separately packaged pieces of this commodity, as counted on the BOL (for example boxes, cartons, bags or drums), not the number of items inside them. 5 boxes that each hold 100 mirrors is 5 pieces. `package_type` says what the pieces are.\\n\\nIt is the total across all `count` units of its handling unit: 2 pallets with 20 boxes each is 40 pieces. Like `weight`, do not multiply by `count`.\",\"minimum\":1},\"weight\":{\"$ref\":\"#/components/schemas/Weight\",\"description\":\"The total weight of this commodity, that is the sum for all of its `pieces` across all `count` units of its handling unit, not a per piece weight. Do not multiply by `count`.\"},\"dimensions\":{\"$ref\":\"#/components/schemas/Dimensions\"},\"hazardous\":{\"$ref\":\"#/components/schemas/HazardousDetails\"}},\"required\":[\"description\",\"pieces\",\"weight\"],\"description\":\"A line item inside a handling unit. A handling unit can hold commodities of different freight classes.\"},\"Contact\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"phone_number\":{\"type\":\"string\"},\"email\":{\"type\":\"string\",\"description\":\"Optional, because not every party has one (for example a residential consignee). A module whose carrier needs an email throws a `BadRequestError` with `PARAMETER_REQUIRED`.\"}},\"required\":[\"name\",\"phone_number\"]},\"DeliveryWindow\":{\"type\":\"object\",\"properties\":{\"date\":{\"type\":\"string\",\"description\":\"Date Format: YYYY-MM-DD\",\"format\":\"date\"},\"earliest_time\":{\"$ref\":\"#/components/schemas/LocalTime\"},\"latest_time\":{\"$ref\":\"#/components/schemas/LocalTime\",\"description\":\"Must be after `earliest_time`. The schema can't express this, so carrier apps must check it themselves and throw a `BadRequestError` with the `INVALID_PARAMETER_VALUE` code if it isn't.\"}},\"required\":[\"date\",\"earliest_time\",\"latest_time\"],\"description\":\"Delivery timing: the window in which the freight should be delivered. Times are local to the delivery location. Omit it entirely for carriers that do not support delivery dates.\"},\"DimensionUnitType\":{\"type\":\"string\",\"enum\":[\"inches\",\"centimeters\"]},\"Dimensions\":{\"type\":\"object\",\"properties\":{\"width\":{\"type\":\"number\"},\"height\":{\"type\":\"number\"},\"length\":{\"type\":\"number\"},\"unit\":{\"$ref\":\"#/components/schemas/DimensionUnitType\"}},\"required\":[\"width\",\"height\",\"length\",\"unit\"]},\"ErrorResponse\":{\"title\":\"ErrorResponse\",\"type\":\"object\",\"properties\":{\"transaction_id\":{\"type\":\"string\",\"description\":\"The transaction ID of the request. Left out when the request did not carry one.\"},\"message\":{\"type\":\"string\"},\"detailed_errors\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"external_error_code\":{\"type\":\"string\",\"description\":\"The carrier's own error code, when it gave one.\"},\"message\":{\"type\":\"string\"},\"external_http_status_code\":{\"type\":\"integer\",\"description\":\"The HTTP status the carrier returned, when there was one.\"},\"field_name\":{\"type\":\"string\",\"description\":\"The request field the error is about, when known.\"},\"raw_external_context\":{\"type\":\"string\",\"description\":\"The carrier's raw response or error, as a JSON string, to help with troubleshooting.\"},\"normalized_error_code\":{\"type\":\"string\",\"description\":\"A code from the Connect runtime's normalized error library, when the module supplied one. It is a string, not an enum, so new codes can be added without breaking callers.\\n\\nThe codes freight modules use, grouped by what the caller should do:\\n\\n**Fix the request and resubmit**\\n- `INVALID_PARAMETER_VALUE`: the carrier rejected a value, for example a wrong format, too long or invalid characters.\\n- `PARAMETER_REQUIRED`: the carrier needs a value that was not sent.\\n- `PHONE_NUMBER_INCORRECT_FORMAT`: the carrier rejected a contact phone number.\\n- `INCORRECT_ADDRESS`: the address is not recognized or is not serviceable.\\n- `FREIGHT_PICKUP_WINDOW_NOT_AVAILABLE`: the pickup date or time cannot be used, for example it is in the past, on a weekend or holiday, past the cutoff, or the carrier cannot pick up that day.\\n- `SERVICE_NOT_AVAILABLE`: the carrier will not serve this request, for example an embargoed origin or destination, or a service level it does not offer.\\n- `SHIPPING_OPTION_NOT_AVAILABLE`: the carrier does not offer a requested option, for example a liftgate.\\n\\n**Fix credentials or access**\\n- `CREDENTIALS_REQUIRED`: the connection has no credentials for the carrier.\\n- `AUTHENTICATION_FAILED`: the credentials were rejected.\\n- `ACCOUNT_NUMBER_INVALID`: the carrier doesn't recognize the shipper's account number.\\n- `UNAUTHORIZED_ACCESS`: the credentials are valid but the account cannot do this.\\n\\n**Try again later**\\n- `SERVICE_CURRENTLY_UNAVAILABLE`: the carrier's service is down or timing out.\\n- `RATE_LIMIT_EXCEEDED`: too many requests.\\n\\n**Cancel only**\\n- `RESOURCE_NOT_FOUND`: the carrier does not know the confirmation number or BOL.\\n- `SHIPMENT_CANCELLATION_NOT_AVAILABLE`: the carrier cannot cancel right now, so try again later.\\n- `SHIPMENT_CANCELLATION_NOT_ALLOWED`: the pickup cannot be cancelled, for example it has already been dispatched. Also use this when the carrier does not say whether the pickup was already cancelled or cannot be cancelled.\\n- `CANCELLATION_FAILED`: the cancel failed for another reason.\\n\\n**Follow up by hand**\\n- `GENERAL_EXCEPTION`: any other failure, including carrier errors that cannot be classified.\"},\"normalized_error_message\":{\"type\":\"string\",\"description\":\"The standard message for `normalized_error_code`.\"}}}},\"status_code\":{\"type\":\"integer\",\"description\":\"The HTTP status of this response.\"},\"retry_after_seconds\":{\"type\":\"number\"},\"retry_after_time\":{\"type\":\"string\"},\"throttling_context\":{\"type\":\"object\"}}},\"FreightClass\":{\"type\":\"number\",\"enum\":[50,55,60,65,70,77.5,85,92.5,100,110,125,150,175,200,250,300,400,500],\"description\":\"NMFC freight class.\"},\"HandlingUnit\":{\"type\":\"object\",\"properties\":{\"count\":{\"type\":\"integer\",\"description\":\"A multiplier (\\\"2 of these\\\"), not a per piece count. `dimensions` describe ONE unit, while `tare_weight` is the total for all `count` units of this entry.\",\"minimum\":1},\"package_type\":{\"$ref\":\"#/components/schemas/PackageType\",\"description\":\"The kind of handling unit, for example `pallet`, `skid` or `crate`.\"},\"stackable\":{\"type\":\"boolean\",\"description\":\"Whether other freight can be stacked on top of this unit.\"},\"tare_weight\":{\"$ref\":\"#/components/schemas/Weight\",\"description\":\"The total weight of the packaging (for example the pallet) for all `count` units of this entry, not the packaging weight of one unit. A handling unit with `count: 2` and `tare_weight.value: 60` is two pallets weighing 60 in total (30 each). Do not multiply by `count`.\\n\\nOmit it when the packaging weight is not known. The gross weight of the entry is the sum of the commodity weights plus `tare_weight`.\"},\"dimensions\":{\"$ref\":\"#/components/schemas/Dimensions\",\"description\":\"The dimensions of ONE unit.\"},\"commodities\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Commodity\"},\"minItems\":1}},\"required\":[\"count\",\"package_type\",\"stackable\",\"dimensions\",\"commodities\"],\"description\":\"A physical unit being picked up (a pallet, box, skid, ...) holding one or more commodities.\"},\"HazardousDetails\":{\"type\":\"object\",\"properties\":{\"identification_number_type\":{\"type\":\"string\",\"enum\":[\"UN\",\"NA\"],\"description\":\"Whether the identification number is a UN or an NA number.\"},\"identification_number\":{\"type\":\"string\",\"description\":\"The identification number, for example `UN1090`.\"},\"shipping_name\":{\"type\":\"string\",\"description\":\"The proper shipping name from the DOT Hazardous Materials Table, for example `Flammable liquids, n.o.s.`.\"},\"hazard_class\":{\"type\":\"string\",\"description\":\"The hazard class, for example `3`.\"},\"packaging_group\":{\"type\":\"string\",\"enum\":[\"I\",\"II\",\"III\"],\"description\":\"The packing group, by degree of danger: `I` (high), `II` (medium) or `III` (low).\"},\"technical_name\":{\"type\":\"string\",\"description\":\"The specific chemical name, for example `Toluene, Xylene`. DOT requires it alongside the proper shipping name when that name is a generic \\\"n.o.s.\\\" entry.\"},\"emergency_contact\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"phone_number\":{\"type\":\"string\",\"description\":\"Named like `Contact.phone_number`.\"}},\"required\":[\"name\",\"phone_number\"],\"description\":\"The 24 hour emergency response contact required for hazardous materials.\"}},\"required\":[\"identification_number_type\",\"identification_number\",\"shipping_name\",\"hazard_class\",\"emergency_contact\"],\"description\":\"Details of a hazardous commodity. Only present for hazardous commodities.\"},\"LocalTime\":{\"type\":\"string\",\"description\":\"A 24 hour `HH:MM` time, local to the pickup or delivery location.\",\"pattern\":\"^([01]\\\\d|2[0-3]):[0-5]\\\\d$\"},\"LocatedAddress\":{\"type\":\"object\",\"properties\":{\"location_name\":{\"type\":\"string\",\"description\":\"The name of the business or site at this address, for example a company name or the name of a warehouse or store. Optional, because a location such as a residence may not have one.\"},\"address_lines\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"The street address, one line per element, with between one and three lines. Carriers use the first one or two lines and some truncate long lines, so put the street address first.\",\"minItems\":1,\"maxItems\":3},\"city_locality\":{\"type\":\"string\",\"description\":\"The city or locality of the shipment address.\"},\"state_province\":{\"type\":\"string\",\"description\":\"The state or province of the shipment address.\"},\"postal_code\":{\"type\":\"string\",\"description\":\"The postal code of the shipment address.\"},\"country_code\":{\"type\":\"string\",\"description\":\"The two character country code of the shipment address. The codes are specified by ISO 3166-1 alpha-2.\",\"minLength\":2,\"maxLength\":2},\"location_type\":{\"$ref\":\"#/components/schemas/LocationType\",\"description\":\"What kind of location this is.\"}},\"required\":[\"address_lines\",\"city_locality\",\"country_code\",\"location_type\",\"postal_code\",\"state_province\"],\"description\":\"An address for a pickup or delivery location, where the kind of location is required.\"},\"LocationType\":{\"type\":\"string\",\"enum\":[\"residential\",\"commercial\",\"construction_site\",\"military\",\"government_facility\",\"country_club\",\"mall\",\"distribution_center\",\"utility_site\",\"pier_port_wharf\",\"container_freight_station\",\"park\",\"mine\",\"tradeshow\",\"airport\",\"carrier_terminal\"],\"description\":\"A single-value classification of an address location. It replaces a residential flag and the family of mutually exclusive limited access accessorials (a location cannot be both a mall and a mine).\"},\"PackageType\":{\"type\":\"string\",\"enum\":[\"bag\",\"bale\",\"box\",\"bundle\",\"carton\",\"case\",\"crate\",\"cylinder\",\"drum\",\"pail\",\"pallet\",\"pieces\",\"reel\",\"roll\",\"skid\",\"tank\",\"tote\",\"trailer\",\"tube\"],\"description\":\"The kind of packaging, for a handling unit (for example a `pallet`) or for the pieces of a commodity on it (for example `box`). The same values as freight-provider-service's `PackageType`. A carrier module maps them to the carrier's own codes (for example `carton` to `CTN`).\"},\"Party\":{\"type\":\"object\",\"properties\":{\"address\":{\"$ref\":\"#/components/schemas/LocatedAddress\"},\"contact\":{\"$ref\":\"#/components/schemas/Contact\"}},\"required\":[\"address\",\"contact\"],\"description\":\"An address and the contact at that address.\"},\"PickupWindow\":{\"type\":\"object\",\"properties\":{\"date\":{\"type\":\"string\",\"description\":\"Date Format: YYYY-MM-DD\",\"format\":\"date\"},\"earliest_time\":{\"$ref\":\"#/components/schemas/LocalTime\"},\"latest_time\":{\"$ref\":\"#/components/schemas/LocalTime\",\"description\":\"Must be after `earliest_time`. The schema can't express this, so carrier apps must check it themselves and throw a `BadRequestError` with the `INVALID_PARAMETER_VALUE` code if it isn't.\"}},\"required\":[\"date\",\"earliest_time\",\"latest_time\"],\"description\":\"Pickup timing: the window in which the freight is ready to be picked up. Times are local to the pickup location.\"},\"ReferenceIdentifier\":{\"type\":\"object\",\"properties\":{\"type\":{\"$ref\":\"#/components/schemas/ReferenceIdentifierType\"},\"value\":{\"type\":\"string\"}},\"required\":[\"type\",\"value\"]},\"ReferenceIdentifierType\":{\"type\":\"string\",\"enum\":[\"pro\",\"purchase_order\",\"quote\",\"other\"],\"description\":\"Secondary references for a shipment. The BOL number is the shipment's primary identifier, so it has its own `bol_number` field instead of being listed here.\"},\"RequestingParty\":{\"type\":\"object\",\"properties\":{\"location_name\":{\"type\":\"string\",\"description\":\"The name of the business or site making the request. Named like `Address.location_name`, and optional for the same reason: a person booking a residential pickup may not have one.\"},\"contact\":{\"$ref\":\"#/components/schemas/Contact\"}},\"required\":[\"contact\"],\"description\":\"Who is requesting the pickup.\"},\"ScheduleFreightPickupRequest\":{\"type\":\"object\",\"properties\":{\"transaction_id\":{\"type\":\"string\",\"description\":\"A unique ID for this request, set by the caller and echoed back in the response for tracing. It is not a business identifier.\"},\"carrier_code\":{\"type\":\"string\",\"description\":\"Identifies the carrier this request is for. For US LTL carriers this is the carrier's SCAC, for example `EXLA`. It matches `Codes[].SCAC` in the app's carrier metadata.\\n\\nThis is not an `ApiCode`, which is an identifier in the ShipEngine registry.\"},\"auth\":{\"type\":\"object\",\"additionalProperties\":{},\"description\":\"The carrier authorization information needed to fulfill this request. The shape is intentionally undefined and may vary by carrier. It is currently unused, carrier apps read their credentials from environment variables.\"},\"bol_number\":{\"type\":\"string\",\"description\":\"The bill of lading number, the shipper's primary identifier for this shipment.\",\"minLength\":1,\"maxLength\":50},\"service_level\":{\"$ref\":\"#/components/schemas/ServiceLevel\",\"description\":\"The level of service requested. Not all carriers accept a service level as part of a schedule pickup, but it is always provided in case the carrier requires it.\"},\"pickup\":{\"$ref\":\"#/components/schemas/PickupWindow\"},\"delivery\":{\"$ref\":\"#/components/schemas/DeliveryWindow\"},\"handling_units\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/HandlingUnit\"},\"minItems\":1},\"accessorials\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Accessorial\"}},\"reference_identifiers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/ReferenceIdentifier\"}},\"shipment_totals\":{\"$ref\":\"#/components/schemas/ShipmentTotals\"},\"ship_from\":{\"$ref\":\"#/components/schemas/Party\"},\"ship_to\":{\"$ref\":\"#/components/schemas/Party\"},\"bill_to\":{\"type\":\"object\",\"properties\":{\"type\":{\"$ref\":\"#/components/schemas/BillingPartyType\",\"description\":\"Who is billed.\"},\"payment_terms\":{\"$ref\":\"#/components/schemas/BillingPaymentTerms\",\"description\":\"How the shipment is paid for.\"},\"account\":{\"type\":\"string\",\"description\":\"Account number to bill.\"},\"address\":{\"$ref\":\"#/components/schemas/Address\"},\"contact\":{\"$ref\":\"#/components/schemas/Contact\"}},\"required\":[\"type\",\"payment_terms\"]},\"requested_by\":{\"$ref\":\"#/components/schemas/RequestingParty\"},\"carrier\":{\"type\":\"object\",\"properties\":{\"instructions\":{\"type\":\"string\",\"description\":\"Optional instructions for the carrier\"},\"test\":{\"type\":\"boolean\",\"description\":\"By setting `test` to true a pickup will not be created with the carrier.\"}}}},\"required\":[\"bill_to\",\"bol_number\",\"carrier_code\",\"handling_units\",\"pickup\",\"requested_by\",\"service_level\",\"ship_from\",\"ship_to\",\"transaction_id\"],\"description\":\"Schedule a freight pickup / dispatch. One shipment per pickup.\"},\"ScheduleFreightPickupResponse\":{\"type\":\"object\",\"properties\":{\"transaction_id\":{\"type\":\"string\",\"description\":\"The `transaction_id` from the request.\"},\"carrier_code\":{\"type\":\"string\",\"description\":\"The `carrier_code` from the request. For US LTL carriers this is the carrier's SCAC.\"},\"status\":{\"$ref\":\"#/components/schemas/ScheduleFreightPickupStatus\"},\"confirmation_number\":{\"type\":\"string\",\"description\":\"The carrier confirmation number for the shipment. If a confirmation number is not supplied the user will need to confirm the pickup with the carrier directly.\"},\"pro_number\":{\"type\":\"string\",\"description\":\"The PRO number for the shipment assigned by the carrier. If a number is not returned here the carrier will issue one at the time of pickup.\"},\"message\":{\"type\":\"string\",\"description\":\"Notes about the pickup that the user should be made aware of.\"},\"warnings\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Warning\"},\"description\":\"Optional warnings returned by the carrier for this pickup.\"}},\"required\":[\"carrier_code\",\"status\",\"transaction_id\"],\"description\":\"The outcome of a schedule pickup request that the carrier accepted. When the carrier rejects the request or can't be reached, the module throws a Connect runtime error with a code from `FreightErrorCodes`, and the caller gets an `ErrorResponse` instead.\"},\"ScheduleFreightPickupStatus\":{\"type\":\"string\",\"enum\":[\"confirmed\",\"pending\"],\"description\":\"- `confirmed`: the carrier accepted the pickup. `confirmation_number` is normally present.\\n- `pending`: the carrier received the request but has not confirmed it yet (for example it confirms asynchronously). There is no confirmation number yet, so the user should follow up with the carrier.\"},\"ServiceLevel\":{\"type\":\"string\",\"enum\":[\"standard\",\"expedited\",\"guaranteed\"],\"description\":\"The level of service requested for the shipment: `standard`, `expedited` or `guaranteed`.\\n\\nNot every carrier accepts a service level as part of a schedule pickup request. It is always provided so that carriers which do need it can use it; carrier apps whose carrier ignores it can ignore it too.\"},\"ShipmentTotals\":{\"type\":\"object\",\"properties\":{\"linear_feet\":{\"type\":\"number\",\"description\":\"The length of trailer the shipment occupies, in feet.\",\"minimum\":0}},\"required\":[\"linear_feet\"],\"description\":\"Shipment level totals. Only linear feet for now.\"},\"Warning\":{\"type\":\"object\",\"properties\":{\"external_code\":{\"type\":\"string\",\"description\":\"The carrier's own code for the warning. Not every carrier provides one.\"},\"message\":{\"type\":\"string\",\"description\":\"The warning text from the carrier.\"}},\"required\":[\"message\"],\"description\":\"A warning returned by the carrier.\"},\"Weight\":{\"type\":\"object\",\"properties\":{\"value\":{\"type\":\"number\"},\"unit\":{\"$ref\":\"#/components/schemas/WeightUnitType\"}},\"required\":[\"value\",\"unit\"]},\"WeightUnitType\":{\"type\":\"string\",\"enum\":[\"grams\",\"kilograms\",\"ounces\",\"pounds\"]}},\"securitySchemes\":{\"FreightApiCode\":{\"name\":\"The freight carrier API code as defined in the registry.\",\"type\":\"apiKey\",\"in\":\"header\"}}}}},\"options\":{\"hideTryItPanel\":false,\"pagination\":\"item\",\"disableSearch\":true,\"ctrlFHijack\":false,\"disableSidebar\":true,\"theme\":{\"overrides\":{\"DownloadButton\":{\"custom\":\"\"},\"NextSectionButton\":{\"custom\":\"\"}},\"codeBlock\":{\"tokens\":{}},\"schema\":{\"constraints\":{},\"examples\":{}},\"rightPanel\":{\"textColor\":\"#eeeeee\"},\"typography\":{\"heading1\":{},\"heading2\":{},\"heading3\":{},\"rightPanelHeading\":{}}}}}","redocHasSecurityDefinitions":false,"redocInfoPageLink":"/freight/reference/overview/","redocItemId":"tag/Pickup/operation/cancel-freight-pickup","redocHasInfoPage":false,"settings":null,"requestLogin":false,"lastModified":"2022-06-20T16:03:17.000Z"},"seo":{"title":"Cancel Freight Pickup"}}},"pageContext":{"id":"66991bfc-b04a-5933-9ef6-166c29bb1dfcoperation/cancel-freight-pickup__redocly content/freight/reference/operation/cancel-freight-pickup/","seo":{"title":"Cancel Freight Pickup","description":"Cancel a scheduled freight pickup. When the carrier consolidates multiple shipments onto one confirmation number (for example XPO), supply `bol_number` to cancel only that shipment and omit it to cancel the entire pickup.\n\nCancelling a pickup that is already cancelled is a success, so repeating a cancel is safe.\n\nWhen the operation fails, the response is an `ErrorResponse` with a 4xx or 5xx status and a code in `detailed_errors[].normalized_error_code`.","image":"","keywords":null,"jsonLd":null,"lang":null,"siteUrl":null},"pageId":"freight/reference.page.yaml#operation/cancel-freight-pickup","pageBaseUrl":"/freight/reference","type":"redoc-operation","toc":{"enable":true,"maxDepth":4,"headings":null},"data":{},"catalogInfo":null,"link":"/freight/reference/operation/cancel-freight-pickup/","sidebarName":"root","isLanding":false,"showPrevButton":null,"showNextButton":null,"apiVersions":[{"definitionId":"freight","id":"freight","title":"freight","isDefault":true,"apiId":null}],"apiVersionId":null,"isDefaultApiVersion":true}},"staticQueryHashes":["1123603147","1302185487","1344209882","1398840060","1520077861","1975142765","2667623876","2950305614","3240152602","3743992808","561138138"]}