Error 400 Bad Request

POST https://test.lms.cartel.work/api/leads?returnInput=1

LeadController :: post

Request

GET Parameters

Key Value
returnInput
"1"

POST Parameters

Key Value
lead
[
  "sourceId" => 208001
  "sourceName" => "CAW 5"
  "leadType" => "sales"
  "leadInformation" => [
    "kindOfLead" => "Contactverzoek"
    "referrer" => "occasion.mazda.nl"
    "trackingIds" => null
    "utmTracking" => []
  ]
  "leadDescription" => "Algemene aanvraag voor HNH30P"
  "createdAt" => "2026-01-28 19:53:13"
  "location" => [
    "sourceId" => 1998
    "sourceName" => "caw-4"
  ]
  "cars" => [
    [
      "type" => "2"
      "hexonCode" => 333342759
      "make" => "Mazda"
      "model" => "2 Hybrid"
      "version" => "1.5 Homura Plus / Panoramadak / DEMO *"
      "licensePlate" => "HNH30P"
      "mileage" => 18500
      "color" => "Rood"
      "coating" => "Half leder / stof"
      "saleType" => 8
      "fuel" => "Hybride"
      "body" => "Hatchback"
      "transmission" => "Automaat"
      "yearBuild" => 2024
      "datePart1" => "2024-03-20 00:00:00"
      "prices" => [
        [
          "name" => "Vraagprijs"
          "value" => 27750
        ]
      ]
    ]
    [
      "type" => "1"
      "licensePlate" => "RP-701-L"
      "mileage" => 60680
    ]
  ]
  "extraData" => [
    [
      "name" => "Opmerking"
      "fields" => [
        "Opmerking" => "Beste meneer, mevrouw, kunt u mij een indicatie sturen over de prijs die ik voor deze KIA zou krijgen, mocht het zover komen dat ik deze Mazda bij u zou kopen."
      ]
    ]
    [
      "name" => "Financiering"
      "fields" => [
        "Financiering" => false
        "Maandlasten" => 383
        "Totaalprijs_krediet" => 28530
        "Totale_kosten_krediet" => 6330
        "Rente" => 8.99
        "Looptijd" => 60
        "Aanbetaling" => 5550
        "Slottermijn" => 5550
        "Kredietsom" => 22200
        "Vraagprijs" => 27750
        "Financiering_gewenst" => "0"
      ]
    ]
    [
      "name" => "Referer"
      "fields" => [
        "Referer" => "https://occasion.mazda.nl/occasions/mazda/2-hybrid/15-homura-plus-panoramadak-demo_occasion_hnh-30-p-locatie-oud-beijerland/hybride/2451174/offerte"
      ]
    ]
    [
      "name" => "Bijlagen"
      "fields" => [
        1 => "https://s3.eu-central-1.amazonaws.com/bijlagen.caw5.cartel.nl/1998/2451174/img_6553.jpeg"
        2 => "https://s3.eu-central-1.amazonaws.com/bijlagen.caw5.cartel.nl/1998/2451174/img_6554.jpeg"
        3 => "https://s3.eu-central-1.amazonaws.com/bijlagen.caw5.cartel.nl/1998/2451174/img_6555.jpeg"
        4 => "https://s3.eu-central-1.amazonaws.com/bijlagen.caw5.cartel.nl/1998/2451174/img_6556.jpeg"
        5 => "https://s3.eu-central-1.amazonaws.com/bijlagen.caw5.cartel.nl/1998/2451174/img_6557.jpeg"
        6 => "https://s3.eu-central-1.amazonaws.com/bijlagen.caw5.cartel.nl/1998/2451174/img_6558.jpeg"
        7 => "https://s3.eu-central-1.amazonaws.com/bijlagen.caw5.cartel.nl/1998/2451174/img_6559.jpeg"
        8 => "https://s3.eu-central-1.amazonaws.com/bijlagen.caw5.cartel.nl/1998/2451174/img_6560.jpeg"
        9 => "https://s3.eu-central-1.amazonaws.com/bijlagen.caw5.cartel.nl/1998/2451174/img_6563.jpeg"
      ]
    ]
  ]
  "relation" => [
    "type" => "2"
    "salutation" => "mevr"
    "firstName" => "MHCG"
    "lastName" => "Janssen"
    "gender" => 2
    "companyName" => ""
    "kvkNumber" => ""
  ]
  "phonenumbers" => [
    [
      "number" => "0651454157"
      "type" => "1"
      "optIn" => "0"
    ]
  ]
  "emailaddresses" => [
    [
      "emailaddress" => "majanss@kpnmail.nl"
      "optIn" => "0"
    ]
  ]
]

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"AppBundle\Controller\Rest\LeadController::post"
_firewall_context
"security.firewall.map.context.main"
_route
"apiapi_create_lead"
_route_params
[]
_security_authenticators
[]
_security_firewall_run
"_security_main"
_security_skipped_authenticators
[]
_stopwatch_token
"758c4f"

Request Headers

Header Value
accept
"*/*"
content-length
"2644"
content-type
"application/json"
host
"test.lms.cartel.work"
x-js-include
""
x-php-ob-level
"1"

Request Content

Pretty

{
    "lead": {
        "sourceId": 208001,
        "sourceName": "CAW 5",
        "leadType": "sales",
        "leadInformation": {
            "kindOfLead": "Contactverzoek",
            "referrer": "occasion.mazda.nl",
            "trackingIds": null,
            "utmTracking": []
        },
        "leadDescription": "Algemene aanvraag voor HNH30P",
        "createdAt": "2026-01-28 19:53:13",
        "location": {
            "sourceId": 1998,
            "sourceName": "caw-4"
        },
        "cars": [
            {
                "type": "2",
                "hexonCode": 333342759,
                "make": "Mazda",
                "model": "2 Hybrid",
                "version": "1.5 Homura Plus \/ Panoramadak \/ DEMO *",
                "licensePlate": "HNH30P",
                "mileage": 18500,
                "color": "Rood",
                "coating": "Half leder \/ stof",
                "saleType": 8,
                "fuel": "Hybride",
                "body": "Hatchback",
                "transmission": "Automaat",
                "yearBuild": 2024,
                "datePart1": "2024-03-20 00:00:00",
                "prices": [
                    {
                        "name": "Vraagprijs",
                        "value": 27750
                    }
                ]
            },
            {
                "type": "1",
                "licensePlate": "RP-701-L",
                "mileage": 60680
            }
        ],
        "extraData": [
            {
                "name": "Opmerking",
                "fields": {
                    "Opmerking": "Beste meneer, mevrouw, kunt u mij een indicatie sturen over de prijs die ik voor deze KIA zou krijgen, mocht het zover komen dat ik deze Mazda bij u zou kopen."
                }
            },
            {
                "name": "Financiering",
                "fields": {
                    "Financiering": false,
                    "Maandlasten": 383,
                    "Totaalprijs_krediet": 28530,
                    "Totale_kosten_krediet": 6330,
                    "Rente": 8.99,
                    "Looptijd": 60,
                    "Aanbetaling": 5550,
                    "Slottermijn": 5550,
                    "Kredietsom": 22200,
                    "Vraagprijs": 27750,
                    "Financiering_gewenst": "0"
                }
            },
            {
                "name": "Referer",
                "fields": {
                    "Referer": "https:\/\/occasion.mazda.nl\/occasions\/mazda\/2-hybrid\/15-homura-plus-panoramadak-demo_occasion_hnh-30-p-locatie-oud-beijerland\/hybride\/2451174\/offerte"
                }
            },
            {
                "name": "Bijlagen",
                "fields": {
                    "1": "https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6553.jpeg",
                    "2": "https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6554.jpeg",
                    "3": "https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6555.jpeg",
                    "4": "https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6556.jpeg",
                    "5": "https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6557.jpeg",
                    "6": "https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6558.jpeg",
                    "7": "https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6559.jpeg",
                    "8": "https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6560.jpeg",
                    "9": "https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6563.jpeg"
                }
            }
        ],
        "relation": {
            "type": "2",
            "salutation": "mevr",
            "firstName": "MHCG",
            "lastName": "Janssen",
            "gender": 2,
            "companyName": "",
            "kvkNumber": ""
        },
        "phonenumbers": [
            {
                "number": "0651454157",
                "type": "1",
                "optIn": "0"
            }
        ],
        "emailaddresses": [
            {
                "emailaddress": "majanss@kpnmail.nl",
                "optIn": "0"
            }
        ]
    }
}

Raw

{"lead":{"sourceId":208001,"sourceName":"CAW 5","leadType":"sales","leadInformation":{"kindOfLead":"Contactverzoek","referrer":"occasion.mazda.nl","trackingIds":null,"utmTracking":[]},"leadDescription":"Algemene aanvraag voor HNH30P","createdAt":"2026-01-28 19:53:13","location":{"sourceId":1998,"sourceName":"caw-4"},"cars":[{"type":"2","hexonCode":333342759,"make":"Mazda","model":"2 Hybrid","version":"1.5 Homura Plus \/ Panoramadak \/ DEMO *","licensePlate":"HNH30P","mileage":18500,"color":"Rood","coating":"Half leder \/ stof","saleType":8,"fuel":"Hybride","body":"Hatchback","transmission":"Automaat","yearBuild":2024,"datePart1":"2024-03-20 00:00:00","prices":[{"name":"Vraagprijs","value":27750}]},{"type":"1","licensePlate":"RP-701-L","mileage":60680}],"extraData":[{"name":"Opmerking","fields":{"Opmerking":"Beste meneer, mevrouw, kunt u mij een indicatie sturen over de prijs die ik voor deze KIA zou krijgen, mocht het zover komen dat ik deze Mazda bij u zou kopen."}},{"name":"Financiering","fields":{"Financiering":false,"Maandlasten":383,"Totaalprijs_krediet":28530,"Totale_kosten_krediet":6330,"Rente":8.99,"Looptijd":60,"Aanbetaling":5550,"Slottermijn":5550,"Kredietsom":22200,"Vraagprijs":27750,"Financiering_gewenst":"0"}},{"name":"Referer","fields":{"Referer":"https:\/\/occasion.mazda.nl\/occasions\/mazda\/2-hybrid\/15-homura-plus-panoramadak-demo_occasion_hnh-30-p-locatie-oud-beijerland\/hybride\/2451174\/offerte"}},{"name":"Bijlagen","fields":{"1":"https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6553.jpeg","2":"https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6554.jpeg","3":"https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6555.jpeg","4":"https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6556.jpeg","5":"https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6557.jpeg","6":"https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6558.jpeg","7":"https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6559.jpeg","8":"https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6560.jpeg","9":"https:\/\/s3.eu-central-1.amazonaws.com\/bijlagen.caw5.cartel.nl\/1998\/2451174\/img_6563.jpeg"}}],"relation":{"type":"2","salutation":"mevr","firstName":"MHCG","lastName":"Janssen","gender":2,"companyName":"","kvkNumber":""},"phonenumbers":[{"number":"0651454157","type":"1","optIn":"0"}],"emailaddresses":[{"emailaddress":"majanss@kpnmail.nl","optIn":"0"}]}}

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"application/json"
date
"Mon, 06 Apr 2026 11:28:18 GMT"
x-debug-token
"33ea8a"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

0 Usages
Stateless check enabled

Session not used.

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_ENV
"dev"
APP_SECRET
"19d4ed8ef4d4594c6a8a18bd4db6222c"
DATABASE_URL
"mysql://lm_test:iWh2LIhIzsxAy1Lo@aws040.chynjhoekffq.eu-central-1.rds.amazonaws.com:3306/lm_test"
MMSN_CLIENT_ID
"3MVG98_Psg5cppyYw3hPCefxr0d3moYaSw30qvzqSXQu7cXsbWrG5PD.5IYmtk6Z1Y2QRJ64TPn.adEzY52NY"
MMSN_CLIENT_SECRET
"6E25DE04E68F32A31E0F3E730DF9E73083915529068D9F847EDC97449EFFF418"
MMSN_PASSWORD
"Mmsn202210"
MMSN_SECURITY_TOKEN
"tv49NsmS3w38HPq1a70NSZ8ic"
OKTA_AUTH_URL
"https://sso-uat.renault.com/oauth2/austwoeshbCkPJyw1416/v1/token"
OKTA_CLIENT_ID
"irn-80767_uat_pkjwt_x9anhzwskh5e"
OKTA_KID
"2027-03-22-3366914"
OKTA_PRIVATE_KEY_FILE
"/var/keys/okta-private.key"
RLEADS_API_BASE_URL
"https://apis-qa.renault.com/rleads"
RLEADS_API_KEY
"hiJZegSNAMGbN0GH5En6p6fwy7RLP7Kx"
SITE_LMS__CAW4_DB_PASS
"c@rtelcaw2015"
SITE_LMS__CTM3_DB_PASS
"7ndo3ndJKDM*E"
SITE_LMS__CWP2_DB_PASS
"HK0YkG6df5LeRElF"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
APP_PROJECT_DIR
"/home/lms/www/test/releases/56"
APP_RUNTIME
"Symfony\Component\Runtime\SymfonyRuntime"
APP_RUNTIME_OPTIONS
[
  "project_dir" => "/home/lms/www/test/releases/56"
]
CONTENT_LENGTH
"2644"
CONTENT_TYPE
"application/json"
DOCUMENT_ROOT
"/home/lms/www/test/releases/56/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/home/lms"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_CONTENT_LENGTH
"2644"
HTTP_CONTENT_TYPE
"application/json"
HTTP_HOST
"test.lms.cartel.work"
HTTP_X-JS-Include
""
PHP_SELF
"/index.php"
QUERY_STRING
"returnInput=1"
REDIRECT_STATUS
"200"
REMOTE_ADDR
"3.67.27.65"
REMOTE_PORT
"37322"
REMOTE_USER
""
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1775474898
REQUEST_TIME_FLOAT
1775474898.7685
REQUEST_URI
"/api/leads?returnInput=1"
SCRIPT_FILENAME
"/home/lms/www/test/releases/56/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"172.31.24.204"
SERVER_NAME
"test.lms.cartel.work"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/2.0"
SERVER_SOFTWARE
"nginx/1.22.1"
SYMFONY_DOTENV_VARS
"SITE_LMS__CTM3_DB_PASS,SITE_LMS__CAW4_DB_PASS,SITE_LMS__CWP2_DB_PASS,MMSN_CLIENT_ID,MMSN_CLIENT_SECRET,MMSN_PASSWORD,MMSN_SECURITY_TOKEN,APP_ENV,APP_SECRET,DATABASE_URL,OKTA_PRIVATE_KEY_FILE,OKTA_AUTH_URL,OKTA_CLIENT_ID,OKTA_KID,RLEADS_API_BASE_URL,RLEADS_API_KEY"
USER
"lms"