### POST /websites/developer_fedex_api_en-us_catalog_rate_v1 Source: https://developer.fedex.com/api/en-us/catalog/rate/v1/docs Submit a request to get rate quotes and transit times. The request requires account information and detailed shipment specifications. ```APIDOC ## POST /rates ### Description Requests a list of all possible rate quotes and optional transit information based on input details, such as account number and shipment details. ### Method POST ### Endpoint /rates ### Parameters #### Request Body - **accountNumber** (string) - Required - The FedEx account number. - **shipmentDetails** (object) - Required - Details of the shipment. - **serviceType** (string) - Optional - The specific service type to request rates for. - **rateRequestTypes** (array) - Optional - Specifies the type of rates to request (e.g., LIST, ACCOUNT). - **returnTransitTimes** (boolean) - Optional - Whether to include transit time information in the response. - **processingOptions** (object) - Optional - Options for processing the request, such as including pickup rates. - **INCLUDE_PICKUPRATES** (enumeration) - Required if requesting pickup rates. - **requestType** (string) - Optional - Type of pickup rate quote (FUTURE_DAY or same day). - **pickupDetail** (object) - Required if requestType is FUTURE_DAY. - **readyDate** (string) - Required - The ready date for pickup. - **latestPickupDate** (string) - Required - The latest pickup date. - **carrierCode** (string) - Optional - The carrier code to filter results by. - **rateSortOrder** (string) - Optional - The desired order for sorting rate quote data. ### Request Example ```json { "accountNumber": "YOUR_ACCOUNT_NUMBER", "shipmentDetails": { "serviceType": "FEDEX_GROUND", "rateRequestTypes": ["LIST", "ACCOUNT"], "returnTransitTimes": true, "processingOptions": { "INCLUDE_PICKUPRATES": "INCLUDE_PICKUPRATES" }, "requestType": "FUTURE_DAY", "pickupDetail": { "readyDate": "2024-12-01", "latestPickupDate": "2024-12-01" }, "carrierCode": "FDXG", "rateSortOrder": "PAYOR_FIRST" } } ``` ### Response #### Success Response (200) - **rateQuotes** (array) - A list of rate quotes. - **serviceType** (string) - The service type. - **serviceDescription** (string) - Description of the service. - **packagingType** (string) - The type of packaging. - **commitmentDetails** (object) - Details about the commitment. - **dayTransitEstimated** (string) - Estimated days in transit. - **deliveryDayOfWeek** (string) - Day of the week for delivery. - **rates** (array) - Details of the rates. - **rateType** (string) - Type of rate (LIST, PREFERRED, INCENTIVE, ACCOUNT). - **charge** (number) - The charge amount. - **surcharges** (array) - List of surcharges. - **discounts** (array) - List of discounts. - **fees** (array) - List of fees. - **taxes** (array) - List of taxes. - **transitTimes** (array) - Optional transit time information. #### Response Example ```json { "rateQuotes": [ { "serviceType": "FEDEX_GROUND", "serviceDescription": "FedEx Ground", "packagingType": "YOUR_PACKAGING", "commitmentDetails": { "dayTransitEstimated": "2", "deliveryDayOfWeek": "TUESDAY" }, "rates": [ { "rateType": "LIST", "charge": 15.50, "surcharges": [], "discounts": [], "fees": [], "taxes": [] } ] } ], "transitTimes": [ { "serviceType": "FEDEX_GROUND", "estimatedDeliveryDate": "2024-12-03" } ] } ``` ``` -------------------------------- ### GET /rate Source: https://developer.fedex.com/api/en-us/catalog/rate/v1/docs Retrieves shipping rate details for a given shipment. This endpoint allows users to get estimated costs, delivery times, and other relevant information for their shipments. ```APIDOC ## GET /rate ### Description Retrieves shipping rate details for a given shipment. This endpoint allows users to get estimated costs, delivery times, and other relevant information for their shipments. ### Method GET ### Endpoint /rate ### Parameters #### Query Parameters - **includeOnlyFedExSpecifiedServices** (boolean) - Optional - If true, only FedEx-specified services will be returned. - **customerReflectionsLevel** (string) - Optional - Indicates the level of customer reflections to be included in the response. ### Request Example ```json { "query": "/rate?includeOnlyFedExSpecifiedServices=true&customerReflectionsLevel=DETAILS" } ``` ### Response #### Success Response (200) - **output** (object) - Contains the rate details for the shipment. - **rateReplyDetails** (array) - An array of objects, each representing a rate reply for a specific service. - **serviceType** (string) - The type of service (e.g., "INTERNATIONAL_ECONOMY", "FEDEX_GROUND"). - **serviceName** (string) - The name of the service. - **packagingType** (string) - The type of packaging used. - **customerMessages** (array) - An array of customer messages related to the service. - **ratedShipmentDetails** (array) - An array of objects detailing the rated shipment. - **rateType** (string) - The type of rate. - **ratedWeightMethod** (string) - The method used for rating the weight. - **totalDiscounts** (number) - The total discounts applied. - **totalBaseCharge** (number) - The total base charge for the shipment. - **totalNetCharge** (number) - The total net charge for the shipment. - **totalVatCharge** (number) - The total VAT charge. - **totalNetFedExCharge** (number) - The total net FedEx charge. - **totalDutiesAndTaxes** (number) - The total duties and taxes. - **totalNetChargeWithDutiesAndTaxes** (number) - The total net charge including duties and taxes. - **totalDutiesTaxesAndFees** (number) - The total duties, taxes, and fees. - **totalAncillaryFeesAndTaxes** (number) - The total ancillary fees and taxes. - **shipmentRateDetail** (object) - Details about the shipment's rate. - **rateZone** (string) - The rate zone for the shipment. - **dimDivisor** (number) - The dimensional divisor. - **fuelSurchargePercent** (number) - The fuel surcharge percentage. - **totalSurcharges** (number) - The total surcharges. - **totalFreightDiscount** (number) - The total freight discount. - **surCharges** (array) - An array of surcharge objects. - **type** (string) - The type of surcharge. - **description** (string) - Description of the surcharge. - **level** (string) - The level at which the surcharge applies. - **amount** (number) - The amount of the surcharge. - **totalBillingWeight** (object) - The total billing weight of the shipment. - **units** (string) - The units of the billing weight. - **value** (number) - The value of the billing weight. - **currency** (string) - The currency of the charges. - **ratedPackages** (array) - An array of objects detailing the rated packages. - **groupNumber** (number) - The group number of the package. - **effectiveNetDiscount** (number) - The effective net discount for the package. - **packageRateDetail** (object) - Details about the package rate. - **rateType** (string) - The type of rate for the package. - **ratedWeightMethod** (string) - The method used for rating the package weight. - **baseCharge** (number) - The base charge for the package. - **netFreight** (number) - The net freight charge for the package. - **totalSurcharges** (number) - The total surcharges for the package. - **netFedExCharge** (number) - The net FedEx charge for the package. #### Response Example ```json { "output": { "rateReplyDetails": [ { "serviceType": "INTERNATIONAL_ECONOMY", "serviceName": "FedEx International Economy®", "packagingType": "YOUR_PACKAGING", "customerMessages": [ { "code": "SERVICE.TYPE.INTERNATIONAL.MESSAGE", "message": "Rate does not include duties & taxes, clearance entry fees or other import fees. The payor of duties/taxes/fees will be responsible for any applicable Clearance Entry Fees." } ], "ratedShipmentDetails": [ { "rateType": "PAYOR_ACCOUNT_PACKAGE", "ratedWeightMethod": "ACTUAL", "totalDiscounts": 0, "totalBaseCharge": 15.24, "totalNetCharge": 15.24, "totalVatCharge": 0, "totalNetFedExCharge": 15.24, "totalDutiesAndTaxes": 0, "totalNetChargeWithDutiesAndTaxes": 15.24, "totalDutiesTaxesAndFees": 0, "totalAncillaryFeesAndTaxes": 0, "shipmentRateDetail": { "rateZone": "52", "dimDivisor": 0, "fuelSurchargePercent": 7.5, "totalSurcharges": 1.02, "totalFreightDiscount": 0, "surCharges": [ { "type": "FUEL", "description": "Fuel Surcharge", "level": "PACKAGE", "amount": 1.02 } ], "totalBillingWeight": { "units": "LB", "value": 22 }, "currency": "USD" }, "ratedPackages": [ { "groupNumber": 0, "effectiveNetDiscount": 0, "packageRateDetail": { "rateType": "PAYOR_ACCOUNT_PACKAGE", "ratedWeightMethod": "ACTUAL", "baseCharge": 15.24, "netFreight": 15.24, "totalSurcharges": 1.02, "netFedExCharge": 15.24 } } ] } ], "currencyExchangeRate": { "fromCurrency": "CAD", "intoCurrency": "USD", "rate": 0.77 }, "totalBillingWeight": { "units": "LB", "value": 22 }, "currency": "USD" }, { "serviceType": "FEDEX_GROUND", "serviceName": "FedEx International Ground ", "packagingType": "YOUR_PACKAGING", "customerMessages": [ { "code": "SERVICE.TYPE.INTERNATIONAL.MESSAGE", "message": "Rate does not include duties & taxes, clearance entry fees or other import fees. The payor of duties/taxes/fees will be responsible for any applicable Clearance Entry Fees." }, { "code": "EDT.DETAILS.MISSING", "message": "The harmonized code for the commodity at array index 1 is missing or invalid; estimated duties and taxes were not returned." } ], "ratedShipmentDetails": [ { "rateType": "ACCOUNT", "ratedWeightMethod": "ACTUAL", "totalDiscounts": 2.79, "totalBaseCharge": 49.85, "totalNetCharge": 53.59, "totalVatCharge": 0, "totalNetFedExCharge": 53.59, "totalDutiesAndTaxes": 0, "totalNetChargeWithDutiesAndTaxes": 53.59, "totalDutiesTaxesAndFees": 0, "totalAncillaryFeesAndTaxes": 0, "shipmentRateDetail": { "rateZone": "52", "dimDivisor": 0, "fuelSurchargePercent": 7.5, "totalSurcharges": 3.74, "totalFreightDiscount": 0, "surCharges": [ { "type": "FUEL", "description": "Fuel Surcharge", "level": "PACKAGE", "amount": 3.74 } ], "totalBillingWeight": { "units": "LB", "value": 22 }, "currency": "CAD" }, "ratedPackages": [ { "groupNumber": 0, "effectiveNetDiscount": 2.79, "packageRateDetail": { "rateType": "PAYOR_ACCOUNT_PACKAGE", "ratedWeightMethod": "ACTUAL", "baseCharge": 49.85, "netFreight": 49.85, "totalSurcharges": 3.74, "netFedExCharge": 53.59 } } ] } ] } ] } } ``` ``` -------------------------------- ### POST /rate Source: https://developer.fedex.com/api/en-us/catalog/rate/v1/docs Calculates shipping rates for a given shipment. This endpoint requires detailed information about the origin, destination, package, and payment. ```APIDOC ## POST /rate ### Description Calculates shipping rates for a given shipment. This endpoint requires detailed information about the origin, destination, package, and payment. ### Method POST ### Endpoint /rate ### Parameters #### Request Body - **rateRequest** (object) - Required - The main object for rate requests. - **packageCount** (string) - Optional - The number of packages. - **pickupLocationNumber** (string) - Optional - The pickup location number. - **pickupSourceInfo** (object) - Optional - Pickup source information. - **pickupLocationId** (string) - Required - The pickup location ID. - **carrierCode** (string) - Required - The carrier code (e.g., "FDXE", "FDXG"). - **requestedShipment** (object) - Required - Details of the requested shipment. - **shipDatestamp** (string) - Required - The shipment date stamp. - **serviceType** (string) - Required - The service type (e.g., "FEDEX_GROUND"). - **packagingType** (string) - Required - The packaging type (e.g., "YOUR_PACKAGING"). - **totalWeight** (object) - Required - The total weight of the shipment. - **units** (string) - Required - The weight units (e.g., "LB"). - **value** (number) - Required - The weight value. - **dropoffType** (string) - Required - The dropoff type (e.g., "REGULAR_PICKUP"). - **origin** (object) - Required - The origin of the shipment. - **postalCode** (string) - Required - The postal code of the origin. - **countryCode** (string) - Required - The country code of the origin. - **residential** (boolean) - Optional - Indicates if the origin is residential. - **destination** (object) - Required - The destination of the shipment. - **postalCode** (string) - Required - The postal code of the destination. - **countryCode** (string) - Required - The country code of the destination. - **residential** (boolean) - Optional - Indicates if the destination is residential. - **recipient** (object) - Required - The recipient's contact information. - **contact** (object) - Required - Recipient contact details. - **personName** (string) - Optional - The person's name. - **emailAddress** (string) - Optional - The email address. - **phoneNumber** (string) - Optional - The phone number. - **phoneExtension** (string) - Optional - The phone extension. - **companyName** (string) - Optional - The company name. - **faxNumber** (string) - Optional - The fax number. - **accountNumber** (object) - Optional - Recipient account number. - **value** (string) - Required - The account number value. - **paymentType** (string) - Required - The payment type (e.g., "SENDER"). - **commodities** (array) - Required - A list of commodities in the shipment. - **description** (string) - Required - Description of the commodity. - **weight** (object) - Required - Weight of the commodity. - **units** (string) - Required - Weight units (e.g., "LB"). - **value** (number) - Required - Weight value. - **quantity** (number) - Required - Quantity of the commodity. - **customsValue** (object) - Optional - Customs value of the commodity. - **amount** (string) - Required - The amount. - **currency** (string) - Required - The currency (e.g., "USD"). - **unitPrice** (object) - Optional - Unit price of the commodity. - **amount** (string) - Required - The amount. - **currency** (string) - Required - The currency (e.g., "USD"). - **numberOfPieces** (number) - Optional - Number of pieces for the commodity. - **countryOfManufacture** (string) - Optional - Country of manufacture. - **quantityUnits** (string) - Optional - Units for the quantity (e.g., "PCS"). - **name** (string) - Required - Name of the commodity. - **harmonizedCode** (string) - Optional - Harmonized code for the commodity. - **partNumber** (string) - Optional - Part number for the commodity. - **smartPostInfoDetail** (object) - Optional - Smart Post information. - **ancillaryEndorsement** (string) - Optional - Ancillary endorsement type. - **hubId** (string) - Optional - Hub ID. - **indicia** (string) - Optional - Indicia type. - **specialServices** (string) - Optional - Special services. - **processingOptions** (array) - Optional - Processing options. - **INCLUDE_PICKUPRATES** (string) - Option to include pickup rates. - **carrierCodes** (array) - Optional - Carrier codes to consider for rates. - **FDXE** (string) - FedEx Express code. - **FDXG** (string) - FedEx Ground code. - **version** (object) - Required - API version information. - **major** (string) - Required - Major version number. - **minor** (string) - Required - Minor version number. - **patch** (string) - Optional - Patch version number. ### Request Example ```json { "rateRequest": { "carrierCode": "FDXE", "requestedShipment": { "shipDatestamp": "2023-10-27", "serviceType": "FEDEX_GROUND", "packagingType": "YOUR_PACKAGING", "totalWeight": { "units": "LB", "value": 22 }, "dropoffType": "REGULAR_PICKUP", "origin": { "postalCode": "94544", "countryCode": "US", "residential": false }, "destination": { "postalCode": "30060", "countryCode": "US", "residential": false }, "recipient": { "contact": { "personName": "John Taylor", "emailAddress": "sample@company.com", "phoneNumber": "1234567890", "phoneExtension": "phone extension", "companyName": "Fedex", "faxNumber": "fax number" }, "accountNumber": { "value": "123456789" } }, "paymentType": "SENDER", "commodities": [ { "description": "DOCUMENTS", "weight": { "units": "LB", "value": 22 }, "quantity": 1, "customsValue": { "amount": "100", "currency": "USD" }, "unitPrice": { "amount": "100", "currency": "USD" }, "numberOfPieces": 1, "countryOfManufacture": "US", "quantityUnits": "PCS", "name": "DOCUMENTS", "harmonizedCode": "080211", "partNumber": "P1" } ], "smartPostInfoDetail": { "ancillaryEndorsement": "ADDRESS_CORRECTION", "hubId": "5531", "indicia": "MEDIA_MAIL", "specialServices": "USPS_DELIVERY_CONFIRMATION" } }, "processingOptions": [ "INCLUDE_PICKUPRATES" ], "carrierCodes": [ "FDXE", "FDXG" ], "version": { "major": "1", "minor": "1", "patch": "1" } } } ``` ### Response #### Success Response (200) - **rateReply** (object) - The reply object containing rate details. - **rateReplyDetails** (array) - Array of rate details. - **serviceType** (string) - The service type. - **packagingType** (string) - The packaging type. - **commitDetails** (array) - Commitment details for the rate. - **ratedShipmentDetails** (array) - Details of the rated shipment. - **totalNetCharge** (object) - Total net charge for the shipment. - **amount** (string) - The amount. - **currency** (string) - The currency. - **currencyExchangeRate** (number) - The currency exchange rate. - **actualBilledWeight** (object) - The actual billed weight. - **units** (string) - The weight units. - **value** (number) - The weight value. - **baseCharge** (object) - The base charge. - **amount** (string) - The amount. - **currency** (string) - The currency. - **totalFedexCharge** (object) - The total FedEx charge. - **amount** (string) - The amount. - **currency** (string) - The currency. - **freightCharge** (object) - The freight charge. - **amount** (string) - The amount. - **currency** (string) - The currency. - **taxOrSurcharges** (array) - Array of taxes or surcharges. - **code** (string) - The surcharge code. - **description** (string) - The surcharge description. - **amount** (string) - The surcharge amount. - **reason** (string) - The reason for the surcharge. - **deliveryInstructions** (string) - Delivery instructions. - **deliveryCommitment** (string) - Delivery commitment time. - **serviceArea** (string) - Service area code. - **specialServicePayments** (array) - Special service payments. - **remoteServiceArea** (string) - Remote service area code. - **dimFactor** (number) - Dimensional weight factor. - **pickupCoordinates** (object) - Pickup coordinates. - **packageRateDetails** (array) - Package rate details. - **packageSequenceNumber** (number) - The sequence number of the package. - **insuredValue** (object) - Insured value of the package. - **amount** (string) - The amount. - **currency** (string) - The currency. - **packageWeight** (object) - The weight of the package. - **units** (string) - The weight units. - **value** (number) - The weight value. - **billingWeight** (object) - The billing weight of the package. - **units** (string) - The weight units. - **value** (number) - The weight value. - **pricingCode** (string) - The pricing code. - **packageSequenceNumber** (number) - The sequence number of the package. - **totalNetCharge** (object) - Total net charge for the package. - **amount** (string) - The amount. - **currency** (string) - The currency. - **totalCustomsValue** (object) - Total customs value for the package. - **amount** (string) - The amount. - **currency** (string) - The currency. #### Response Example ```json { "rateReply": { "rateReplyDetails": [ { "serviceType": "FEDEX_GROUND", "packagingType": "YOUR_PACKAGING", "ratedShipmentDetails": [ { "totalNetCharge": { "amount": "10.50", "currency": "USD" }, "currencyExchangeRate": 1.0, "actualBilledWeight": { "units": "LB", "value": 22 }, "baseCharge": { "amount": "8.00", "currency": "USD" }, "totalFedexCharge": { "amount": "10.50", "currency": "USD" }, "freightCharge": { "amount": "8.00", "currency": "USD" }, "taxOrSurcharges": [ { "code": "S", "description": "FedEx Ground Residential Surcharge", "amount": "2.50", "reason": "RESIDENTIAL_DELIVERY" } ], "deliveryCommitment": "2023-10-30T17:00:00 EST", "packageRateDetails": [ { "packageSequenceNumber": 1, "insuredValue": { "amount": "100", "currency": "USD" }, "packageWeight": { "units": "LB", "value": 22 }, "billingWeight": { "units": "LB", "value": 22 }, "pricingCode": "BULK", "totalNetCharge": { "amount": "10.50", "currency": "USD" }, "totalCustomsValue": { "amount": "100", "currency": "USD" } } ] } ] } ], "version": { "major": "1", "minor": "1", "patch": "1" } } } ``` ``` -------------------------------- ### POST /websites/developer_fedex_api_en-us_catalog_rate_v1 Source: https://developer.fedex.com/api/en-us/catalog/rate/v1/docs This endpoint calculates shipping rates for various FedEx services. It accepts shipment details in the request body and returns a list of available services with their corresponding rates and details. ```APIDOC ## POST /websites/developer_fedex_api_en-us_catalog_rate_v1 ### Description This endpoint calculates shipping rates for various FedEx services based on the provided shipment details. It returns detailed rate information including base charges, surcharges, discounts, and taxes. ### Method POST ### Endpoint /websites/developer_fedex_api_en-us_catalog_rate_v1 ### Parameters #### Request Body - **serviceType** (string) - Required - The type of FedEx service (e.g., "INTERNATIONAL_PRIORITY"). - **packagingType** (string) - Required - The type of packaging used (e.g., "YOUR_PACKAGING"). - **ratedShipmentDetails** (array) - Required - An array of shipment details for rating. - **rateType** (string) - Required - The type of rate (e.g., "ACCOUNT", "LIST"). - **ratedWeightMethod** (string) - Required - The method used for rated weight (e.g., "ACTUAL"). - **totalDiscounts** (number) - Required - Total discounts applied to the shipment. - **totalBaseCharge** (number) - Required - The base charge for the shipment. - **totalNetCharge** (number) - Required - The net charge after discounts and surcharges. - **totalVatCharge** (number) - Required - The total VAT charge. - **totalNetFedExCharge** (number) - Required - The total net charge payable to FedEx. - **totalDutiesAndTaxes** (number) - Required - Total duties and taxes. - **totalNetChargeWithDutiesAndTaxes** (number) - Required - Net charge including duties and taxes. - **totalDutiesTaxesAndFees** (number) - Required - Total duties, taxes, and fees. - **totalAncillaryFeesAndTaxes** (number) - Required - Total ancillary fees and taxes. - **shipmentRateDetail** (object) - Required - Details about the shipment rate. - **rateZone** (string) - Required - The rate zone applicable to the shipment. - **dimDivisor** (number) - Required - Dimensional divisor used for calculating volumetric weight. - **fuelSurchargePercent** (number) - Required - Percentage of fuel surcharge. - **totalSurcharges** (number) - Required - Total amount of surcharges. - **totalFreightDiscount** (number) - Required - Total freight discount. - **surCharges** (array) - Required - An array of surcharge details. - **type** (string) - Required - The type of surcharge (e.g., "FUEL"). - **description** (string) - Required - Description of the surcharge. - **amount** (number) - Required - The amount of the surcharge. - **pricingCode** (string) - Required - The pricing code used. - **currencyExchangeRate** (object) - Optional - Details about currency exchange rate. - **fromCurrency** (string) - Required - The currency to convert from. - **intoCurrency** (string) - Required - The currency to convert to. - **rate** (number) - Required - The exchange rate. - **totalBillingWeight** (object) - Required - The total billing weight of the shipment. - **units** (string) - Required - The unit of weight (e.g., "LB"). - **value** (number) - Required - The weight value. - **currency** (string) - Required - The currency of the rate. ### Request Example ```json { "serviceType": "INTERNATIONAL_PRIORITY", "packagingType": "YOUR_PACKAGING", "ratedShipmentDetails": [ { "rateType": "ACCOUNT", "ratedWeightMethod": "ACTUAL", "totalDiscounts": 0, "totalBaseCharge": 312.35, "totalNetCharge": 345.15, "totalVatCharge": 0, "totalNetFedExCharge": 345.15, "totalDutiesAndTaxes": 0, "totalNetChargeWithDutiesAndTaxes": 345.15, "totalDutiesTaxesAndFees": 0, "totalAncillaryFeesAndTaxes": 0, "shipmentRateDetail": { "rateZone": "CA003O", "dimDivisor": 0, "fuelSurchargePercent": 10.5, "totalSurcharges": 32.8, "totalFreightDiscount": 0, "surCharges": [ { "type": "FUEL", "description": "Fuel Surcharge", "amount": 32.8 } ], "pricingCode": "ACTUAL", "currencyExchangeRate": { "fromCurrency": "CAD", "intoCurrency": "CAD", "rate": 1 }, "totalBillingWeight": { "units": "LB", "value": 22 }, "currency": "CAD" } } ] } ``` ### Response #### Success Response (200) - **serviceType** (string) - The type of FedEx service. - **serviceName** (string) - The name of the FedEx service. - **packagingType** (string) - The type of packaging used. - **customerMessages** (array) - An array of customer messages related to the service. - **code** (string) - The message code. - **message** (string) - The customer-facing message. - **ratedShipmentDetails** (array) - An array of rated shipment details for each rate type. - (Structure mirrors the request body's `ratedShipmentDetails`) #### Response Example ```json { "serviceType": "INTERNATIONAL_PRIORITY", "serviceName": "FedEx International Priority", "packagingType": "YOUR_PACKAGING", "customerMessages": [ { "code": "SERVICE.TYPE.INTERNATIONAL.MESSAGE", "message": "Rate does not include duties & taxes, clearance entry fees or other import fees. The payor of duties/taxes/fees will be responsible for any applicable Clearance Entry Fees." }, { "code": "EDT.DETAILS.MISSING", "message": "The harmonized code for the commodity at array index 1 is missing or invalid; estimated duties and taxes were not returned." } ], "ratedShipmentDetails": [ { "rateType": "ACCOUNT", "ratedWeightMethod": "ACTUAL", "totalDiscounts": 0, "totalBaseCharge": 312.35, "totalNetCharge": 345.15, "totalVatCharge": 0, "totalNetFedExCharge": 345.15, "totalDutiesAndTaxes": 0, "totalNetChargeWithDutiesAndTaxes": 345.15, "totalDutiesTaxesAndFees": 0, "totalAncillaryFeesAndTaxes": 0, "shipmentRateDetail": { "rateZone": "CA003O", "dimDivisor": 0, "fuelSurchargePercent": 10.5, "totalSurcharges": 32.8, "totalFreightDiscount": 0, "surCharges": [ { "type": "FUEL", "description": "Fuel Surcharge", "amount": 32.8 } ], "pricingCode": "ACTUAL", "currencyExchangeRate": { "fromCurrency": "CAD", "intoCurrency": "CAD", "rate": 1 }, "totalBillingWeight": { "units": "LB", "value": 22 }, "currency": "CAD" }, "currency": "CAD" }, { "rateType": "LIST", "ratedWeightMethod": "ACTUAL", "totalDiscounts": 0, "totalBaseCharge": 78.99, "totalNetCharge": 87.28, "totalVatCharge": 0, "totalNetFedExCharge": 87.28, "totalDutiesAndTaxes": 0, "totalNetChargeWithDutiesAndTaxes": 87.28, "totalDutiesTaxesAndFees": 0, "totalAncillaryFeesAndTaxes": 0, "shipmentRateDetail": { "rateZone": "CA1520", "dimDivisor": 0, "fuelSurchargePercent": 10.5, "totalSurcharges": 8.29, "totalFreightDiscount": 0, "surCharges": [ { "type": "FUEL", "description": "Fuel Surcharge", "amount": 8.29 } ], "pricingCode": "ACTUAL", "currencyExchangeRate": { "fromCurrency": "CAD", "intoCurrency": "CAD", "rate": 1 }, "totalBillingWeight": { "units": "LB", "value": 22 }, "currency": "CAD" }, "currency": "CAD" }, { "rateType": "PREFERRED_INCENTIVE", "ratedWeightMethod": "ACTUAL", "totalDiscounts": 0, "totalBaseCharge": 60.48, "totalNetCharge": 66.83, "totalVatCharge": 0, "totalNetFedExCharge": 66.83, "totalDutiesAndTaxes": 0, "totalNetChargeWithDutiesAndTaxes": 66.83, "totalDutiesTaxesAndFees": 0, "totalAncillaryFeesAndTaxes": 0, "shipmentRateDetail": { "rateZone": "CA1520", "dimDivisor": 0, "fuelSurchargePercent": 10.5, "totalSurcharges": 6.3, "totalFreightDiscount": 0, "surCharges": [ { "type": "FUEL", "description": "Fuel Surcharge", "amount": 6.3 } ], "pricingCode": "ACTUAL", "currencyExchangeRate": { "fromCurrency": "CAD", "intoCurrency": "CAD", "rate": 1 }, "totalBillingWeight": { "units": "LB", "value": 22 }, "currency": "CAD" }, "currency": "CAD" } ] } ``` ``` -------------------------------- ### Rate and Transit Times - Success Response Source: https://developer.fedex.com/api/en-us/catalog/rate/v1/docs This snippet details a successful response (200 OK) from the Rate and Transit Times API, including shipment details, pricing, and estimated delivery information. ```APIDOC ## GET /websites/developer_fedex_api_en-us_catalog_rate_v1 ### Description This endpoint retrieves rate and transit time information for a FedEx shipment based on the provided shipment details. ### Method GET ### Endpoint /websites/developer_fedex_api_en-us_catalog_rate_v1 ### Parameters #### Query Parameters * **originCountry** (string) - Required - The country code of the shipment origin. * **destinationCountry** (string) - Required - The country code of the shipment destination. * **weight** (number) - Required - The total weight of the shipment. * **dimensions** (string) - Optional - The dimensions of the shipment (e.g., "LxWxH"). * **packageType** (string) - Optional - The type of packaging used for the shipment. ### Request Example ```json { "example": "Request body not applicable for GET method in this context, refer to query parameters." } ``` ### Response #### Success Response (200) - **transactionId** (string) - Unique identifier for the transaction. - **customerTransactionId** (string) - The client-provided transaction identifier. - **output** (object) - Contains the rate and transit time details. - **rateReplyDetails** (array) - An array of objects, each representing a different service option. - **serviceType** (string) - The type of FedEx service (e.g., "INTERNATIONAL_FIRST"). - **serviceName** (string) - The human-readable name of the FedEx service. - **packagingType** (string) - The type of packaging used. - **customerMessages** (array) - An array of messages related to the service or rate. - **code** (string) - The message code. - **message** (string) - The descriptive message. - **ratedShipmentDetails** (array) - Details about the rated shipment for this service. - **rateType** (string) - The type of rate (e.g., "ACCOUNT", "LIST"). - **ratedWeightMethod** (string) - The method used for rating weight. - **totalDiscounts** (number) - The total discount applied. - **totalBaseCharge** (number) - The base charge for the shipment. - **totalNetCharge** (number) - The net charge after discounts and surcharges. - **totalVatCharge** (number) - The total VAT charged. - **totalNetFedExCharge** (number) - The net charge excluding duties and taxes. - **totalDutiesAndTaxes** (number) - The total duties and taxes. - **totalNetTransportationAndPickupCharge** (object) - Net transportation and pickup charges. - **amount** (number) - The amount. - **currency** (string) - The currency code. - **shipmentRateDetail** (object) - Details specific to the shipment's rate. - **currency** (string) - The currency of the charges. - **totalBillingWeight** (object) - The total billing weight. - **units** (string) - The units of weight (e.g., "LB"). - **value** (number) - The weight value. - **surcharges** (array) - An array of surcharge details. - **type** (string) - The type of surcharge. - **description** (string) - Description of the surcharge. - **amount** (number) - The amount of the surcharge. #### Response Example ```json { "transactionId": "624deea6-b709-470c-8c39-4b5511281492", "customerTransactionId": "AnyCo_order123456789", "output": { "rateReplyDetails": [ { "serviceType": "INTERNATIONAL_FIRST", "serviceName": "FedEx International First", "packagingType": "YOUR_PACKAGING", "customerMessages": [ { "code": "SERVICE.TYPE.INTERNATIONAL.MESSAGE", "message": "Rate does not include duties & taxes, clearance entry fees or other import fees. The payor of duties/taxes/fees will be responsible for any applicable Clearance Entry Fees." }, { "code": "EDT.DETAILS.MISSING", "message": "The harmonized code for the commodity at array index 1 is missing or invalid; estimated duties and taxes were not returned." } ], "ratedShipmentDetails": [ { "rateType": "ACCOUNT", "ratedWeightMethod": "ACTUAL", "totalDiscounts": 0, "totalBaseCharge": 403.2, "totalNetCharge": 445.54, "totalVatCharge": 0, "totalNetFedExCharge": 445.54, "totalDutiesAndTaxes": 0, "totalNetTransportationAndPickupCharge": { "amount": 12.45, "currency": "USD" }, "shipmentRateDetail": { "rateZone": "CA003O", "dimDivisor": 0, "fuelSurchargePercent": 10.5, "totalSurcharges": 42.34, "totalFreightDiscount": 0, "surCharges": [ { "type": "FUEL", "description": "Fuel Surcharge", "amount": 42.34 } ], "pricingCode": "ACTUAL", "currencyExchangeRate": { "fromCurrency": "CAD", "intoCurrency": "CAD", "rate": 1 }, "totalBillingWeight": { "units": "LB", "value": 22 }, "currency": "CAD" }, "currency": "CAD" } ], "currency": "CAD" } ] } } ``` ```