Fetch the contracts for a customer at a particular dealership

Time Status User Agent
Make a request to see history.

URL Expired

The URL for this request expired after 30 days.

customer_id

integer

required

The id of the scoped customer

per_page

integer

Number of records returned in a collection in the response

page

integer

Page number returned from the collection based on the total records and records per response

api-version

integer

required

Target API version

```200 Successfully got Customer contracts

array of objects

object

id

integer

database id of the contract

actual_pickup_at

date-time | null

Time vehicle was actually picked up at

actual_dropoff_at

date-time | null

Time vehicle was actually dropped off at

balance

string

Amount due on contract

confirmation_token

string

also referred to as contract id

status

string

enum

booked``cancelled``pending_agreement``started``finished``no_showed

scheduled_pickup_at

date-time

scheduled_dropoff_at

date-time

purchase_order

string | null

The optional purchase order number associated with this contract

```400 Bad Request

```401 Unauthorized

```403 Forbidden

```404 Not found

```422 Unprocessable Content


xxxxxxxxxx

curl --request GET \
 \
     --url https://api.dealerware.com/admin/customers/customer_id/contracts \
 \
     --header 'accept: application/json'

xxxxxxxxxx

[

{

"id": 42,

"actual_pickup_at": "2021-01-14T20:00:00Z",

"actual_dropoff_at": "2021-01-17T15:00:00Z",

"balance": "$254.00",

"confirmation_token": "7713738FG3",

"status": "booked",

"scheduled_pickup_at": "2021-01-14T20:00:00Z",

"scheduled_dropoff_at": "2021-01-17T15:00:00Z",

"purchase_order": "PO123"

}

]