Submit a form
Submits to the form translation that `GET /forms/{slug}` serves for the same `locale` and `fallback`. Send values in `data`, keyed by field id. A `checkbox` or `select` field also takes an array, and a `tel` field a `{ countryCode, number }` object. With honeypot on, also send an empty `_hp` and `_ts`, the display time in Unix milliseconds. With reCAPTCHA, send `recaptchaToken`. A failed field returns 422 with `field`, a `VALIDATION_FIELD_*` code and `params`. A closed form returns 400 `RESOURCE_LOCKED`, a failed verification 400 `SPAM_RECAPTCHA_FAILED`, a `requireAuth` form without a customer `Authorization: Bearer` token 401 `CUSTOMER_AUTH_REQUIRED`, and an unknown slug 404.
/forms/{slug}/submissionshttps://api.lynkow.com/storefront/{siteId}Path parameters
slugstringrequiredURL-friendly identifier, unique per site and locale
Request bodyrequired
dataobjectrequiredRequired. Resource data object
_hpstringSpam-trap field that must remain empty when the site uses honeypot protection.
_tsintegerForm-load Unix timestamp in milliseconds when the site uses honeypot protection.
honeypotstringSpam-trap field that must remain empty; a filled value causes silent rejection
localestringForm translation to submit, such as `en` or `pt-BR`. Served through the locale chain unless `fallback=false`.
recaptchaTokenstringToken for the site or form verification. v3 needs action `form_submit`. Each token works once.
session_idstringAnalytics session UUID. UUID format
visitor_idstring8-64 characters