Docs
llms.txt for AI agents Download OpenAPI spec

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

HeaderValue
X-Crebit-Key-IdOrganization admin key id
X-Crebit-Key-SecretOrganization admin key secret
X-Crebit-Environmentproduction (recommended for real submissions; must match the key and host)
X-Crebit-Acting-As-Partner-IdMember partner UUID (required on every KYB endpoint)
Idempotency-KeyOptional on submit, up to 64 characters
  • Host: use production keys against https://lock-apis.crebitpay.com for 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.
MethodPathPurpose
POST/api/v1/partners/kyb/applicationsSubmit the application (multipart/form-data)
GET/api/v1/partners/kyb/applicationsList the member's applications (latest 100, newest first)
GET/api/v1/partners/kyb/applications/{applicationId}Get one application

Flow

  1. Collect the member's business details, beneficial owners and documents (see Form fields and Documents and files).
  2. Submit them in one multipart/form-data request. The response returns the applicationId.
  3. Track the application with the list or get endpoint until its status is submitted.
  4. Crebit reviews it. You learn the outcome from the organisation_member.kyb_status_changedwebhook, or by polling the member's kyb_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:

HTTP code sample
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"
json, response code sample
json, response
{
  "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

FieldRequiredNotes
productYesstablecoin (Stablecoin Native Hedging) or fiat (Fiat Hedging). Decides the required documents.
incCountryYesCountry of incorporation, e.g. BR. Also decides jurisdiction documents.
consentYesMust be true (also accepts 1, yes, on): the member confirms the information is accurate.
applicationIdNoOnly to resubmit one of the member's own applications

Business

FieldRequiredNotes
legalNameYesRegistered legal name
taxIdYes*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.
emailYesWork email; must contain @
dbaNoTrading name
formationDateNoDate of incorporation
phoneNoCompany phone
websiteNoCompany website

Registered Address

FieldRequiredNotes
address1YesAddress line 1
countryYes*Address country. *Defaults to incCountry when omitted.
address2NoAddress line 2
cityNoCity
regionNoState, province or region
postalNoPostal 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.

FieldDashboard options
purposeReceive payments from customers · Pay suppliers and vendors · Treasury and FX hedging · Payroll · Other
businessTypeImporter · Exporter · Marketplace or platform · Fintech or payments · SaaS or technology · Manufacturing · Services · Other
descriptionFree text: what the business does, in one sentence
naics42 Wholesale trade · 44 Retail trade · 31 Manufacturing · 48 Transportation and logistics · 52 Finance and insurance · 51 Information and technology · 54 Professional services · Other
revenueUnder $1M · $1M to $10M · $10M to $50M · $50M to $250M · Over $250M
wealthBusiness operations · Investment income · Founder or shareholder capital · Inheritance · Other
publiclyTradedtrue 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

FieldRequiredNotes
ownersYesJSON array with at least one owner object (see Owners JSON)
requiredDocsNoJSON 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.

KeyNotes
roleBeneficial owner (25% or more) · Controlling person (CEO, director, or equivalent) · Beneficial owner and controlling person
titleJob title, e.g. CEO
pctOwnership percentage, 0 to 100
firstNameLegal first name
lastNameLegal last name
dobDate of birth, mm/dd/yyyy
address1, address2, city, region, postal, countryResidential address (country as ISO alpha-2)
idCountryIssuing country of the identity document
idTypePassport · National ID · Driver's license · Residence permit
idNumberIdentity document number
poaTypeProof of address type: Utility bill · Bank statement · Lease agreement · Government letter
json, owners code sample
json, 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"
  }
]

Documents and Files

File partWhat 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)
fundsFileSource 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:

docIdDocument
incorporationCertificate of incorporation and articles, or local equivalent, all pages
proof_of_addressIssued within the last 90 days, showing the legal entity name and registered address
financial_statementsFinancial statements; for fiat this single upload also covers bank statements
ownershipProof of ownership: shareholders, percentages and ultimate beneficial owners (fiat)
settlement_accountBank letter or account certificate for the settlement account (fiat)
tax_registrationTax 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_repLegal representative, e.g. notarised power of attorney, in jurisdictions that ask for it
bank_statementLegacy 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:

productAlways required
stablecoinincorporation, proof_of_address, financial_statements (ownership is never required, even if listed in requiredDocs)
fiatincorporation, 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]:

json, response (400) code sample
json, response (400)
{
  "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_bytes gives the cap).

Idempotency and Retries

  • Idempotency-Key is optional, up to 64 characters, and scoped to the member.
  • Repeating a key whose submission finished returns the same applicationId without creating a new application.
  • Repeating a key while that submission is still being processed (received or uploading) returns 409 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 new applicationId. To keep the original applicationId, resubmit with applicationId set to the failed application.

Track Applications

Summaries only: documents and form data are never returned.

List

HTTP code sample
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"
json, response code sample
json, response
{
  "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

HTTP code sample
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"
json, response code sample
json, response
{
  "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

statusMeaning
receivedAccepted, documents about to be stored
uploadingDocuments are being stored for review
submittedComplete and queued for Crebit review (final for the API)
failedDocuments 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, or needs_info) is sent to your webhook endpoint as organisation_member.kyb_status_changed, with previous_kyb_status, kyb_status and kyb_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_status on GET /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.
Submit the KYB for a new member and poll the application until it is 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:

json, response (400) code sample
json, response (400)
{
  "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."
  }
}
StatuscodeWhen
400validation_errorRequired 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.
400missing_documentsA required business document or an owner's ID front is missing; details.missing lists them
400invalid_file_typeFile is not PDF, JPG or PNG, or the extension doesn't match the content
400file_too_largeA file is over 3 MB; details.field names it
400empty_fileA file part is empty
400too_many_filesMore than 40 files
400unexpected_file_fieldA file part name is not one of the documented keys
400invalid_idempotency_keyIdempotency-Key longer than 64 characters
400acting_as_requiredX-Crebit-Acting-As-Partner-Id is missing
400acting_as_selfThe acting-as id is your own partner id
400bad_requestThe acting-as id is not a UUID
403acting_as_not_allowedThe partner is not an active member of your organization
404application_not_foundapplicationId does not exist or is not the member's
409submission_in_progressSame Idempotency-Key while that submission is received or uploading, or an applicationId whose application is uploading
413payload_too_largeThe multipart request body is over 52 MB
415unsupported_media_typeSubmit was not multipart/form-data
500internal_errorUnexpected failure; the application is marked failed, retry
502document_upload_failedDocuments could not be stored; the application is marked failed, retry shortly
503service_unavailableDocument storage is temporarily unavailable