---
title: "Get Shipping Rates"
method: POST
path: "/v1/rates"
tags: ["rates"]
---

# Get Shipping Rates

`POST /v1/rates`

It's not uncommon that you want to give your customer the choice between whether they want to ship the fastest, cheapest, or the most trusted route. Most companies don't solely ship things using a single shipping option;
so we provide functionality to show you all your options!

## Request body

- CalculateRatesRequestBody
  - `rate_options` RateRequestBody — A rate request body
    - `carrier_ids` SeId[], required — Array of carrier ids to get rates for
    - `package_types` string[]
    - `service_codes` string[]
    - `calculate_tax_amount` boolean — Calculate the duties and tariffs for cross border shipments.
    - `preferred_currency` string — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
    - `is_return` boolean — Indicate if it's a return shipment
    - `rate_type` 'check' | 'shipment' | 'quick' — Indicates what type of rating to perform

## Response `200`

The request was a success.

- CalculateRatesResponseBody — The information necessary to ship a package, such as the origin, the destination, the carrier service, and the package dimensions and weight.
  - `shipment_id` string, required — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
  - `carrier_id` string — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
  - `service_code` string — A [carrier service](https://www.shipengine.com/docs/shipping/use-a-carrier-service/), such as `fedex_ground`, `usps_first_class_mail`, `flat_rate_envelope`, etc.
  - `shipping_rule_id` string — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
  - `external_order_id` string, nullable — ID that the Order Source assigned
  - `items` ShipmentItem[] — Describe the packages included in this shipment as related to potential metadata that was imported from external order sources
    - `name` string — item name
    - `sales_order_id` string, nullable — sales order id
    - `sales_order_item_id` string, nullable — sales order item id
    - `quantity` integer — The quantity of this item included in the shipment
    - `sku` string, nullable — Item Stock Keeping Unit
    - `bundle_sku` string, nullable — Item Stock Keeping Unit of the product bundle
    - `external_order_id` string, nullable — external order id
    - `external_order_item_id` string, nullable — external order item id
    - `asin` string, nullable — Amazon Standard Identification Number
    - `order_source_code` 'amazon_ca' | 'amazon_us' | 'brightpearl' | 'channel_advisor' | 'cratejoy' | 'ebay' | 'etsy' | 'jane' | 'groupon_goods' | 'magento' | 'paypal' | 'seller_active' | 'shopify' | 'stitch_labs' | 'squarespace' | 'three_dcart' | 'tophatter' | 'walmart' | 'woo_commerce' | 'volusion' — The order sources that are supported by ShipEngine
  - `tax_identifiers` TaxIdentifier[], nullable
    - `taxable_entity_type` 'shipper' | 'recipient' | 'ior', required — The taxable entity type for this tax item. Valid values include the following |Value |Description |:--------- |:----------------------------------------------------- |`shipper` | The shipper is responsible for this tax. |`recipient` | The recipient of the shipment is responsible for this tax. |`ior` | The importer of records is responsible for tax.
    - `identifier_type` 'vat' | 'eori' | 'ssn' | 'ein' | 'tin' | 'ioss' | 'pan' | 'voec' | 'pccc' | 'oss' | 'passport' | 'abn' | 'ukims', required — Tax identifier type for customs declaration |Pickup Type | Description |---------------|----------------------------------------- |`vat` | The tax identifier is a Value Added Tax. |`eori` | The tax identifier is an Economic Operators Registration and Identification Number (EORI). |`ssn` | The tax identifier is a Social Security Number. |`ein` | The tax identifier is an Employer Identification Number (EIN). |`tin` | The tax identifier is a Tax Identification Number (TIN). |`ioss` | The tax identifier is an Import One-Stop Shop (IOSS). |`pan` | The tax identifier is a Permanent Account Number (PAN). |`voec` | The tax identifier is a Norwegian VAT On E-Commerce(VOEC). |`pccc` | The tax identifier is a Personal Customs Clearance Code (PCCC). |`oss` | The tax identifier is an One-Stop Shop (OSS). |`passport` | The tax identifier is a Passport Number. |`abn` | The tax identifier is an Australian Business Number. |`ukims` | The tax identifier is an UK Internal Market Scheme number.
    - `issuing_authority` string, required — The authority that issued this tax. This must be a valid 2 character ISO 3166 Alpha 2 country code.
    - `value` string, required — The value of the identifier
  - `external_shipment_id` string, nullable — A unique user-defined key to identify a shipment. This can be used to retrieve the shipment. > **Warning:** The `external_shipment_id` is limited to 50 characters. Any additional characters will be truncated.
  - `shipment_number` string, nullable — A non-unique user-defined number used to identify a shipment. If undefined, this will match the external_shipment_id of the shipment. > **Warning:** The `shipment_number` is limited to 50 characters. Any additional characters will be truncated.
  - `ship_date` string, date-time, required — An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date, but not a specific time. The value _may_ contain a time component, but it will be set to `00:00:00` UTC by ShipEngine.
  - `created_at` string, date-time, required — An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date and time.
  - `modified_at` string, date-time, required — An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date and time.
  - `shipment_status` 'pending' | 'processing' | 'label_purchased' | 'cancelled', required — The possible shipment status values
  - `ship_to` ShippingAddressTo — A complete or partial mailing address.
    - `name` string, required — The name of a contact person at this address. This field may be set instead of - or in addition to - the `company_name` field.
    - `phone` string — The phone number of a contact person at this address. The format of this phone number varies depending on the country.
    - `email` string, nullable — Email for the address owner.
    - `company_name` string, nullable — If this is a business address, then the company name should be specified here.
    - `address_line1` string, required — The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines.
    - `address_line2` string, nullable — The second line of the street address. For some addresses, this line may not be needed.
    - `address_line3` string, nullable — The third line of the street address. For some addresses, this line may not be needed.
    - `city_locality` string, required — The name of the city or locality
    - `state_province` string, required — The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation.
    - `postal_code` string, required — postal code
    - `country_code` string — A two-letter [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1)
    - `address_residential_indicator` 'unknown' | 'yes' | 'no' — Indicates whether an address is residential.
    - `instructions` string, nullable — Additional text about how to handle the shipment at this address.
    - `geolocation` object[]
      - `type` 'what3words' — Enum of available type of geolocation items: - 'what3words' functionality allows to specify a location by providing 3 words that have been assign to the specific location see [link](https://what3words.com/business) for more details.
      - `value` string — value of the geolocation item
  - `ship_from` ShippingAddress — A complete or partial mailing address.
    - `name` string, required — The name of a contact person at this address. This field may be set instead of - or in addition to - the `company_name` field.
    - `phone` string — The phone number of a contact person at this address. The format of this phone number varies depending on the country.
    - `email` string, nullable — Email for the address owner.
    - `company_name` string, nullable — If this is a business address, then the company name should be specified here.
    - `address_line1` string, required — The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines.
    - `address_line2` string, nullable — The second line of the street address. For some addresses, this line may not be needed.
    - `address_line3` string, nullable — The third line of the street address. For some addresses, this line may not be needed.
    - `city_locality` string, required — The name of the city or locality
    - `state_province` string, required — The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation.
    - `postal_code` string, required — postal code
    - `country_code` string — A two-letter [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1)
    - `address_residential_indicator` 'unknown' | 'yes' | 'no' — Indicates whether an address is residential.
    - `instructions` string, nullable — Additional text about how to handle the shipment at this address.
  - `warehouse_id` string — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
  - `return_to` ShippingAddress, required — A complete or partial mailing address.
    - `name` string, required — The name of a contact person at this address. This field may be set instead of - or in addition to - the `company_name` field.
    - `phone` string — The phone number of a contact person at this address. The format of this phone number varies depending on the country.
    - `email` string, nullable — Email for the address owner.
    - `company_name` string, nullable — If this is a business address, then the company name should be specified here.
    - `address_line1` string, required — The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines.
    - `address_line2` string, nullable — The second line of the street address. For some addresses, this line may not be needed.
    - `address_line3` string, nullable — The third line of the street address. For some addresses, this line may not be needed.
    - `city_locality` string, required — The name of the city or locality
    - `state_province` string, required — The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation.
    - `postal_code` string, required — postal code
    - `country_code` string — A two-letter [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1)
    - `address_residential_indicator` 'unknown' | 'yes' | 'no' — Indicates whether an address is residential.
    - `instructions` string, nullable — Additional text about how to handle the shipment at this address.
  - `is_return` boolean, nullable — An optional indicator if the shipment is intended to be a return. Defaults to false if not provided.
  - `confirmation` 'none' | 'delivery' | 'signature' | 'adult_signature' | 'direct_signature' | 'delivery_mailed' | 'verbal_confirmation' | 'delivery_code' | 'age_verification_16_plus', required — The possible delivery confirmation values
  - `customs` InternationalShipmentOptions, required — Options for international shipments, such as customs declarations.
    - `contents` 'merchandise' | 'documents' | 'gift' | 'returned_goods' | 'sample' | 'other', required — The possible package contents values
    - `contents_explanation` string — Explanation for contents (required if the `contents` is provided as `other`)
    - `non_delivery` 'return_to_sender' | 'treat_as_abandoned', required — The possible non delivery values
    - `terms_of_trade_code` 'exw' | 'fca' | 'cpt' | 'cip' | 'dpu' | 'dap' | 'ddp' | 'fas' | 'fob' | 'cfr' | 'cif' | 'ddu' | 'daf' | 'deq' | 'des'
    - `declaration` string — Declaration statement to be placed on the commercial invoice
    - `invoice_additional_details` InvoiceAdditionalDetails — The additional information to put on commercial invoice
      - `freight_charge` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `insurance_charge` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `discount` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `estimated_import_charges` EstimatedImportCharges — Estimated import charges for commercial invoices for international shipments.
        - `taxes` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
          - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
          - `amount` number, required — The monetary amount, in the specified currency.
        - `duties` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
          - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
          - `amount` number, required — The monetary amount, in the specified currency.
      - `other_charge` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `other_charge_description` string — Description for the other charge (if provided).
      - `invoice_number` string — The invoice number to be used in the customs.
    - `importer_of_record` ImporterOfRecords — importer of records address, anywhere in the world.
      - `name` string, required — The name of a contact person at this address. Either `name` or the `company_name` field should always be set.
      - `phone` string — The phone number of a contact person at this address. The format of this phone number varies depending on the country.
      - `email` string, nullable — Email for the address owner.
      - `company_name` string, nullable — If this is a business address, then the company name should be specified here. Either `name` or the `company_name` field should always be set.
      - `address_line1` string, required — The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines.
      - `address_line2` string, nullable — The second line of the street address. For some addresses, this line may not be needed.
      - `address_line3` string, nullable — The third line of the street address. For some addresses, this line may not be needed.
      - `city_locality` string, required — The name of the city or locality
      - `state_province` string — The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation.
      - `postal_code` string, required — postal code
      - `country_code` string, required — A two-letter [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1)
    - `license_number` string — The license number to be used in the customs.
    - `certificate_number` string — The certificate number to be used in the customs.
    - `customs_items` CustomsItem[] — Customs declarations for each item in the shipment. (Please provide this information under `products` inside `packages`)
      - `customs_item_id` string, required — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
      - `description` string, nullable — A description of the item
      - `quantity` integer — The quantity of this item in the shipment.
      - `value` number — The monetary amount, in the specified currency.
      - `value_currency` string — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
      - `weight` Weight — The weight of a package
        - `value` number, required — The weight, in the specified unit
        - `unit` 'pound' | 'ounce' | 'gram' | 'kilogram', required — The possible weight unit values
      - `harmonized_tariff_code` string, nullable — The [Harmonized Tariff Code](https://en.wikipedia.org/wiki/Harmonized_System) of this item.
      - `country_of_origin` string — A two-letter [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1)
      - `unit_of_measure` string, nullable
      - `sku` string, nullable — The SKU (Stock Keeping Unit) of the customs item
      - `sku_description` string, nullable — Description of the Custom Item's SKU
  - `advanced_options` AdvancedShipmentOptions, required — Advanced shipment options
    - `bill_to_account` string, nullable — This field is used to [bill shipping costs to a third party](https://www.shipengine.com/docs/shipping/bill-to-third-party/). This field must be used in conjunction with the `bill_to_country_code`, `bill_to_party`, and `bill_to_postal_code` fields.
    - `bill_to_country_code` string — A two-letter [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1)
    - `bill_to_party` 'recipient' | 'third_party' — The possible bill to party values
    - `bill_to_postal_code` string, nullable — The postal code of the third-party that is responsible for shipping costs.
    - `contains_alcohol` boolean — Indicates that the shipment contains alcohol.
    - `delivered_duty_paid` boolean — Indicates that the shipper is paying the international delivery duties for this shipment. This option is supported by UPS, FedEx, and DHL Express.
    - `dry_ice` boolean — Indicates if the shipment contain dry ice
    - `dry_ice_weight` Weight — The weight of a package
      - `value` number, required — The weight, in the specified unit
      - `unit` 'pound' | 'ounce' | 'gram' | 'kilogram', required — The possible weight unit values
    - `non_machinable` boolean — Indicates that the package cannot be processed automatically because it is too large or irregularly shaped. This is primarily for USPS shipments. See [Section 1.2 of the USPS parcel standards](https://pe.usps.com/text/dmm300/101.htm#ep1047495) for details.
    - `saturday_delivery` boolean — Enables Saturday delivery, if supported by the carrier.
    - `fedex_freight` object — Provide details for the Fedex freight service
      - `shipper_load_and_count` string
      - `booking_confirmation` string
    - `use_ups_ground_freight_pricing` boolean, nullable — Whether to use [UPS Ground Freight pricing](https://www.shipengine.com/docs/shipping/ups-ground-freight/). If enabled, then a `freight_class` must also be specified.
    - `freight_class` string, nullable — The National Motor Freight Traffic Association [freight class](http://www.nmfta.org/pages/nmfc?AspxAutoDetectCookieSupport=1), such as "77.5", "110", or "250".
    - `custom_field1` string, nullable — An arbitrary field that can be used to store information about the shipment.
    - `custom_field2` string, nullable — An arbitrary field that can be used to store information about the shipment.
    - `custom_field3` string, nullable — An arbitrary field that can be used to store information about the shipment.
    - `origin_type` 'pickup' | 'drop_off' — Indicates if the package will be picked up or dropped off by the carrier
    - `additional_handling` boolean, nullable — Indicate to the carrier that this shipment requires additional handling.
    - `shipper_release` boolean, nullable
    - `collect_on_delivery` CollectOnDelivery — Defer payment until package is delivered, instead of when it is ordered.
      - `payment_type` 'any' | 'cash' | 'cash_equivalent' | 'none' — Types of payment that are supported
      - `payment_amount` PaymentAmount
        - `currency` string — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number
    - `third_party_consignee` boolean — Third Party Consignee option is a value-added service that allows the shipper to supply goods without commercial invoices being attached
    - `dangerous_goods` boolean — Indicates if the Dangerous goods are present in the shipment
    - `dangerous_goods_contact` object — Contact information for Dangerous goods
      - `name` string — Name of the contact
      - `phone` string — Phone number of the contact
    - `windsor_framework_details` object — The Windsor framework is a new regulation in the UK that simplifies customs procedures for goods moved from the UK mainland to Northern Ireland.
      - `movement_indicator` 'c2c' | 'b2c' | 'c2b' | 'b2b' — An indicator that will tell the carrier and HMRC the type of movement for the shipment.
      - `not_at_risk` boolean — An indicator that allows a shipper to declare the shipment as not-at-risk.
    - `license_number` string, nullable — license_number - This field was part of a historical implementation for passing customs-related data. For new integrations, please use the corresponding parameters within the shipment.customs object.
    - `invoice_number` string, nullable — invoice_number - This field was part of a historical implementation for passing customs-related data. For new integrations, please use the corresponding parameters within the shipment.customs object.
    - `certificate_number` string, nullable — certificate_number - This field was part of a historical implementation for passing customs-related data. For new integrations, please use the corresponding parameters within the shipment.customs object.
    - `fragile` boolean — Indicates that the contents of the package are fragile and should be handled with care.
    - `delivery-as-addressed` boolean — Instructs the carrier to deliver the package only to the exact address provided.
    - `return-after-first-attempt` boolean — Ensures the shipment is immediately flagged for return to the sender if the initial delivery attempt fails.
    - `regulated_content_type` 'day_old_poultry' | 'other_live_animal' — Indicates the category of goods in the shipment that is subject to special regulatory or compliance requirements.
  - `insurance_provider` 'none' | 'shipsurance' | 'carrier' | 'third_party', required — The possible insurance provider values
  - `tags` Tag[], required — Arbitrary tags associated with this shipment. Tags can be used to categorize shipments, and shipments can be queried by their tags.
    - `tag_id` integer — An integer uniquely identifying a tag.
    - `name` string, required — The tag name.
    - `color` string — A hex-coded string identifying the color of the tag.
  - `order_source_code` 'amazon_ca' | 'amazon_us' | 'brightpearl' | 'channel_advisor' | 'cratejoy' | 'ebay' | 'etsy' | 'jane' | 'groupon_goods' | 'magento' | 'paypal' | 'seller_active' | 'shopify' | 'stitch_labs' | 'squarespace' | 'three_dcart' | 'tophatter' | 'walmart' | 'woo_commerce' | 'volusion' — The order sources that are supported by ShipEngine
  - `packages` Package[], required — The packages in the shipment. > **Note:** Some carriers only allow one package per shipment. If you attempt to create a multi-package shipment for a carrier that doesn't allow it, an error will be returned.
    - `shipment_package_id` string — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
    - `package_id` string — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
    - `package_code` string — A [package type](https://www.shipengine.com/docs/reference/list-carrier-packages/), such as `thick_envelope`, `small_flat_rate_box`, `large_package`, etc. Use the code `package` for custom or unknown package types.
    - `package_name` string — The name of the of the [package type](https://www.shipengine.com/docs/reference/list-carrier-packages/)
    - `weight` Weight, required — The weight of a package
      - `value` number, required — The weight, in the specified unit
      - `unit` 'pound' | 'ounce' | 'gram' | 'kilogram', required — The possible weight unit values
    - `dimensions` Dimensions — The dimensions of a package
      - `unit` 'inch' | 'centimeter', required — The dimension units that are supported by ShipEngine.
      - `length` number, required — The length of the package, in the specified unit
      - `width` number, required — The width of the package, in the specified unit
      - `height` number, required — The height of the package, in the specified unit
    - `insured_value` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
      - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
      - `amount` number, required — The monetary amount, in the specified currency.
    - `label_messages` LabelMessages — Custom messages to print on the shipping label for the package. These are typically used to print invoice numbers, product numbers, or other internal reference numbers. Not all carriers support label messages. The number of lines and the maximum length of each line also varies by carrier. |Carrier |Max lines |Max line length |-------------------|----------|-------------------- |USPS (Stamps.com) |3 |60 |FedEx |3 |35 for the first line. 30 for additional lines. |UPS |2 |35 |OnTrac |2 |25
      - `reference1` string, nullable, required — The first line of the custom label message. Some carriers may prefix this line with something like "REF", "Reference", "Trx Ref No.", etc.
      - `reference2` string, nullable, required — The second line of the custom label message. Some carriers may prefix this line with something like "INV", "Reference 2", "Trx Ref No.", etc.
      - `reference3` string, nullable, required — The third line of the custom label message. Some carriers may prefix this line with something like "PO", "Reference 3", etc.
    - `external_package_id` string — An external package id.
    - `tracking_number` string — A tracking number for a package. The format depends on the carrier.
    - `content_description` string, nullable — A short description of the package content. Required for shipments moving to, from, and through Mexico.
    - `products` Products[] — Details about products inside packages (Information provided would be used on custom documentation)
      - `description` string, nullable — A description of the item
      - `quantity` integer — The quantity of this item in the shipment.
      - `value` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `weight` Weight — The weight of a package
        - `value` number, required — The weight, in the specified unit
        - `unit` 'pound' | 'ounce' | 'gram' | 'kilogram', required — The possible weight unit values
      - `harmonized_tariff_code` string, nullable — The [Harmonized Tariff Code](https://en.wikipedia.org/wiki/Harmonized_System) of this item.
      - `country_of_origin` string — A two-letter [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1)
      - `unit_of_measure` string, nullable
      - `sku` string, nullable — The SKU (Stock Keeping Unit) of the item
      - `sku_description` string, nullable — Description of the Custom Item's SKU
      - `mid_code` string, nullable — Manufacturers Identification code
      - `product_url` string, nullable — link to the item on the seller website
      - `vat_rate` number, nullable — VAT rate applicable to the item
      - `dangerous_goods` DangerousGoods[] — Details about dangerous goods inside products
        - `id_number` string, nullable — UN number to identify the dangerous goods.
        - `shipping_name` string, nullable — Trade description of the dangerous goods.
        - `technical_name` string, nullable — Recognized Technical or chemical name of dangerous goods.
        - `product_class` string, nullable — Dangerous goods product class based on regulation.
        - `product_class_subsidiary` string, nullable — A secondary of product class for substances presenting more than one particular hazard
        - `packaging_group` 'i' | 'ii' | 'iii'
        - `dangerous_amount` DangerousAmount — This model represents the amount of the dangerous goods..
          - `amount` number — The amount of dangerous goods.
          - `unit` string, nullable — The unit of dangerous goods.
        - `quantity` integer — Quantity of dangerous goods.
        - `packaging_instruction` string, nullable — The specific standardized packaging instructions from the relevant regulatory agency that have been applied to the parcel/container.
        - `packaging_instruction_section` 'section_1' | 'section_2' | 'section_1a' | 'section_1b'
        - `packaging_type` string, nullable — The type of exterior packaging used to contain the dangerous good.
        - `transport_mean` 'ground' | 'water' | 'cargo_aircraft_only' | 'passenger_aircraft'
        - `transport_category` string, nullable — Transport category assign to dangerous goods for the transport purpose.
        - `regulation_authority` string, nullable — Name of the regulatory authority.
        - `regulation_level` 'lightly_regulated' | 'fully_regulated' | 'limited_quantities' | 'excepted_quantity'
        - `radioactive` boolean, nullable — Indication if the substance is radioactive.
        - `reportable_quantity` boolean, nullable — Indication if the substance needs to be reported to regulatory authority based on the quantity.
        - `tunnel_code` string, nullable — Defines which types of tunnels the shipment is allowed to go through
        - `additional_description` string, nullable — Provider additonal description regarding the dangerous goods. This is used as a placed holder to provider additional context and varies by carrier
      - `extended_details` object — Additional details about products
  - `total_weight` Weight, required — The weight of a package
    - `value` number, required — The weight, in the specified unit
    - `unit` 'pound' | 'ounce' | 'gram' | 'kilogram', required — The possible weight unit values
  - `comparison_rate_type` string, nullable — Calculate a rate for this shipment with the requested carrier using a ratecard that differs from the default. Only supported for UPS and USPS.
  - `zone` integer, nullable — Certain carriers base [their rates](https://blog.stamps.com/2017/09/08/usps-postal-zones/) off of custom zones that vary depending upon the ship_to and ship_from location
  - `rate_response` RatesInformation, required — A rates information resource
    - `rates` object[] — An array of shipment rates
      - `rate_id` string, required — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
      - `rate_type` 'check' | 'shipment', required — The possible rate type values
      - `carrier_id` string, required — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
      - `shipping_amount` MonetaryValue, required — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `insurance_amount` MonetaryValue, required — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `confirmation_amount` MonetaryValue, required — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `other_amount` MonetaryValue, required — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `requested_comparison_amount` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `tax_amount` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `rate_details` RateDetail[] — A list of rate details that are associated with this rate. This is useful for displaying a breakdown of the rate to the user.
        - `rate_detail_type` 'uncategorized' | 'shipping' | 'insurance' | 'confirmation' | 'discount' | 'fuel_charge' | 'additional_fees' | 'tariff' | 'tax' | 'delivery' | 'handling' | 'special_goods' | 'pickup' | 'location_fee' | 'oversize' | 'returns' | 'notifications' | 'tip' | 'duties_and_taxes' | 'brokerage_fee' | 'admin_fee' | 'adjustment' — The possible rate detail type values
        - `carrier_description` string — A rate detail description defined by a carrier
        - `carrier_billing_code` string — A rate detail code defined by a carrier
        - `carrier_memo` string — Contains any additional information
        - `amount` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
          - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
          - `amount` number, required — The monetary amount, in the specified currency.
        - `rate_detail_attributes` RateDetailAttributes — Represents detailed information about a tax (e.g. VAT) contained in a shipping cost.
          - `tax_type` 'vat' — Type of a tax added to shipping cost
          - `tax_percentage` number — Tax percentage, e.g. 20 for 20%, added to the shipping cost
        - `billing_source` string — The source of the billing information. This is typically the carrier, but could be a third party, e.g insurance
      - `zone` integer, nullable, required — Certain carriers base [their rates](https://blog.stamps.com/2017/09/08/usps-postal-zones/) off of custom zones that vary depending upon the ship_to and ship_from location
      - `package_type` string, nullable, required — package type that this rate was estimated for
      - `delivery_days` integer, nullable — The number of days estimated for delivery, this will show the _actual_ delivery time if for example, the package gets shipped on a Friday
      - `guaranteed_service` boolean, required — Indicates if the rate is guaranteed.
      - `estimated_delivery_date` string, date-time — An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date, but not a specific time. The value _may_ contain a time component, but it will be set to `00:00:00` UTC by ShipEngine.
      - `carrier_delivery_days` string — The carrier delivery days
      - `ship_date` string, date-time — ship date
      - `negotiated_rate` boolean, required — Indicates if the rates been negotiated
      - `service_type` string, required — service type
      - `service_code` string, required — service code for the rate
      - `trackable` boolean, required — Indicates if rate is trackable
      - `carrier_code` string, required — carrier code
      - `carrier_nickname` string, required — carrier nickname
      - `carrier_friendly_name` string, required — carrier friendly name
      - `validation_status` 'valid' | 'invalid' | 'has_warnings' | 'unknown', required — The possible validation status values
      - `warning_messages` string[], required — The warning messages
      - `error_messages` string[], required — The error messages
      - `rate_attributes` RateAttributes[] — Optional attributes that indicate the most profitable rates
    - `invalid_rates` Rate[] — An array of invalid shipment rates
      - `rate_id` string, required — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
      - `rate_type` 'check' | 'shipment', required — The possible rate type values
      - `carrier_id` string, required — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
      - `shipping_amount` MonetaryValue, required — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `insurance_amount` MonetaryValue, required — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `confirmation_amount` MonetaryValue, required — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `other_amount` MonetaryValue, required — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `requested_comparison_amount` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `tax_amount` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
        - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
        - `amount` number, required — The monetary amount, in the specified currency.
      - `rate_details` RateDetail[] — A list of rate details that are associated with this rate. This is useful for displaying a breakdown of the rate to the user.
        - `rate_detail_type` 'uncategorized' | 'shipping' | 'insurance' | 'confirmation' | 'discount' | 'fuel_charge' | 'additional_fees' | 'tariff' | 'tax' | 'delivery' | 'handling' | 'special_goods' | 'pickup' | 'location_fee' | 'oversize' | 'returns' | 'notifications' | 'tip' | 'duties_and_taxes' | 'brokerage_fee' | 'admin_fee' | 'adjustment' — The possible rate detail type values
        - `carrier_description` string — A rate detail description defined by a carrier
        - `carrier_billing_code` string — A rate detail code defined by a carrier
        - `carrier_memo` string — Contains any additional information
        - `amount` MonetaryValue — A monetary value, such as the price of a shipping label, the insured value of a package, or an account balance.
          - `currency` string, required — The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html
          - `amount` number, required — The monetary amount, in the specified currency.
        - `rate_detail_attributes` RateDetailAttributes — Represents detailed information about a tax (e.g. VAT) contained in a shipping cost.
          - `tax_type` 'vat' — Type of a tax added to shipping cost
          - `tax_percentage` number — Tax percentage, e.g. 20 for 20%, added to the shipping cost
        - `billing_source` string — The source of the billing information. This is typically the carrier, but could be a third party, e.g insurance
      - `zone` integer, nullable, required — Certain carriers base [their rates](https://blog.stamps.com/2017/09/08/usps-postal-zones/) off of custom zones that vary depending upon the ship_to and ship_from location
      - `package_type` string, nullable, required — package type that this rate was estimated for
      - `delivery_days` integer, nullable — The number of days estimated for delivery, this will show the _actual_ delivery time if for example, the package gets shipped on a Friday
      - `guaranteed_service` boolean, required — Indicates if the rate is guaranteed.
      - `estimated_delivery_date` string, date-time — An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date, but not a specific time. The value _may_ contain a time component, but it will be set to `00:00:00` UTC by ShipEngine.
      - `carrier_delivery_days` string — The carrier delivery days
      - `ship_date` string, date-time — ship date
      - `negotiated_rate` boolean, required — Indicates if the rates been negotiated
      - `service_type` string, required — service type
      - `service_code` string, required — service code for the rate
      - `trackable` boolean, required — Indicates if rate is trackable
      - `carrier_code` string, required — carrier code
      - `carrier_nickname` string, required — carrier nickname
      - `carrier_friendly_name` string, required — carrier friendly name
      - `validation_status` 'valid' | 'invalid' | 'has_warnings' | 'unknown', required — The possible validation status values
      - `warning_messages` string[], required — The warning messages
      - `error_messages` string[], required — The error messages
    - `rate_request_id` string — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
    - `shipment_id` string — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
    - `created_at` string — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
    - `status` 'working' | 'completed' | 'partial' | 'error' — The possible rate response status values
    - `errors` Error[]
      - `error_source` 'carrier' | 'order_source' | 'shipengine', required — The source of the error, as indicated by the name this informs us if the API call failed because of the carrier, the order source, or the ShipEngine API itself.
      - `error_type` 'account_status' | 'business_rules' | 'validation' | 'security' | 'system' | 'integrations', required — The type of error
      - `error_code` 'auto_fund_not_supported' | 'batch_cannot_be_modified' | 'carrier_conflict' | 'carrier_disconnected' | 'carrier_not_connected' | 'carrier_not_supported' | 'confirmation_not_supported' | 'default_warehouse_cannot_be_deleted' | 'field_conflict' | 'field_value_required' | 'forbidden' | 'identifier_conflict' | 'identifiers_must_match' | 'insufficient_funds' | 'invalid_address' | 'invalid_billing_plan' | 'invalid_field_value' | 'invalid_identifier' | 'invalid_status' | 'invalid_string_length' | 'label_images_not_supported' | 'meter_failure' | 'order_source_not_active' | 'rate_limit_exceeded' | 'refresh_not_supported' | 'request_body_required' | 'return_label_not_supported' | 'settings_not_supported' | 'subscription_inactive' | 'terms_not_accepted' | 'tracking_not_supported' | 'trial_expired' | 'unauthorized' | 'unknown' | 'unspecified' | 'verification_failure' | 'warehouse_conflict' | 'webhook_event_type_conflict' | 'customs_items_required' | 'incompatible_paired_labels' | 'invalid_charge_event' | 'invalid_object' | 'no_rates_returned' | 'file_not_found' | 'shipping_rule_not_found' | 'service_not_determined' | 'no_rates_returned' | 'funding_source_registration_in_progress' | 'insurance_failure' | 'funding_source_missing_configuration' | 'funding_source_error', required — The error code specified for the failed API Call
      - `message` string, required — An error message associated with the failed API call
      - `carrier_id` string — A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
      - `carrier_code` string — A [shipping carrier](https://www.shipengine.com/docs/carriers/setup/), such as `fedex`, `dhl_express`, `stamps_com`, etc.
      - `field_name` string — The name of the field that caused the error

## Other responses

- `400` — The request contained errors.
- `500` — An error occurred on ShipEngine's side. > This error will automatically be reported to our engineers.

---

[API](https://skmtc.net/shipengine/apis/shipengine-api.md) · [All operations](https://skmtc.net/shipengine/apis/shipengine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shipengine/shipengine-api/versions/6af91511d87e/schema)
