Get carrier ratesCopy Pageget https://api.xeneta.com/v3.0/ocean/carrier-spreadReturns freight rates for the requested carrier.Query ParamsoriginstringrequiredDefaults to CNSGHDefines the origin location of the requested carrier rate data. Can be either a UN/LOCODE or a region as defined in Xeneta's geo-hierarchy. For example, CNSGH or china_east_main.destinationstringrequiredDefaults to NLRTMDefines the destination location of the requested carrier rate data. Can be either a UN/LOCODE or a region as defined in Xeneta's geo-hierarchy. For example, NLRTM or north_europe_main.date_fromdaterequiredDefaults to 2023-02-01Defines the start date of the date range for the requested carrier rates in the YYYY-MM-DD format. The total range cannot exceed 31 days.date_todaterequiredDefaults to 2023-02-03Defines the end date of the date range for the requested carrier rates in the YYYY-MM-DD format. The total range cannot exceed 31 days.carrier_slugstringrequiredDefaults to cma_cgmDefines the carrier whose rates to request.contract_lengthstringrequiredDefaults to shortDefines the type of contract for the requested carrier rate data. Accepted values are long or short.contracted_withinstringrequiredDefaults to allDefines the maximum age of the contracts to be included in the requested carrier rate data, relative to each day. Accepted values include all, 3months and 6months. Using any value other than all when contract_length is set to short will return an error.container_typestringrequiredDefaults to 40DCDefines the container type of the requested carrier rate data. Accepted values include 20DC, 20RE, 20TK, 40DC, 40RH and 40HC.thc_methodologystringrequiredDefaults to methDefines whether the requested carrier rate data should include the terminal handling charge. Accepted values include meth, othc, dthc, none and both. Selecting meth will use Xeneta's default methodology for the requested origin and destination.Response 200200Updated 9 months ago