### Create Freight LTL Pickup Request Examples Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Examples demonstrating how to create a freight pickup request using the FedEx API. These snippets would typically be part of a larger application flow. ```csharp // C# example for creating a freight LTL pickup request // Requires FedEx API SDK or direct HTTP requests // ... implementation details ... ``` ```java // Java example for creating a freight LTL pickup request // Requires FedEx API SDK or direct HTTP requests // ... implementation details ... ``` ```javascript // JavaScript example for creating a freight LTL pickup request // Requires FedEx API SDK or direct HTTP requests // ... implementation details ... ``` ```php // PHP example for creating a freight LTL pickup request // Requires FedEx API SDK or direct HTTP requests // ... implementation details ... ``` ```python # Python example for creating a freight LTL pickup request # Requires FedEx API SDK or direct HTTP requests # ... implementation details ... ``` ```rust // Rust example for creating a freight LTL pickup request // Requires FedEx API SDK or direct HTTP requests // ... implementation details ... ``` ```swift // Swift example for creating a freight LTL pickup request // Requires FedEx API SDK or direct HTTP requests // ... implementation details ... ``` -------------------------------- ### LTL Freight API - Example Data Structure Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index This snippet illustrates a portion of the data structure returned by the LTL Freight API, focusing on shipment details, surcharges, and hazardous material information. ```APIDOC ## LTL Freight API - Example Data Structure ### Description This section provides an example of the complex data structures returned by the FedEx LTL Freight API. It includes details about shipment pricing, surcharges, and specific information for hazardous packages. ### Method GET (Illustrative) ### Endpoint /websites/developer_fedex_api_en-us_catalog_ltl-freight_v1/example ### Parameters None (Illustrative example) ### Request Example ```json { "example": "No request body for this illustrative example." } ``` ### Response #### Success Response (200) - **netFreight** (number) - The net freight charge for the shipment. - **surcharges** (array) - A list of surcharges applied to the shipment. - **amount** (number) - The amount of the surcharge. - **surchargeType** (string) - The type of surcharge (e.g., APPOINTMENT_DELIVERY). - **level** (string) - The level at which the surcharge applies (e.g., PACKAGE, SHIPMENT). - **description** (string) - A description of the surcharge. - **totalSurcharges** (number) - The total amount of all surcharges. - **netFedExCharge** (number) - The net charge calculated by FedEx. - **netCharge** (number) - The total net charge for the shipment. - **currency** (string) - The currency of the charges (e.g., USD). - **dryIceWeight** (object) - Details about dry ice weight. - **units** (string) - The units for dry ice weight (e.g., KG). - **value** (number) - The value of the dry ice weight. - **hazardousPackageDetail** (object) - Details specific to hazardous packages. - **regulation** (string) - The regulation governing the hazardous material (e.g., IATA). - **accessibility** (string) - Accessibility information (e.g., ACCESSIBLE). - **labelType** (string) - The type of label used (e.g., II_YELLOW). - **containers** (array) - A list of containers for hazardous materials. - **qvalue** (number) - The Q-value for the container. - **hazardousCommodities** (array) - Details about hazardous commodities within the container. - **quantity** (object) - Quantity details for the commodity. - **quantityType** (string) - Type of quantity (e.g., GROSS). - **amount** (number) - The amount of the quantity. - **units** (string) - The units for the quantity. - **options** (object) - Options related to the hazardous commodity. - **quantity** (object) - Quantity details for options. - **innerReceptacles** (array) - Details about inner receptacles. - **options** (object) - Specific options for the commodity. - **labelTextOption** (string) - Option for label text. - **customerSuppliedLabelText** (string) - Customer-provided label text. - **description** (object) - Description of the hazardous commodity. - **sequenceNumber** (number) - Sequence number for the description. - **processingOptions** (array) - Processing options for the commodity. - **subsidiaryClasses** (array) - Subsidiary classes of the commodity. - **labelText** (string) - Label text for the commodity. - **technicalName** (string) - Technical name of the commodity. - **packingDetails** (object) - Packing details. - **packingInstructions** (string) - Packing instructions. - **cargoAircraftOnly** (boolean) - Indicates if for cargo aircraft only. - **authorization** (string) - Authorization details. - **reportableQuantity** (boolean) - Indicates if it's a reportable quantity. - **percentage** (number) - Percentage value. - **id** (string) - Identifier for the commodity. - **packingGroup** (string) - Packing group. - **properShippingName** (string) - Proper shipping name. - **hazardClass** (string) - Hazard class. - **netExplosiveDetail** (object) - Net explosive details. - **amount** (number) - Amount of net explosive. - **units** (string) - Units for net explosive. - **type** (string) - Type of net explosive detail. - **massPoints** (number) - Mass points for the commodity. - **cargoAircraftOnly** (boolean) - Indicates if for cargo aircraft only. - **referenceId** (string) - Reference identifier for the hazardous package. - **radioactiveTransportIndex** (number) - Radioactive transport index. - **operationalDetail** (object) - Operational details of the shipment. - **originServiceArea** (string) - Origin service area. - **serviceCode** (string) - Service code. - **airportId** (string) - Airport identifier. - **postalCode** (string) - Postal code. - **scac** (string) - SCAC code. - **deliveryDay** (string) - Expected delivery day. - **originLocationId** (string) - Origin location identifier. - **countryCode** (string) - Country code. - **astraDescription** (string) - ASTRA description. - **originLocationNumber** (number) - Origin location number. - **deliveryDate** (string) - Expected delivery date. - **deliveryEligibilities** (array) - List of delivery eligibilities. #### Response Example ```json { "netFreight": 4.89, "surcharges": [ { "amount": null, "surchargeType": "APPOINTMENT_DELIVERY", "level": "PACKAGE, or SHIPMENT", "description": "description" } ], "totalSurcharges": 22.56, "netFedExCharge": 12.56, "netCharge": 121.56, "currency": "USD", "dryIceWeight": { "units": "KG", "value": 68 }, "hazardousPackageDetail": { "regulation": "IATA", "accessibility": "ACCESSIBLE", "labelType": "II_YELLOW", "containers": [ { "qvalue": 2, "hazardousCommodities": [ { "quantity": { "quantityType": "GROSS", "amount": 24.56, "units": "Kg" }, "options": { "quantity": { "quantityType": "GROSS", "amount": 24.56, "units": "Kg" }, "innerReceptacles": [ { "quantity": { "quantityType": "NET", "amount": 34.56, "units": "Kg" } } ], "options": { "labelTextOption": "APPEND", "customerSuppliedLabelText": "Customer Supplied Label Text." }, "description": { "sequenceNumber": 9812, "processingOptions": [ "INCLUDE_SPECIAL_PROVISIONS" ], "subsidiaryClasses": [ "Subsidiary Classes" ], "labelText": "labelText", "technicalName": "technicalName", "packingDetails": { "packingInstructions": "packing Instructions", "cargoAircraftOnly": true }, "authorization": "authorization", "reportableQuantity": true, "percentage": 12.45, "id": "123", "packingGroup": "I", "properShippingName": "properShippingName", "hazardClass": "hazard Class" } }, "description": { "sequenceNumber": 876, "packingInstructions": "packingInstructions", "subsidiaryClasses": [ "Subsidiary Classes" ], "labelText": "labelText", "tunnelRestrictionCode": "UN2919", "specialProvisions": "specialProvisions", "properShippingNameAndDescription": "properShippingNameAndDescription", "technicalName": "technicalName", "symbols": "symbols", "authorization": "authorization", "attributes": [ "attributes" ], "id": "1234", "packingGroup": "packingGroup", "properShippingName": "properShippingName", "hazardClass": "hazardClass" }, "netExplosiveDetail": { "amount": 10, "units": "units", "type": "NET_EXPLOSIVE_WEIGHT" }, "massPoints": 2 } ] } ], "cargoAircraftOnly": true, "referenceId": "123456", "radioactiveTransportIndex": 2.45 }, "operationalDetail": { "originServiceArea": "A1", "serviceCode": "010", "airportId": "DFW", "postalCode": "38010", "scac": "scac", "deliveryDay": "TUE", "originLocationId": "678", "countryCode": "US", "astraDescription": "SMART POST", "originLocationNumber": 243, "deliveryDate": "2001-04-05", "deliveryEligibilities": [ "deliveryEligibilities" ] } } ``` ``` -------------------------------- ### Request LTL Freight Shipment - C# Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Example of how to construct and send an LTL freight shipment request using C#. This code demonstrates the structure of the payload and the necessary parameters for a successful request. ```csharp using System; using System.Net.Http; using System.Text; using System.Threading.Tasks; public class LtlFreightRequester { public async Task RequestShipmentAsync(string apiKey, string payloadJson) { using (var client = new HttpClient()) { client.DefaultRequestHeaders.Add("X-API-Key", apiKey); var content = new StringContent(payloadJson, Encoding.UTF8, "application/json"); var response = await client.PostAsync("https://api.fedex.com/v1/freight-shipments", content); response.EnsureSuccessStatusCode(); return await response.Content.ReadAsStringAsync(); } } } ``` -------------------------------- ### Request LTL Freight Rate - C# Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Example of how to make an LTL freight rate request using C#. This snippet assumes you have the necessary FedEx API client libraries and authentication configured. It demonstrates constructing the request object and sending it. ```csharp // Placeholder for C# code example // This would involve using a FedEx API SDK or making an HTTP request // with the JSON payload shown in the 'Request LTL Freight Rate Payload - JSON' snippet. ``` -------------------------------- ### Request LTL Freight Rate - JAVA Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Example of how to make an LTL freight rate request using Java. This snippet assumes you have the necessary FedEx API client libraries and authentication configured. It demonstrates constructing the request object and sending it. ```java // Placeholder for Java code example // This would involve using a FedEx API SDK or making an HTTP request // with the JSON payload shown in the 'Request LTL Freight Rate Payload - JSON' snippet. ``` -------------------------------- ### Request LTL Freight Shipment - JavaScript Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index JavaScript example for initiating an LTL freight shipment request. This code shows how to structure the JSON payload and make the API call using `fetch`. ```javascript async function requestLtlShipment(apiKey, payloadJson) { const response = await fetch('https://api.fedex.com/v1/freight-shipments', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-API-Key': apiKey }, body: payloadJson }); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } return await response.json(); } ``` -------------------------------- ### LTL Freight Pricing and Surcharges Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index This snippet details the pricing structure for LTL freight, including base charges, various surcharges, and the net FedEx charge. It specifies currency and provides an example of surcharge types and their descriptions. ```json { "value": 68 }, "netFreight": 4.89, "surcharges": [ { "amount": null, "surchargeType": "APPOINTMENT_DELIVERY", "level": "PACKAGE, or SHIPMENT", "description": "description" } ], "totalSurcharges": 22.56, "netFedExCharge": 12.56, "netCharge": 121.56, "currency": "USD" } ``` -------------------------------- ### Request LTL Freight Rate - RUST Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Example of how to make an LTL freight rate request using Rust. This snippet assumes you have the necessary FedEx API client libraries or are making direct HTTP requests. It demonstrates constructing the request object and sending it. ```rust // Placeholder for Rust code example // This would involve using a FedEx API SDK or making an HTTP request (e.g., using reqwest) // with the JSON payload shown in the 'Request LTL Freight Rate Payload - JSON' snippet. ``` -------------------------------- ### Request LTL Freight Rate - PYTHON Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Example of how to make an LTL freight rate request using Python. This snippet assumes you have the necessary FedEx API client libraries or are making direct HTTP requests. It demonstrates constructing the request object and sending it. ```python # Placeholder for Python code example # This would involve using a FedEx API SDK or making an HTTP request (e.g., using the requests library) # with the JSON payload shown in the 'Request LTL Freight Rate Payload - JSON' snippet. ``` -------------------------------- ### Request LTL Freight Rate - PHP Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Example of how to make an LTL freight rate request using PHP. This snippet assumes you have the necessary FedEx API client libraries or are making direct HTTP requests. It demonstrates constructing the request object and sending it. ```php // Placeholder for PHP code example // This would involve using a FedEx API SDK or making an HTTP request (e.g., using cURL) // with the JSON payload shown in the 'Request LTL Freight Rate Payload - JSON' snippet. ``` -------------------------------- ### Request LTL Freight Rate - SWIFT Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Example of how to make an LTL freight rate request using Swift. This snippet assumes you have the necessary FedEx API client libraries or are making direct HTTP requests. It demonstrates constructing the request object and sending it. ```swift // Placeholder for Swift code example // This would involve using a FedEx API SDK or making an HTTP request (e.g., using URLSession) // with the JSON payload shown in the 'Request LTL Freight Rate Payload - JSON' snippet. ``` -------------------------------- ### Configure Commercial Invoice Document Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Sets up the parameters for a commercial invoice. This includes customer image usage, document formatting options, stock type, delivery method (e.g., email), and document type. ```json { "commercialInvoiceDetail": { "customerImageUsages": [ { "id": "IMAGE_5", "type": "SIGNATURE", "providedImageType": "LETTER_HEAD" } ], "documentFormat": { "provideInstructions": true, "optionsRequested": { "options": [ "SUPPRESS_ADDITIONAL_LANGUAGES", "SHIPPING_LABEL_LAST" ] }, "stockType": "PAPER_LETTER", "dispositions": [ { "eMailDetail": { "eMailRecipients": [ { "emailAddress": "email@fedex.com", "recipientType": "THIRD_PARTY" } ], "locale": "en_US", "grouping": "NONE" }, "dispositionType": "CONFIRMED" } ], "locale": "en_US", "docType": "PDF" } } } ``` -------------------------------- ### Configure Freight Address Label Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Specifies settings for freight address labels, including the number of copies, document format, and starting position on the paper. ```json { "freightAddressLabelDetail": { "copies": 25, "documentFormat": { "provideInstructions": true, "optionsRequested": { "options": [ "SUPPRESS_ADDITIONAL_LANGUAGES", "SHIPPING_LABEL_LAST" ] }, "stockType": "PAPER_LETTER", "dispositions": [ { "eMailDetail": { "eMailRecipients": [ { "emailAddress": "email@fedex.com", "recipientType": "THIRD_PARTY" } ], "locale": "en_US", "grouping": "NONE" }, "dispositionType": "CONFIRMED" } ], "locale": "en_US", "docType": "PDF" }, "startingPosition": "BOTTOM_LEFT" } } ``` -------------------------------- ### Define Document Format Options Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index This JSON structure defines the format for documents, including instructions, requested options, stock type, and disposition settings. It supports PDF document types and specific options like suppressing additional languages. ```json { "documentFormat": { "provideInstructions": true, "optionsRequested": { "options": [ "SUPPRESS_ADDITIONAL_LANGUAGES", "SHIPPING_LABEL_LAST" ] }, "stockType": "PAPER_LETTER", "dispositions": [ { "eMailDetail": { "eMailRecipients": [ { "emailAddress": "email@fedex.com", "recipientType": "THIRD_PARTY" } ], "locale": "en_US", "grouping": "NONE" }, "dispositionType": "CONFIRMED" } ], "locale": "en_US", "docType": "PDF" } } ``` -------------------------------- ### Define Contact and Company Information Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Provides contact details including email address, phone number with extension, and company name. ```json { "emailAddress": "sample@company.com", "phoneExtension": "000", "phoneNumber": "XXXX345671", "companyName": "Fedex" } ``` -------------------------------- ### Request LTL Freight Shipment - Java Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Java code example for creating an LTL freight shipment request. This snippet illustrates the payload structure and essential fields required for the FedEx API. ```java import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; public class LtlFreightRequester { public String requestShipment(String apiKey, String payloadJson) throws Exception { HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.fedex.com/v1/freight-shipments")) .header("X-API-Key", apiKey) .POST(HttpRequest.BodyPublishers.ofString(payloadJson)) .build(); HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString()); return response.body(); } } ``` -------------------------------- ### Configure Certificate of Origin Document Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Defines the configuration for generating a Certificate of Origin document. It specifies customer image usage, document format, stock type, disposition (e.g., email), and locale. ```json { "shippingDocumentTypes": [ "RETURN_INSTRUCTIONS", "DANGEROUS_GOODS_SHIPPERS_DECLARATION" ], "certificateOfOrigin": { "customerImageUsages": [ { "id": "IMAGE_5", "type": "SIGNATURE", "providedImageType": "LETTER_HEAD" } ], "documentFormat": { "provideInstructions": true, "optionsRequested": { "options": [ "SUPPRESS_ADDITIONAL_LANGUAGES", "SHIPPING_LABEL_LAST" ] }, "stockType": "PAPER_LETTER", "dispositions": [ { "eMailDetail": { "eMailRecipients": [ { "emailAddress": "email@fedex.com", "recipientType": "THIRD_PARTY" } ], "locale": "en_US", "grouping": "NONE" }, "dispositionType": "CONFIRMED" } ], "locale": "en_US", "docType": "PDF" } } } ``` -------------------------------- ### Request LTL Freight Shipment - Python Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Python code for making an LTL freight shipment request. This example uses the `requests` library to send a POST request with the JSON payload and API key. ```python import requests def request_ltl_shipment(api_key, payload_json): url = "https://api.fedex.com/v1/freight-shipments" headers = { "Content-Type": "application/json", "X-API-Key": api_key } response = requests.post(url, headers=headers, data=payload_json) response.raise_for_status() # Raise an exception for bad status codes return response.json() ``` -------------------------------- ### Request LTL Freight Shipment - Swift Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Swift code example for sending an LTL freight shipment request. This uses `URLSession` to perform the POST request, including setting the API key and JSON payload. ```swift import Foundation func requestLtlShipment(apiKey: String, payloadJson: String, completion: @escaping (Result) -> Void) { guard let url = URL(string: "https://api.fedex.com/v1/freight-shipments") else { return } var request = URLRequest(url: url) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.setValue(apiKey, forHTTPHeaderField: "X-API-Key") request.httpBody = payloadJson.data(using: .utf8) let task = URLSession.shared.dataTask(with: request) { data, response, error in if let error = error { completion(.failure(error)) return } guard let data = data else { return } completion(.success(data)) } task.resume() } ``` -------------------------------- ### Get Freight Direct Rates Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Retrieve rate estimates and surcharges for various FedEx Freight Direct service options (Basic, Basic by Appointment, Standard, Premium) for both delivery and pickup. This endpoint is crucial for understanding shipping costs before creating a shipment. ```APIDOC ## POST /rate/freight-ltl ### Description Use this endpoint to get Freight Direct Rates and surcharges for the following special Freight Direct service options: Basic Service, Basic Service by appt., Standard Service, Premium Service. This is applicable for both delivery and pickup. ### Method POST ### Endpoint /rate/freight-ltl ### Parameters #### Query Parameters - **accountNumber** (string) - Required - FedEx Freight Direct account number. #### Request Body - **freightDirectType** (string) - Required - Type of Freight Direct service (e.g., BASIC, BASIC_BY_APPOINTMENT, PREMIUM, STANDARD). - **freightDirectTransportationType** (string) - Required - Type of transportation (DELIVERY or PICKUP). - **phoneNumberType** (string) - Optional - Type of phone number provided (HOME, MOBILE, WORK). - **weight** (object) - Required - Shipment weight details. - **units** (string) - Required - Weight units (e.g., LB, KG). - **value** (number) - Required - Weight value. - **dimensions** (object) - Required - Shipment dimensions. - **length** (number) - Required - Non-negative length. - **width** (number) - Required - Non-negative width. - **height** (number) - Required - Non-negative height. - **units** (string) - Required - Dimension units (e.g., IN, CM). ### Request Example ```json { "freightDirectType": "BASIC", "freightDirectTransportationType": "DELIVERY", "phoneNumberType": "HOME", "weight": { "units": "LB", "value": 500 }, "dimensions": { "length": 48, "width": 40, "height": 40, "units": "IN" } } ``` ### Response #### Success Response (200) - **totalNetFedExCharge** (object) - Total net charge for the shipment. - **amount** (number) - Charge amount. - **currency** (string) - Currency code. - **surcharges** (array) - List of applicable surcharges. - **surchargeType** (string) - Type of surcharge. - **amount** (object) - Surcharge amount. - **amount** (number) - Surcharge amount value. - **currency** (string) - Currency code. #### Response Example ```json { "totalNetFedExCharge": { "amount": 150.75, "currency": "USD" }, "surcharges": [ { "surchargeType": "RESIDENTIAL_DELIVERY", "amount": { "amount": 25.00, "currency": "USD" } } ] } ``` ``` -------------------------------- ### Label Specification Configuration Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index Configures label specifications, including format, order, masked data, regulatory labels, additional labels, document tab content, and printing details. ```JSON { "labelSpecification": { "labelFormatType": "COMMON2D", "labelOrder": "SHIPPING_LABEL_FIRST", "customerSpecifiedDetail": { "maskedData": [ "[\"CUSTOMS_VALUE\",\"TOTAL_WEIGHT\"]" ], "regulatoryLabels": [ { "generationOptions": "CONTENT_ON_SHIPPING_LABEL_ONLY", "type": "ALCOHOL_SHIPMENT_LABEL" } ], "additionalLabels": [ { "type": "CONSIGNEE", "count": 1 } ], "docTabContent": { "docTabContentType": "BARCODED", "zone001": { "docTabZoneSpecifications": [ { "zoneNumber": 0, "header": "string", "dataField": "string", "literalValue": "string", "justification": "RIGHT" } ] }, "barcoded": { "symbology": "UCC128", "specification": { "zoneNumber": 0, "header": "string", "dataField": "string", "literalValue": "string", "justification": "RIGHT" } } } }, "printedLabelOrigin": { "address": { "streetLines": [ "10 FedEx Parkway", "Suite 302" ], "city": "Beverly Hills", "stateOrProvinceCode": "CA", "postalCode": "38127", "countryCode": "US", "residential": false }, "contact": { "personName": "person name", "emailAddress": "email address", "phoneNumber": "phone number", "phoneExtension": "phone extension", "companyName": "company name", "faxNumber": "fax number" } }, "labelStockType": "PAPER_85X11_TOP_HALF_LABEL", "labelRotation": "UPSIDE_DOWN", "imageType": "PDF", "labelPrintingOrientation": "TOP_EDGE_OF_TEXT_FIRST", "returnedDispositionDetail": true, "resolution": 300 } } ``` -------------------------------- ### Request LTL Freight Rate Payload - JSON Source: https://developer.fedex.com/api/en-us/catalog/ltl-freight/v1/docs.html/index This is the JSON payload structure for requesting LTL freight rates. It includes details about the shipment, shipper, recipient, service type, and package information. This payload is used across all programming language examples. ```json { "accountNumber": { "value": "XXX61073" }, "rateRequestControlParameters": { "returnTransitTimes": false, "servicesNeededOnRateFailure": true, "variableOptions": "FREIGHT_GUARANTEE", "rateSortOrder": "SERVICENAMETRADITIONAL" }, "freightRequestedShipment": { "shipper": { "address": { "streetLines": [ "1550 Union Blvd", "Suite 302" ], "city": "Beverly Hills", "stateOrProvinceCode": "TN", "postalCode": "65247", "countryCode": "US", "residential": false } }, "recipient": { "address": { "streetLines": [ "1550 Union Blvd", "Suite 302" ], "city": "Beverly Hills", "stateOrProvinceCode": "TN", "postalCode": "65247", "countryCode": "US", "residential": false } }, "serviceType": "FEDEX_FREIGHT_PRIORITY", "preferredCurrency": "USD", "shippingChargesPayment": { "payor": { "responsibleParty": { "address": { "streetLines": [ "10 FedEx Parkway", "Suite 302" ], "city": "Beverly Hills", "stateOrProvinceCode": "CA", "postalCode": "90210", "countryCode": "US", "residential": false }, "contact": { "personName": "John Taylor", "emailAddress": "sample@company.com", "phoneNumber": "1234567890", "phoneExtension": "phone extension", "companyName": "Fedex", "faxNumber": "fax number" }, "accountNumber": { "value": "123456789" } } }, "paymentType": "SENDER" }, "rateRequestType": [ "LIST" ], "shipDateStamp": "2019-09-06", "requestedPackageLineItems": [ { "subPackagingType": "BAG", "groupPackageCount": 1, "contentRecord": [ { "itemNumber": "string", "receivedQuantity": 0, "description": "string", "partNumber": "string" } ], "declaredValue": { "amount": "100", "currency": "USD" }, "weight": { "units": "KG", "value": 68.25 }, "dimensions": { "length": 10, "width": 8, "height": 2, "units": "IN" }, "associatedFreightLineItems": [ { "id": "string" } ] } ], "totalPackageCount": 3, "totalWeight": 87, "freightShipmentDetail": { "role": "CONSIGNEE", "accountNumber": { "value": "XXXXX6789" }, "declaredValueUnits": "string", "shipmentDimensions": { "length": 10, "width": 8, "height": 2, "units": "IN" }, "lineItem": [ { "handlingUnits": 0, "nmfcCode": "string", "subPackagingType": "BAG", "description": "string", "weight": { "units": "KG", "value": 68.25 }, "pieces": 0, "volume": { "units": "CUBIC_FT", "value": 0 }, "freightClass": "CLASS_050", "purchaseOrderNumber": "string", "id": "string", "hazardousMaterials": "HAZARDOUS_MATERIALS", "dimensions": { "length": 10, "width": 8, "height": 2, "units": "IN" } } ], "clientDiscountPercent": 0, "fedExFreightBillingContactAndAddress": { "address": { "streetLines": [ "string", "Suite 302" ], "city": "Beverly Hills", "stateOrProvinceCode": "string", "postalCode": "string", "countryCode": "US", "residential": false }, "contact": { "personName": "person name", "emailAddress": "email address", "phoneNumber": "phone number", "phoneExtension": "phone extension", "companyName": "company name", "faxNumber": "fax number" } }, "aliasID": "string", "hazardousMaterialsOfferor": "string", "declaredValuePerUnit": { "amount": "100", "currency": "USD" }, "totalHandlingUnits": 0, "alternateBillingParty": { "address": { "streetLines": [ "1550 Union Blvd", "Suite 302" ], "city": "Beverly Hills", "stateOrProvinceCode": "TN", "postalCode": "65247" } } } } } ```