Services
API Reference
- Back Office
- Listings
- Historical Photos
- Vehicles
- Taxes & Fees
- Consumers
- Credit
- Services
- Invoices
- Companies
- GETGet Companies
- POSTCreate a new Company
- GETRetrieve a Company
- PATCHUpdate an existing Company
- GETGet Dealers
- GETRetrieve a Dealer
- GETGet Contacts
- POSTCreate a new Contact
- GETRetrieve a Contact
- PATCHUpdate an existing Contact
- GETGet Insurers
- GETRetrieve an Insurer
- GETGet Lenders
- POSTCreate a new Lender
- GETRetrieve a Lender
- PATCHUpdate an existing Lender
- GETGet Facilitators
- GETRetrieve a Facilitator
- GETGet Partners
- GETRetrieve a Partner
- GETGet Affiliates
- GETRetrieve an Affiliate
- GETGet Developers
- POSTCreate a new Developer
- GETRetrieve a Developer
- PATCHUpdate an existing Developer
- GET
- Locations
- Webhooks
- Inspection
Companies
Update an existing Company
PATCH
/
companies
/
{id}
curl --request PATCH \
--url https://commerce.driv.ly/api/companies/{id} \
--header 'Content-Type: application/json' \
--data '{
"id": "com_9j3k2dls0j29",
"name": "Auto Sales Co.",
"address": "123 Main St, Anytown, USA",
"locations": [
{
"id": "loc_k2j3l9s9d4j0",
"companyId": "com_9j3k2dls0j29",
"address": "123 Main St, Anytown, USA",
"phone": "+1234567890"
}
]
}'
{
"data": {
"id": "com_9j3k2dls0j29",
"name": "Auto Sales Co.",
"address": "123 Main St, Anytown, USA",
"locations": [
{
"id": "loc_k2j3l9s9d4j0",
"companyId": "com_9j3k2dls0j29",
"address": "123 Main St, Anytown, USA",
"phone": "+1234567890"
}
]
},
"success": true
}
Path Parameters
Customer is uniquely identified by id
Query Parameters
The number of levels of related objects to include in the response
Body
application/json
Response
200
application/json
Company Updated
The response is of type object
.
curl --request PATCH \
--url https://commerce.driv.ly/api/companies/{id} \
--header 'Content-Type: application/json' \
--data '{
"id": "com_9j3k2dls0j29",
"name": "Auto Sales Co.",
"address": "123 Main St, Anytown, USA",
"locations": [
{
"id": "loc_k2j3l9s9d4j0",
"companyId": "com_9j3k2dls0j29",
"address": "123 Main St, Anytown, USA",
"phone": "+1234567890"
}
]
}'
{
"data": {
"id": "com_9j3k2dls0j29",
"name": "Auto Sales Co.",
"address": "123 Main St, Anytown, USA",
"locations": [
{
"id": "loc_k2j3l9s9d4j0",
"companyId": "com_9j3k2dls0j29",
"address": "123 Main St, Anytown, USA",
"phone": "+1234567890"
}
]
},
"success": true
}
Assistant
Responses are generated using AI and may contain mistakes.