RateSearchExportRequest
What to put in the exported rate sheet (an Excel workbook), and how to price it.
Export either every result of a search (isSelectedAll true, with the search's routes, sizes and filters) or chosen rows (isSelectedAll false, with selectedRows). Naming a customer makes the sheet a quote to that customer: their saved column layout and contact details are used, the quote is numbered and recorded, and it opens with a page carrying an ACCEPT link.
- isType: boolean
Selected All requiredTrue: export every result of the search described by routes, containerSizes and advanceFilter. False: export only selectedRows.
- advanceType:
Filter Properties: 10The search's other filters.
- containerType: array of string
Sizes Container sizes to price, as the search took them: 20, 40, 40HC, 45, 48, 53. Empty for every size.
- customerType: integer
_export _id greater than:0nullableOne of the customer's saved export layouts (columns and their order). Requires customer_id.
- customerType: integer
_id greater than:0nullableYour customer the sheet is for. Makes the export a quote to them. Without one, a generic rate sheet is produced.
- isType: boolean
_margin _apply Add your margin to the rates. The margin_* fields apply only when this is true.
- marginType: enum
_apply _to What margin_percentage is a percentage of: BASE_RATE (ocean freight alone) or TOTAL_RATE (freight plus surcharges). Either way the margin is added to the base rate, so base rate plus surcharges still equals the total.
valuesBASE_RATETOTAL_RATE - marginType: number
_flat _rate min:0A flat amount added per container, in USD.
- marginType: number
_percentage min:0max:100A percentage added, of the amount margin_apply_to names.
- marginType: enum
_round _up _to Round the marked-up base rate up to a multiple of 1, 5 or 10 USD. "0" leaves it unrounded.
values01510 - routesType: array of RouteItemProperties: 6
The lanes the search ran on. Required when isSelectedAll is true.
- routeType: nullable
Via Properties: 2The search's via-point filter, if it had one.
- selectedType: array of SelectedRateSearchRow
Rows Properties: 4The rows to export, as returned by the rate search. Required when isSelectedAll is false.

