Path parameters

  • customer_id string Required
application/json

Body

  • email string
  • phone_number string
  • first_name string
  • last_name string
  • address object
    Hide address attributes Show address attributes object
    • street_line_one string
    • street_line_two string
    • district string
    • postcode integer
    • city string
  • birthday string

    Date YYYY-MM-DD

  • country string

    Code pays ex: FR

  • nationality string

    Code pays ex: FR

  • accounting_code string

    Code comptable

  • birth_city string
  • driving_license object
    Hide driving_license attributes Show driving_license attributes object
    • license_number string
    • license_date string

      Date YYYY-MM-DD

    • license_country string

      Code pays ex: FR

  • is_company boolean

    Default value is false.

  • company_name string

    Nom de l'entreprise

Responses

  • 200 application/json

    200 response

    Hide response attributes Show response attributes object
    • id integer
    • created_at string
    • email string
    • phone_number string
    • first_name string
    • last_name string
    • name string
    • address object
      Hide address attributes Show address attributes object
      • street_line_one string
      • street_line_two string
      • district string
      • postcode integer
      • city string
    • driving_licenses array[object]
PUT /customers/{customer_id}
curl \
 --request PUT 'https://api.fleetee.io/customers/{customer_id}' \
 --header "x-api-key: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"email":"string","phone_number":"string","first_name":"string","last_name":"string","address":{"street_line_one":"string","street_line_two":"string","district":"string","postcode":42,"city":"string"},"birthday":"string","country":"string","nationality":"string","accounting_code":"string","birth_city":"string","driving_license":{"license_number":"string","license_date":"string","license_country":"string"},"is_company":false,"company_name":"string"}'
Request examples
{
  "email": "string",
  "phone_number": "string",
  "first_name": "string",
  "last_name": "string",
  "address": {
    "street_line_one": "string",
    "street_line_two": "string",
    "district": "string",
    "postcode": 42,
    "city": "string"
  },
  "birthday": "string",
  "country": "string",
  "nationality": "string",
  "accounting_code": "string",
  "birth_city": "string",
  "driving_license": {
    "license_number": "string",
    "license_date": "string",
    "license_country": "string"
  },
  "is_company": false,
  "company_name": "string"
}
Response examples (200)
{
  "id": 42,
  "created_at": "string",
  "email": "string",
  "phone_number": "string",
  "first_name": "string",
  "last_name": "string",
  "name": "string",
  "address": {
    "street_line_one": "string",
    "street_line_two": "string",
    "district": "string",
    "postcode": 42,
    "city": "string"
  },
  "driving_licenses": [
    {}
  ]
}