Skip to navigation

Create a customer

Add a site owner, fleet, partner or other customer. owner_id must be one of your customers.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestringRequired1-255 characters
typeenum or nullOptionalDefaults to SITE_OWNER
What kind of customer this is.
Allowed values:
external_idstring or nullOptional<=255 characters
countrystring or nullOptionalformat: "^[A-Z]{3}$"
owner_idinteger or nullOptional>=1
contact_detailsmap from strings to any or nullOptional
billing_detailsmap from strings to any or nullOptional
payout_informationmap from strings to any or nullOptional
settingsmap from strings to any or nullOptional
is_taxable_dealerboolean or nullOptional

Response

The created object.
idinteger
organization_idstring
namestring
typeenum or any
is_taxable_dealerboolean
created_atdatetime
updated_atdatetime
external_idstring or nullOptional
countrystring or nullOptional
owner_idinteger or nullOptional
contact_detailsmap from strings to any or nullOptional
billing_detailsmap from strings to any or nullOptional
payout_informationmap from strings to any or nullOptional
settingsmap from strings to any or nullOptional

Errors

401
Unauthorized Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
502
Bad Gateway Error
504
Gateway Timeout Error