Align API
  • Overview
    • About
    • Features & Use Cases
    • Blockchains
    • Countries & Currencies
    • Compliance
  • PRODUCTS
    • Cross-Chain Stablecoin Transfers
    • Cross-Chain Stablecoin Deposits
    • Fiat To Stablecoin (On-Ramp)
    • Stablecoin To Fiat (Off-Ramp)
    • Yield Generating Stablecoins
  • Align API
    • Customers
      • Create Customer
      • Get Customer
      • Fetch Customers
      • Create KYC Session
      • Share Individual KYC
    • Cross Chain Transfers
      • [Create] Cross-Chain Transfer
      • [Complete] Cross-Chain Transfer
      • [Get] Cross-Chain Transfer
      • [Create] Permanent Route Address
      • [Get] Permanent Route Address
      • [List] Permanent Route Addresses
    • Offramp Transfers
      • Create Offramp Transfer
      • Complete Offramp Transfer
      • Get Offramp Transfer
    • Onramp Transfers
      • Create Onramp Transfer
      • Get Onramp Transfer
    • Developer
      • Get Developer Fees
      • Update Developer Fees
    • Files
      • Upload File
    • Virtual Accounts
      • Create Virtual Account
      • Get Virtual Account
      • Get All Virtual Accounts
  • FEes
    • Developer Fees
    • Align Fees
  • Legal
    • Terms & Conditions
    • Privacy Policy
  • Guides
    • Create customer
Powered by GitBook
On this page
  1. Guides

Create customer

Step by step guide on how to create a customer.

PreviousPrivacy Policy

Last updated 5 months ago

Step 1 - Create Customer

Every transfer is completed on behalf of a customer. To create a customer, use a endpoint.

Example:

curl -X POST https://api.getfractal.xyz/v0/customers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "email": "name@gmail.com",
  "first_name": "John",
  "last_name": "Doe",
  "beneficiary_type": "individual"
}'

Response:

{
  "customer_id": "123e4567-e89b-12d3-a456-426614174000",
  "email": "name@gmail.com",
  "kycs": {
    "status": "pending",
    "kyc_flow_link": "text"
  }
}

You can now use customer_id to initiate a KYC session.

Step 2 - Know Your Customer

Example:

curl -X POST https://api.getfractal.xyz/v0/customers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "email": "name@gmail.com",
  "first_name": "John",
  "last_name": "Doe",
  "beneficiary_type": "individual"
}'

Response:

{
  "kycs": {
    "status": "pending",
    "kyc_flow_link": "https://link-to-kyc-provider.com"
  }
}

Once a customer completed KYC, their kycs.status will change to approved.

Every customer needs to go through KYC/KYB. To initiate a KYC session, use a endpoint.

Create Customer
Create KYC Session