KYB via API
Submit a member's Know-Your-Business (KYB) application from your own systems. It collects the same data and documents as the KYB form in the Crebit dashboard, so an organization admin can onboard a member end to end without the member opening the dashboard.
- One multipart request submits all fields and documents.
- There are no extra signing or session steps: you authenticate with your API keys like every other partner API.
- Crebit reviews the application. Once approved, the member can use fiat (see After submission).
How to Call
| Header | Value |
|---|---|
| X-Crebit-Key-Id | Organization admin key id |
| X-Crebit-Key-Secret | Organization admin key secret |
| X-Crebit-Environment | production (recommended for real submissions; must match the key and host) |
| X-Crebit-Acting-As-Partner-Id | Member partner UUID (required on every KYB endpoint) |
| Idempotency-Key | Optional on submit, up to 64 characters |
- Host: use production keys against
https://lock-apis.crebitpay.comfor real submissions. The dashboard KYB form also always submits to production. - The acting-as header is mandatory. Without it you get
400 acting_as_required; for a partner that is not an active member of your organization,403 acting_as_not_allowed. See Organizations. - Applications belong to the member. You only see applications submitted for that member through the API; anything else returns
404 application_not_found.
| Method | Path | Purpose |
|---|---|---|
| POST | /api/v1/partners/kyb/applications | Submit the application (multipart/form-data) |
| GET | /api/v1/partners/kyb/applications | List the member's applications (latest 100, newest first) |
| GET | /api/v1/partners/kyb/applications/{applicationId} | Get one application |
Flow
- Collect the member's business details, beneficial owners and documents (see Form fields and Documents and files).
- Submit them in one
multipart/form-datarequest. The response returns theapplicationId. - Track the application with the list or get endpoint until its
statusissubmitted. - Crebit reviews it. You learn the outcome from the
organisation_member.kyb_status_changedwebhook, or by polling the member'skyb_status(see After submission).
Submit the Application
Send the fields as form parts and each document as a file part. This example is a Brazilian company applying for fiat, with one beneficial owner:
curl -X POST "https://lock-apis.crebitpay.com/api/v1/partners/kyb/applications" \
-H "X-Crebit-Key-Id: ADMIN_KEY_ID" \
-H "X-Crebit-Key-Secret: ADMIN_KEY_SECRET" \
-H "X-Crebit-Environment: production" \
-H "X-Crebit-Acting-As-Partner-Id: 8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b" \
-H "Idempotency-Key: $(uuidgen)" \
-F "product=fiat" \
-F "incCountry=BR" \
-F "country=BR" \
-F "legalName=Member Co Ltda" \
-F "dba=Member Co" \
-F "formationDate=2019-03-01" \
-F "email=ops@member.example" \
-F "taxId=12.345.678/0001-90" \
-F "phone=+55 11 4000-0000" \
-F "website=https://member.example" \
-F "address1=Av. Paulista 1000" \
-F "address2=Conj. 101" \
-F "city=São Paulo" \
-F "region=SP" \
-F "postal=01310-100" \
-F "purpose=Pay suppliers and vendors" \
-F "businessType=Importer" \
-F "description=Imports industrial parts from the US" \
-F "naics=42 Wholesale trade" \
-F "revenue=$1M to $10M" \
-F "wealth=Business operations" \
-F "publiclyTraded=false" \
-F "consent=true" \
-F 'owners=[{"role":"Beneficial owner and controlling person","title":"CEO","pct":"100","firstName":"Ana","lastName":"Member","dob":"04/12/1985","address1":"Rua Augusta 500","address2":"Apto 12","city":"São Paulo","region":"SP","postal":"01305-000","country":"BR","idCountry":"BR","idType":"Passport","idNumber":"FA123456","poaType":"Utility bill"}]' \
-F 'requiredDocs=["incorporation","tax_registration","ownership","proof_of_address","financial_statements","settlement_account"]' \
-F "docs[incorporation]=@contrato_social.pdf" \
-F "docs[tax_registration]=@cartao_cnpj.pdf" \
-F "docs[ownership]=@shareholders.pdf" \
-F "docs[proof_of_address]=@utility_bill.pdf" \
-F "docs[financial_statements]=@financials_and_bank_statements.pdf" \
-F "docs[settlement_account]=@bank_letter.pdf" \
-F "owners[0][idFront]=@ana_passport.jpg" \
-F "owners[0][poaFile]=@ana_utility_bill.pdf"{
"success": true,
"applicationId": "KYB-2026-000123",
"message": "KYB application submitted successfully"
}applicationIdis optional as a form field. Omit it for a new application. Send it only to resubmit one of the member's own applications, for example after it ended in failed. Resubmitting an application that is already submitted returns it unchanged.
Form Fields
All values are form strings. Country codes are ISO 3166-1 alpha-2 in upper case. The allowed values listed below are the options the dashboard form offers; the API stores the text you send.
Application Gate
| Field | Required | Notes |
|---|---|---|
| product | Yes | stablecoin (Stablecoin Native Hedging) or fiat (Fiat Hedging). Decides the required documents. |
| incCountry | Yes | Country of incorporation, e.g. BR. Also decides jurisdiction documents. |
| consent | Yes | Must be true (also accepts 1, yes, on): the member confirms the information is accurate. |
| applicationId | No | Only to resubmit one of the member's own applications |
Business
| Field | Required | Notes |
|---|---|---|
| legalName | Yes | Registered legal name |
| taxId | Yes* | Company tax id as issued by the tax authority (e.g. CNPJ). *Nigeria (incCountry=NG): typed TIN or docs[tax_registration] (NRS TIN Certificate); either is enough. |
| Yes | Work email; must contain @ | |
| dba | No | Trading name |
| formationDate | No | Date of incorporation |
| phone | No | Company phone |
| website | No | Company website |
Registered Address
| Field | Required | Notes |
|---|---|---|
| address1 | Yes | Address line 1 |
| country | Yes* | Address country. *Defaults to incCountry when omitted. |
| address2 | No | Address line 2 |
| city | No | City |
| region | No | State, province or region |
| postal | No | Postal code |
Business Profile (Fiat)
The dashboard asks these for product=fiat only and clears them for stablecoin. They are optional for the API but speed up the fiat review, so send them for fiat applications.
| Field | Dashboard options |
|---|---|
| purpose | Receive payments from customers · Pay suppliers and vendors · Treasury and FX hedging · Payroll · Other |
| businessType | Importer · Exporter · Marketplace or platform · Fintech or payments · SaaS or technology · Manufacturing · Services · Other |
| description | Free text: what the business does, in one sentence |
| naics | 42 Wholesale trade · 44 Retail trade · 31 Manufacturing · 48 Transportation and logistics · 52 Finance and insurance · 51 Information and technology · 54 Professional services · Other |
| revenue | Under $1M · $1M to $10M · $10M to $50M · $50M to $250M · Over $250M |
| wealth | Business operations · Investment income · Founder or shareholder capital · Inheritance · Other |
| publiclyTraded | true or false |
Account Contact (Optional)
Contact details of the person who should hold the member's Crebit account. All optional: accountName, accountEmail, accountCompany, accountTitle, accountAddress.
Checklist
| Field | Required | Notes |
|---|---|---|
| owners | Yes | JSON array with at least one owner object (see Owners JSON) |
| requiredDocs | No | JSON array of document ids you are collecting, e.g. ["incorporation","tax_registration"]. Can add documents to the product floor, never remove them. |
Owners JSON
ownersis a JSON array (as a form string) of beneficial owners and controlling persons, with the same keys as the dashboard form. Owner files are sent as separate file parts indexed by the owner's position in this array.
| Key | Notes |
|---|---|
| role | Beneficial owner (25% or more) · Controlling person (CEO, director, or equivalent) · Beneficial owner and controlling person |
| title | Job title, e.g. CEO |
| pct | Ownership percentage, 0 to 100 |
| firstName | Legal first name |
| lastName | Legal last name |
| dob | Date of birth, mm/dd/yyyy |
| address1, address2, city, region, postal, country | Residential address (country as ISO alpha-2) |
| idCountry | Issuing country of the identity document |
| idType | Passport · National ID · Driver's license · Residence permit |
| idNumber | Identity document number |
| poaType | Proof of address type: Utility bill · Bank statement · Lease agreement · Government letter |
[
{
"role": "Beneficial owner and controlling person",
"title": "CEO",
"pct": "100",
"firstName": "Ana",
"lastName": "Member",
"dob": "04/12/1985",
"address1": "Rua Augusta 500",
"address2": "Apto 12",
"city": "São Paulo",
"region": "SP",
"postal": "01305-000",
"country": "BR",
"idCountry": "BR",
"idType": "Passport",
"idNumber": "FA123456",
"poaType": "Utility bill"
}
]Documents and Files
| File part | What it is |
|---|---|
| docs[<docId>] | One business document per id (ids below) |
| owners[i][idFront] | Identity document front for owner i. Required for every owner. |
| owners[i][idBack] | Identity document back for owner i (optional) |
| owners[i][poaFile] | Proof of address for owner i (optional) |
| fundsFile | Source of funds evidence (optional) |
| extras[i][file] | Any additional document (optional) |
| extras[i][label] | Text label for extras[i][file] (form field, not a file) |
Business document ids:
| docId | Document |
|---|---|
| incorporation | Certificate of incorporation and articles, or local equivalent, all pages |
| proof_of_address | Issued within the last 90 days, showing the legal entity name and registered address |
| financial_statements | Financial statements; for fiat this single upload also covers bank statements |
| ownership | Proof of ownership: shareholders, percentages and ultimate beneficial owners (fiat) |
| settlement_account | Bank letter or account certificate for the settlement account (fiat) |
| tax_registration | Tax registration certificate, in jurisdictions that issue one (e.g. Cartão CNPJ in Brazil; NRS TIN Certificate in Nigeria — optional when taxId is provided) |
| legal_rep | Legal representative, e.g. notarised power of attorney, in jurisdictions that ask for it |
| bank_statement | Legacy alias: accepted and counted as financial_statements |
docs[<docId>] accepts any id made of letters, digits and underscores, so you can send extra business documents under your own ids. Any file part name outside the keys in the first table is rejected with 400 unexpected_file_field.
Required Documents
Crebit enforces a minimum set of docs[…] per product, whatever you send in requiredDocs:
| product | Always required |
|---|---|
| stablecoin | incorporation, proof_of_address, financial_statements (ownership is never required, even if listed in requiredDocs) |
| fiat | incorporation, proof_of_address, financial_statements, ownership, settlement_account |
Ids you add in requiredDocs (for example tax_registration or legal_repfor the member's jurisdiction, as the dashboard checklist does) become required too. Missing documents return 400 missing_documents with the missing ids, and a missing owner ID front returns the same code with owners[i][idFront]:
{
"code": "missing_documents",
"message": "Required business documents are missing.",
"details": {
"missing": [
"settlement_account"
]
}
}File Limits
- Types: PDF, JPG or PNG. The content is checked (file signature), and a file extension, if present, must match the content.
- Size: at most 3 MB per file; empty files are rejected.
- Count: at most 40 files per submission.
- Request size: the whole multipart body is capped at 52 MB. Larger requests are rejected before they are read with
413 payload_too_large(details.max_bytesgives the cap).
Idempotency and Retries
Idempotency-Keyis optional, up to 64 characters, and scoped to the member.- Repeating a key whose submission finished returns the same
applicationIdwithout creating a new application. - Repeating a key while that submission is still being processed (
receivedoruploading) returns409 submission_in_progress. - A replay is still validated like a new submission: send the complete, valid multipart body again (all fields and files), not just the key. An incomplete body fails validation before the key is looked up.
- If the submission failed (
status: failed), you can retry with the same key, but that creates a new application with a newapplicationId. To keep the originalapplicationId, resubmit withapplicationIdset to the failed application.
Track Applications
Summaries only: documents and form data are never returned.
List
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/partners/kyb/applications" \
-H "X-Crebit-Key-Id: ADMIN_KEY_ID" \
-H "X-Crebit-Key-Secret: ADMIN_KEY_SECRET" \
-H "X-Crebit-Environment: production" \
-H "X-Crebit-Acting-As-Partner-Id: 8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b"{
"items": [
{
"applicationId": "KYB-2026-000123",
"status": "submitted",
"legalName": "Member Co Ltda",
"country": "BR",
"email": "ops@member.example",
"taxId": "12.345.678/0001-90",
"taxIdEvidence": null,
"taxIdDisplay": null,
"subjectPartnerId": "8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b",
"callerPartnerId": "4c1d2e3f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"createdAt": "2026-09-25T13:58:02.114520+00:00",
"updatedAt": "2026-09-25T13:58:09.873310+00:00"
}
]
}Get One
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/partners/kyb/applications/KYB-2026-000123" \
-H "X-Crebit-Key-Id: ADMIN_KEY_ID" \
-H "X-Crebit-Key-Secret: ADMIN_KEY_SECRET" \
-H "X-Crebit-Environment: production" \
-H "X-Crebit-Acting-As-Partner-Id: 8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b"{
"applicationId": "KYB-2026-000123",
"status": "submitted",
"legalName": "Member Co Ltda",
"country": "BR",
"email": "ops@member.example",
"taxId": "12.345.678/0001-90",
"taxIdEvidence": null,
"taxIdDisplay": null,
"subjectPartnerId": "8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b",
"callerPartnerId": "4c1d2e3f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"createdAt": "2026-09-25T13:58:02.114520+00:00",
"updatedAt": "2026-09-25T13:58:09.873310+00:00"
}subjectPartnerId is the member, callerPartnerId the organization admin that submitted it.
Status Lifecycle
| status | Meaning |
|---|---|
| received | Accepted, documents about to be stored |
| uploading | Documents are being stored for review |
| submitted | Complete and queued for Crebit review (final for the API) |
| failed | Documents could not be stored; retry (see Idempotency and retries) |
A successful submit returns once the application is submitted. These statuses only track the submission. The review outcome is the member's kyb_status (for example under_review, needs_info, approved, rejected); see After submission.
After Submission
- Crebit reviews the application and the documents.
- Every change of the member's KYB status (for example
under_review→approved, orneeds_info) is sent to your webhook endpoint asorganisation_member.kyb_status_changed, withprevious_kyb_status,kyb_statusandkyb_application_id. It is always sent to the organization admin; you don't need to enable member webhooks (see Organizations: Member KYB status event). - As a fallback, poll
kyb_statusonGET /api/v1/partners/organisation/members(your admin keys, no acting-as header). - Once approved for fiat, the member can use the fiat API directly with its own keys, or you can call it on the member's behalf with the acting-as header (see Organizations: Fiat).
- Until then, the member's fiat bank account, SWIFT document, quote and order calls return
403 fiat_spot_not_enabled. The fiat profile, bank directory and order reads still work.
submitted. Then wait for kyb_status: approved on the webhook (or the members list) before you start fiat calls.Errors
Errors use the standard envelope { code, message, details }. Form validation lists every invalid field in details:
{
"code": "validation_error",
"message": "KYB application is incomplete or invalid.",
"details": {
"taxId": "Enter your TIN or upload the NRS TIN Certificate (docs[tax_registration]).",
"owners": "Add at least one beneficial owner."
}
}| Status | code | When |
|---|---|---|
| 400 | validation_error | Required field missing or invalid (legalName, taxId, incCountry, product, country, address1, email, consent, owners); details maps field to message. For NG, taxId may be empty only when docs[tax_registration] is uploaded. |
| 400 | missing_documents | A required business document or an owner's ID front is missing; details.missing lists them |
| 400 | invalid_file_type | File is not PDF, JPG or PNG, or the extension doesn't match the content |
| 400 | file_too_large | A file is over 3 MB; details.field names it |
| 400 | empty_file | A file part is empty |
| 400 | too_many_files | More than 40 files |
| 400 | unexpected_file_field | A file part name is not one of the documented keys |
| 400 | invalid_idempotency_key | Idempotency-Key longer than 64 characters |
| 400 | acting_as_required | X-Crebit-Acting-As-Partner-Id is missing |
| 400 | acting_as_self | The acting-as id is your own partner id |
| 400 | bad_request | The acting-as id is not a UUID |
| 403 | acting_as_not_allowed | The partner is not an active member of your organization |
| 404 | application_not_found | applicationId does not exist or is not the member's |
| 409 | submission_in_progress | Same Idempotency-Key while that submission is received or uploading, or an applicationId whose application is uploading |
| 413 | payload_too_large | The multipart request body is over 52 MB |
| 415 | unsupported_media_type | Submit was not multipart/form-data |
| 500 | internal_error | Unexpected failure; the application is marked failed, retry |
| 502 | document_upload_failed | Documents could not be stored; the application is marked failed, retry shortly |
| 503 | service_unavailable | Document storage is temporarily unavailable |