Swipelux
Individual Onboarding

API Reference

API endpoints for individual customer onboarding and KYC verification

Individual KYC API Reference

Create Individual Customer

POST /v1/customers

Creates a new individual customer record.

Request Body:

{
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "phone": "+12025551234",
  "birthDate": "1990-05-15"
}

Response:

{
  "id": "cust_abc123",
  "type": "individual",
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "phone": "+12025551234",
  "birthDate": "1990-05-15",
  "status": "not_started",
  "balance": 0,
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:30:00Z"
}

Initiate KYC Verification

POST /v1/customers/{id}/kyc

Initiates KYC verification for the customer. Returns a URL where the customer can complete identity verification.

Response:

{
  "verificationUrl": "https://verify.swipelux.com/session/xyz789"
}

The customer should be redirected to the verificationUrl to complete the verification process. The verification form will collect:

  • ID document upload
  • Selfie/liveness check
  • Any additional required information

The verification URL is valid for 24 hours. After expiration, you'll need to initiate a new KYC session.


Get Customer Status

GET /v1/customers/{id}

Retrieves the current customer record including verification status.

Response:

{
  "id": "cust_abc123",
  "type": "individual",
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "status": "approved",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T14:30:00Z"
}

Update Customer

PUT /v1/customers/{id}

Updates customer information. Can be used to add additional details before or after KYC verification.

Request Body:

{
  "phone": "+12025559999",
  "residentialAddress": {
    "streetLine1": "123 Main St",
    "city": "New York",
    "state": "NY",
    "country": "US",
    "postalCode": "10001"
  }
}

Residential Address Object

FieldTypeRequiredDescription
streetLine1stringYesStreet address line 1
streetLine2stringNoStreet address line 2
citystringYesCity
statestringYesState/Province/Region
countrystringYesCountry (ISO 3166-1 alpha-2)
postalCodestringNoPostal/ZIP code

Identifying Information Object

FieldTypeRequiredDescription
typestringYesDocument type (passport, drivers_license, id_card)
issuingCountrystringYesCountry that issued the ID (ISO 3166-1 alpha-2)
frontSideImagestringNoBase64-encoded front image
backSideImagestringNoBase64-encoded back image

On this page