post https://example.com/trailers/upload
Upload trailers API allows you insert, update or deactivate trailers.
API expects a CSV file with the following columns: ChgType, TrailerStatus, UnitID, TrailerType, Make, Model, Year, VIN, Domicile, CurrentTerm, EquipType, EquipSpecs, Liftgate, Heat, OwnershipStatus, Axles, BodyType, Length, LengthUnits.
Column description:
- ChgType: 1 = Add 2 = Deactivate, 3 = Update;
- TrailerStatus: ACTIVE or INACTIVE;
- UnitID: The trailer number. i.e. RT0992.
- Make: Make of the trailer i.e. Leyland
- Model: Model of the trailer i.e. Actros
- Year: Year of manufacture of the trailer, i.e. 2009
- VIN: Vehicle identification number of trailer, i.e. 4433XJJWEI2422232
- Domicile: Map to an attribute field;
- CurrentTerm: Map to the domicile field;
- Liftgate: Unit is equipped with a liftgate 1 = Yes, 0 = No;
- Heat: Unit is heated. 1 = Yes, 0 = No;
- OwnershipStatus: Unit mode of ownership can be one of 'rented', 'owned', 'leased', 'non-company' or 'other'.
- Axles: Number of axles on trialer i.e. 2, 6, 8.
- BodyType: Bodytype of trailer i.e. flatbed.
- Length: Numeric value indicating length of trailer i.e. 20
- LengthUnits: The unit for the length of the trailer i.e. 'feet', 'meters'
API supports up to 1000 rows in a CSV file.