Kyc verification

Upload customer KYC document

Upload identity or proof-of-address documents for KYC verification.

POST
/api/v2/customers/{customerId}/documents

Uploads a KYC document (identity or proof of address) for a customer to our verification provider. The customer must have initiated KYC verification first by calling POST /customers/{customerId}/kyc.

Identity Documents (idDocType):

  • PASSPORT - Passport (any country)
  • ID_CARD - National ID card (front and back required)
  • DRIVERS - Driver's license (front and back required)
  • RESIDENCE_PERMIT - Residence permit

Proof of Address (idDocType: PROOF_OF_ADDRESS): Documents must be dated within the last 3 months. Accepted documents:

  • Utility bills (gas, electricity, water)
  • Telecom bills (internet, cable, mobile phone)
  • Bank statements or bank letters (neobanks not accepted)
  • Government documents (tax bills, voter registration)
  • Lease or rental agreements

File Requirements:

  • Formats: JPEG, PNG, PDF
  • Maximum size: 10MB

Authorization

bearerAuth
AuthorizationBearer <token>

Organization API key obtained on Settings > API Keys page in Compose UI.

In: header

Path Parameters

customerId*string

Unique identifier of the customer

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST 'https://compose.finance/api/v2/customers/{customerId}/documents' \  -H 'Authorization: Bearer YOUR_API_KEY' \  -F 'file=@/path/to/passport.jpg' \  -F 'idDocType=PASSPORT' \  -F 'country=GBR'

{
  "success": true,
  "idDocType": "PASSPORT",
  "idDocSubType": "FRONT_SIDE",
  "country": "GBR",
  "reviewTriggered": false
}

{
  "error": "Missing required field: file"
}

{
  "error": "Unauthorized - Invalid or missing API key or session"
}

{
  "error": "Customers feature is not enabled for your organization"
}

{
  "error": "Customer not found"
}

{
  "error": "Cannot upload documents while verification is in progress. Please wait for the current review to complete before uploading new documents."
}

{
  "error": "File size exceeds maximum limit of 10MB. Received: 15.50MB"
}
{
  "error": "Rate limit exceeded. Please try again later."
}

{
  "error": "Internal server error"
}

{
  "error": "Document upload failed. Please try again."
}

Submit customer KYC POST

Manually submit a customer's KYC documents for review. This endpoint is typically not needed as verification is automatically triggered when all required steps are completed via the KYC flow link or API document uploads. Use this endpoint only if auto-submission fails. Cannot be called if review is already in progress or the customer is already verified. A rejected review can be resubmitted. Maximum 4 attempts allowed.

Get an indicative rate quote GET

Preview the exchange rate, fees, and estimated amounts for a deposit or withdrawal before initiating the transaction. Rates are indicative and not locked — the actual rate is determined when the transaction is executed. Provide exactly one of `source_amount` or `target_amount`. Supported currencies: fiat (`EUR`, `USD`, `AUD`, `CAD`) and stablecoin (`USDC`, `EURC`, `USDT`), and the `AUDD` balance as a source. Supported pairs: `EUR`<->`USDC`, `EUR`<->`EURC`, `USD`<->`USDC`, `EURC`->`USD`, `USDT`->`EUR`, `USDT`->`USD` (EURC and USDT are withdrawal-only when USD is the target, from a custodial balance), `USDC`->`AUD`, `USDT`->`AUD`, `AUDD`->`AUD` (withdrawal-only, on `AU_BANK_TRANSFER`, when AUD functionality is enabled for your organization; not for a standard `customer_id`; `AUDD` also needs the AUDD balance enabled for your organization, otherwise `403`, and its rate is 1 unless a spread applies), and `CAD`->`USDC` (deposit-only, on `INTERAC`, when CAD deposits are enabled for your organization; otherwise `404`). For customer wallet deposits where `developer_fee` is present, the wallet receive amount is `target_amount - developer_fee.amount`.