2 min read
Step 1 — build the payload
Keep fields flat — string, number or boolean values only, up to 60 keys, ≤16 KiB encoded. Include a valid email if you collect one, and always set consent.
{
"form": "contact-us",
"dept": "support",
"fields": {
"name": "Jordan Ellis",
"email": "[email protected]",
"company": "Example Trading Ltd",
"message": "Please call me about working capital.",
"consent": "yes"
}
}
Step 2 — post it
curl -sS -X POST https://hub.credicorp.co.uk/public/v1/enquiries \
-H 'Content-Type: application/json' \
-d @enquiry.json
Step 3 — handle the response
A 201 returns {id, status:"new"} — show a thank-you and keep the id for support. A 422 means a validation rule failed (missing consent, bad email, oversized fields); read the error code and prompt the user to fix it. See the reference and error handling.
Getting consent right
The consent gate is not optional. Present a clear checkbox on your form, only set fields.consent = "yes" when the user ticks it, and never hard-code it. You are the controller for the data you collect — see Privacy and PII.
Frequently asked questions
What is the form field for?
It is the forms-registry key — a slug identifying which form the submission came from (1–64 chars, [a-z0-9_-]). It helps route and label the enquiry.
What if the user does not tick consent?
Do not submit. fields.consent must be "yes" or the API returns a 422. Block submission client-side until the box is ticked, and never set it on the user’s behalf.
Can I send nested objects in fields?
No. fields must be flat — string, number or boolean values only. Flatten any structure before you send it.
Related reading

How to apply for a business loan
The documents, the steps and what to expect when your company applies.
Read on Learn →
What are the basic eligibility criteria for a business loan?
The core criteria are simple: a UK-registered trading company, evidenced cash flow, and a reasonable conduct…
Read on Answers →Funding for UK limited companies
Credicorp lends to your company, not to you personally — short-term working capital with no personal guarantee. See what your business could access.