Skip to main content
PATCH
/
deals
/
{id}
Update an existing Deal
curl --request PATCH \
  --url https://commerce.driv.ly/api/deals/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "maximumBidPrice": 123,
  "dealer": "<string>",
  "currentBidPrice": 123,
  "minimumBidPrice": 123,
  "facilitator": "<string>",
  "coBuyerOrCoSellerCustomer": "<string>",
  "vehicle": "<string>",
  "customer": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "vehicle": "<string>",
    "customer": "<string>",
    "maximumBidPrice": 123,
    "dealer": "<string>",
    "currentBidPrice": 123,
    "minimumBidPrice": 123,
    "facilitator": "<string>",
    "coBuyerOrCoSellerCustomer": "<string>"
  },
  "success": true
}

Path Parameters

id
string
required

Deal is uniquely identified by id

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json
id
string

Deal is uniquely identified by id

maximumBidPrice
integer

Deal has Maximum Bid Price

dealer

Deal sells from Dealer

currentBidPrice
integer

Deal has Current Bid Price

minimumBidPrice
integer

Deal has Minimum Bid Price

facilitator

Deal is facilitated by Facilitator

coBuyerOrCoSellerCustomer

Deal has CoBuyer Or CoSeller Customer

vehicle

Deal buys/sells Vehicle

customer

Deal is made with Customer

Response

Deal Updated

data
Deal · object
success
boolean