Creates a new Contract associated with a Fleet

Time Status User Agent
Make a request to see history.

URL Expired

The URL for this request expired after 30 days.

Contract Fields

Field Type Description
id integer The id of the fleet
service_advisor_id integer The id of the service advisor associated with the contract
customer_id integer The id of the customer who the reservation is for
daily_rate_override number  null The daily rate to charge for this contract, if different from the default rate for the vehicle. Must have the accounting and/or admin role to set this field.
dropoff_at date-time The time the vehicle is expected to be dropped off, in UTC
external_deposit_amount number  null The amount of the external deposit, if any, that was collected for this contract
pickup_at date-time The time the vehicle is expected to be picked up, in UTC
purchase_order string The purchase order number
repair_order string The repair order number, or notes/source of business
service_vehicle string Identifier for vehicle being serviced
vehicle_id number Optional. When included, assigns the corresponding vehicle to this contract after creation
platform string Header to let us know platform contract was booked on
app_name string Header to let us know name of application
api-version integer required Target API version

Responses

201 Created

object

Location: string Location of created resource

401 Unauthorized

403 Forbidden

404 Not Found

406 Not Acceptable

Example Request

curl --request POST \
     --url https://api.dealerware.com/admin/fleets/id/contracts \
     --header 'accept: */*' \
     --header 'content-type: application/json'

Response


xxxxxxxxxx

201 Created