Requests | Create Draft

The Request Draft end-point can be used to generate draft quote requests on Cargobase.
Typically this end-point is used to connect to your ERP or ordering system to prevent a duplication of effort. In most cases, not all values or validations can be mapped directly, so whenever a draft request is pushed, you will need to validate your input on the Cargobase platform. This should take you no longer than 2 minutes.

Note This end-point only applies to Shippers

Request URI

POST https://pluto.cargobase.com/api/1/requests/draft
Content-Type: application/json
Authorization: Token your_token_here

Known issues

  • Currently 'special_requirements' are a mandatory object for creating requests, even if this option is disabled for the shipper.

Body message

Because we generate your request as a draft, there are no minimum values, besides the Authorization and content-type headers. The more information your provide however, the quicker the validation process on the Cargobase platform is.

The message body is constructed around 3 main object categories and 3 subcategories.
Each category is mandatory in the request, specific values are not.

Main object categories

Category parameterPurposeChild object
organizationOrganizational detail, such as Cost center or Reason codegood_items & good_customs_items
serviceDetails such as incoterms or freight modesnone
scheduleDetails such as locations or timingnone

Body Sub-categories

Category parameterPurposeParent object
good_itemsSpecification of individual handling unitsorganization
good_customs_itemsSpecification of commercial values or details of individual handling unitsgood_items
special_requirementsSpecification of commercial values or details of individual handling unitsgood_items

organization values

KeyValuePurposeParent object
titleSTRINGPosted as title of the shipment for easy referenceorganization
cost_centerSTRINGValue of cost_center - can have custom labelorganization
custom_field1STRINGValue of custom_field1 - can have custom labelorganization
custom_field2STRINGValue of custom_field2 - can have custom labelorganization
custom_longfield_01STRINGValue of custom_longfield_01 - can have custom labelorganization
reason_codeSTRINGValue of custom_field1 - can have custom labelorganization
quoting_deadline_dateSTRINGQuote deadline date (UTC time) in specified format YYYY-MM-DDorganization
quoting_deadline_timeSTRINGQuote deadline time of day (UTC time) in specified format HH:MMorganization
confirmation_dateSTRINGConfirmation time date (UTC time) in specified format YYYY-MM-DDorganization
confirmation_timeSTRINGConfirmation time of day (UTC time) in specified format HH:MMorganization
good_itemsOBJECTsee specification beloworganization
special_requirementsOBJECTsee specification beloworganization
good_items

Each request can have 1 or multiple goods on the packing list. These goods are described in 'good_item'-objects.
A request can have multiple such objects.

KeyValuePurpose
handling_unitSTRINGString of handling unit - see options below
unitsINTQuantity of items of this type
lengthINTLength in whole centimeters or inches
widthINTWidth in whole centimeters or inches
heightINTHeight in whole centimeters or inches
m_unitSTRINGUnit of measurement for LxWxH can be "cm" or "inch"
weightINTWeight in whole kgs or lbs
w_unitSTRINGUnit of measurement for weight can be "lbs" or "kg"
stackableBOOLEANTo indicate if unit is stackable
hazardousBOOLEANTo indicate if unit is hazardous
is_dangerousBOOLEANTo indicate if unit is classified as a dangerous good
dangerous_goods_valueSTRINGReference number of the DG class, see table below for potential values
container_typeSTRINGReference number of the container type, see table below for potential values
refridgerated_containerBOOLEANTo identify if container should be refridgerated, in case of handling unit container
additional_informationSTRINGText description of additional information for this item
goods_customs_informationOBJECTOBJECT containing customs information for this item
handling_unit options
  • Bag
  • Box
  • Carton
  • Case
  • Crate
  • Container
  • Pallet
  • Tube
Dangerous goods value
ValueDescription
1DG 1: Explosive substances and articles
2DG 2: Gasses
3DG 3: Flammable liquids
4DG 4: Flammable solids
5DG 5: Oxidising substances
6DG 6: Toxic & Infectious substances
7DG 7: Radioactive material
8DG 8: Corrosives
9DG 9: Miscellaneous
Container type value
ValueDescription
120Ft Standard
220Ft Open top
320Ft Flatrack
420Ft Flatrack Collapsible
520Ft Platform
620Ft Refrigerated
720Ft Bulk
820Ft Tank
920Ft Ventilated
1040Ft Standard
1140Ft Open top
1240Ft High-Cube
1340Ft Flatrack
1440Ft Flatrack collapsible
1540Ft Platform
1640Ft Refrigerated
1745Ft High-Cube
18Custom size
19LCL
goods_customs_information

Each good item can contain multiple goods, these goods are described in the 'goods_customs_information' object.
A good item can have multiple such objects.

KeyValuePurpose
valueINTEGERMonetary value of product in this handling unit
currency_codeSTRING3-letter ISO code of currency of the value of the item
descriptionSTRINGDescription of item contents
hs_codeSTRINGHS Code of the item
special_requirements

Each request can have special requirements, these are defined in the special_requirements object.
Each request can only have 1 special requirements object.
Currently this object is a mandatory part of the request, even if special requirements are not part of the shipper settings.
This is a known issue

KeyValuePurpose
air_truck_requiredBOOLEANIndication if this requirement is requested on the shipment
air_truck_additional_informationSTRINGAdditional description of this requirement
shock_tilt_requiredBOOLEANIndication if this requirement is requested on the shipment
shock_tilt_additional_informationSTRINGAdditional description of this requirement
unique_handling_requiredBOOLEANIndication if this requirement is requested on the shipment
unique_handling_additional_informationSTRINGAdditional description of this requirement
chemical_magnetic_concernsBOOLEANIndication if this requirement is requested on the shipment
chemical_magnetic_additional_informationSTRINGAdditional description of this requirement
unique_warehousing_requiredBOOLEANIndication if this requirement is requested on the shipment
unique_warehousing_additional_informationSTRINGAdditional description of this requirement
special_transport_requiredBOOLEANIndication if this requirement is requested on the shipment
special_transport_additional_informationSTRINGAdditional description of this requirement
special_provider_requirementsBOOLEANIndication if this requirement is requested on the shipment
special_provider_additional_informationSTRINGAdditional description of this requirement
special_lift_fixtures_requiredBOOLEANIndication if this requirement is requested on the shipment
special_lift_fixtures_additional_informationSTRINGAdditional description of this requirement

service values

KeyValuePurposeParent object
incotermSTRINGRequested incoterms - see possible options belowservice
insuranceBOOLEANTo indicate if shipment insurance is requestedservice
insurance_instructionsSTRINGDescriptive text of your request, in case set to 'true'service
service_requirementSTRINGIndication of service requirement type - see options belowservice
export_clearanceINTEGERIndication if Export clearance is requested and how - see Clearance options belowservice
export_clearance_instructionsSTRINGDescriptive text of your request, in case set to 'true'service
transit_clearanceINTEGERIndication if Transit clearance is requested and how - see Clearance options belowservice
transit_clearance_instructionsSTRINGDescriptive text of your request, in case set to 'true'service
import_clearanceINTEGERIndication if Import clearance is requested and how - see Clearance options belowservice
import_clearance_instructionsSTRINGDescriptive text of your request, in case set to 'true'service
air_charter_invitedBOOLEANTo indicate if Air charter forwarders should be invitedservice
next_flight_invitedBOOLEANTo indicate if Next flight out (NFO) forwarders should be invitedservice
ocean_freight_invitedBOOLEANTo indicate if Ocean freight forwarders should be invitedservice
rail_freight_invitedBOOLEANTo indicate if Rail freight forwarders should be invitedservice
regular_air_freight_invitedBOOLEANTo indicate if Regular Air freight forwarders should be invitedservice
road_freight_invitedBOOLEANTo indicate if Road freight forwarders should be invitedservice
road_freight_typeSTRINGSpecification of road freight type, see options belowservice
Incoterm options
ValueDescription
EXWEx Works
FCAFree Carrier
CPTCarriage Paid To
CIPCarriage Insurance Paid to
DATDelivery At Terminal
DATDelivery At Place
DDPDelivery Duty Paid
FASFree Along Ship
FOBFree On Board
CFRCost and Freight
CIFCost, Insurance and Freight
Service requirement options
ValueDescription
DTDDoor-to-Door
DTPDoor-to-Port
PTDPort-to-Door
PTPPort-to-Port
Clearance options
ValueDescription
1Maybe requested, to be clarified in description
2Will be arrange by shipper, to be clarified in accompanying description
3Provider is requested to arrange, to be clarified in accompanying description
Road freight options
ValueDescription
FTLFull-truck load
LTLLess than Truck Load
GROUND_EXPEDITEGround Expedite
SPECIALIZEDSpecialized - Car haulers, flat-beds, dump truck
MULTI_STOPMulti-stop

schedule values

KeyValuePurposeParent object
pickup_airport_codeSTRINGIATA Airport code, if identified otherwise nullschedule
pickup_airportSTRINGAirport Name, if identified otherwise nullschedule
pickup_seaport_codeSTRINGSeaport code, if identified otherwise nullschedule
pickup_seaportTYPESeaport name, if identified otherwise nullschedule
pickup_streetSTRINGPickup street addressschedule
pickup_address_nameSTRINGPickup company nameschedule
pickup_stateSTRINGCONDITIONALThe state/province in case of Canada, Mexico or USA, see below for value options
pickup_zipcodeSTRINGThe pickup postal codeschedule
pickup_citySTRINGThe pickup cityschedule
pickup_countrySTRINGThe pickup countryschedule
pickup_countrySTRINGMANDATORYThe pickup country, see below for value options
pickup_dateTIMESTAMPRequested pickup date, format YYYY-MM-DDschedule
pickup_timeTIMESTAMPRequested pickup time, format HH:MMschedule
pickup_time_typeINTEGERRequested pickup type can be 1=Regularor 2=Betweenschedule
pickup_end_dateTIMESTAMPRequested pickup end date, in case of pickup_time_type 2schedule
pickup_end_timeTIMESTAMPRequested pickup end time, in case of pickup_time_type 2schedule
pickup_hours_startTIMESTAMPIf Shipper indicated pickup location opening hours format: HH:MMschedule
pickup_hours_endTYPEIf Shipper indicated pickup location closing hours format: HH:MMschedule
pickup_notesSTRINGAdditional pickup notesschedule
pickup_contact_nameSTRINGName of contact person at pickup locationschedule
pickup_contact_phoneSTRINGPhone number of contact person at pickup locationschedule
pickup_contact_emailSTRINGEmail of contact person at pickup locationschedule
pickup_address_typeSTRINGCan be Address, Seaport or Airportschedule
stop1_airportSTRINGAirport Name, if identified otherwise nullschedule
stop1_seaport_codeSTRINGSeaport code, if identified otherwise nullschedule
stop1_seaportTYPESeaport name, if identified otherwise nullschedule
stop1_streetSTRINGDelivery street addressschedule
stop1_address_nameSTRINGDelivery company nameschedule
stop1_stateSTRINGCONDITIONALThe state/province in case of Canada, Mexico or USA, see below for value options
stop1_zipcodeSTRINGThe delivery postal codeschedule
stop1_citySTRINGThe delivery cityschedule
stop1_countrySTRINGMANDATORYThe delivery country, see below for value options
stop1_dateTIMESTAMPRequested delivery date, format YYYY-MM-DDschedule
stop1_timeTIMESTAMPRequested delivery time, format HH:MMschedule
stop1_time_typeINTEGERRequested delivery type can be 1=Regularor 2=Betweenschedule
stop1_end_dateTIMESTAMPRequested delivery end date, in case of stop1_time_type 2schedule
stop1_end_timeTIMESTAMPRequested delivery end time, in case of stop1_time_type 2schedule
stop1_hours_startTIMESTAMPIf Shipper indicated delivery location opening hours format: HH:MMschedule
stop1_hours_endTYPEIf Shipper indicated delivery location closing hours format: HH:MMschedule
stop1_notesSTRINGAdditional delivery notesschedule
stop1_contact_nameSTRINGName of contact person at delivery locationschedule
stop1_contact_phoneSTRINGPhone number of contact person at delivery locationschedule
stop1_contact_emailSTRINGEmail of contact person at delivery locationschedule
stop1_address_typeSTRINGCan be Address, Seaport or Airportschedule
Country values

Countries can be provided as names, based on common American spelling for the territory, however it is recommended to provide either the 2 or 3 letter ISO 3166 code.
A full list of ISO codes per country can be found here Wikipedia link

State / province values

At this moment both pickup_state and stop1_state expect the common American full name spelling for the states. Pluto will be updated to also be able to consume common 2 letter acronyms for states in Mexico and the United States as well as Provinces in Canada. Other countries do not expect any such state at this moment.

Status codes

StatusDescriptionResolution
201CreatedYour draft has been posted
403Forbiddencheck Authentication token

In case of a successful POST your response will contain the details that were posted, as confirmation.

Language
Credentials
http
Response
Click Try It! to start a request and see the response here!