Customer

The Customers API allows you to register a customer on the Stables platform and submit the required verification data.

Stables evaluates whether a customer is eligible to use the platform by validating the submitted verification data against the requested entitlements.

If the verification data is successfully validated, the customer is approved and granted entitlements for use within the Stables platform.

Individual customer creation

You can use the following endpoint to create a new individual with base_payout and virtual_account entitlements.

POST /api/v1/customer
Content-Type: application/json
Authorization: Bearer <your-token>
Idempotency-Key: <unique-idempotency-key>

{
  "external_customer_id": "INDIVIDUAL_001",
  "customer_type": "individual",
  "email": "[email protected]",
  "first_name": "John",
  "last_name": "Doe",
  "middle_name": "Michael",
  "phone": "+1234567890",
  "entitlements": ["base_payout", "virtual_account"],
  "dob": "1990-01-15",
  "nationality": "US",
  "address": {
    "line1": "123 Main Street",
    "line2": "Apt 4B",
    "city": "San Francisco",
    "state": "CA",
    "postal_code": "94105",
    "country": "US"
  },
  "id_documents": [
    {
      "document_type": "PASSPORT",
      "front_image_data": "base64...",
      "back_image_data": "base64...",
      "country": "US"
    }
  ],
  "proof_of_address_documents": [
    {
      "document_type": "UTILITY_BILL",
      "front_image_data": "base64...",
      "country": "US"
    }
  ],
  "selfie_photo": {
    "data": "base64..."
  },
  "metadata": {
    "custom_field": "value"
  }
}

Business

You can use the following to register a business customer with base_payout and virtual_account entitlements

POST /api/v1/customer
Content-Type: application/json
Authorization: Bearer <your-token>
Idempotency-Key: <unique-idempotency-key>

{
  "external_customer_id": "BUSINESS_001",
  "customer_type": "business",
  "email": "[email protected]",
  "company_name": "Acme Corporation",
  "phone": "+1234567890",
  "entitlements": ["base_payout", "virtual_account"],
  "country": "US",
  "registration_number": "12345678",
  "legal_address": {
    "line1": "123 Business St",
    "city": "San Francisco",
    "state": "CA",
    "postal_code": "94105",
    "country": "US"
  },
  "incorporated_on": "2020-01-15",
  "type": "Private Company Limited by Shares",
  "tax_id": "12-3456789",
  "registration_location": "CA",
  "website": "https://www.acmecorp.com",
  "account_purpose": "RECEIVE_PAYMENTS_FOR_GOODS_AND_SERVICES",
  "source_of_funds": "SALES_OF_GOODS_AND_SERVICES",
  "expected_annual_revenue": "1000000_9999999",
  "does_your_business_engage_in_high_risk_activities": "no",
  "beneficiaries": [
    {
      "category": "directors",
      "individual": {
        "first_name": "John",
        "last_name": "Doe",
        "dob": "1980-05-15",
        "email": "[email protected]",
        "nationality": "US"
      }
    }
  ],
  "company_registration_documents": [
    {
      "document_type": "COMPANY_DOC",
      "id_doc_sub_type": "INFORMATION_STATEMENT",
      "front_image_data": "base64...",
      "country": "US"
    }
  ]
}

Updating Customers

Customer information can be updated at PATCH /api/v1/customer/:customerId. This endpoint accepts the same shape of data as the creation endpoint. Notes:

  • Even if information was submitted in the first attempt and has not changed, it must still be submitted in the update.
  • Updating the customer object won't clear their rejection reasons from earlier attempts, but that won't prevent them passing KYC.

Customer status

Upon customer creation, Stables reviews the submitted customer information and returns a verification-status representing the overall KYC/KYB status, as well as individual statuses for each requested entitlement.

Integrators should evaluate both the verification-status and the entitlement-level statuses to determine a customer's ability to access and use specific functionality on the Stables platform.

StatusDescription
in_progressVerification is underway
approvedCustomer passed verification
rejectedCustomer failed verification
requires_actionAdditional information needed from the customer

The table above applies to each entry in verification_levels. Each entitlement in entitlements has its own status: pending, submitted, in_progress, approved or rejected.

On this page