Create Customer
ashar_create_customerCreate individual or business customers for KYC/KYB verification by submitting required identity, contact, and tax details. Use it to onboard customers and return the created record.
Instructions
Create a customer (individual or business) for KYC/KYB.
Args:
type (string): 'individual' or 'business'
kyc_type (string): KYC tier (e.g. 'light')
email (string): customer email
country (string): two-letter country code (e.g. 'BR')
tax_id (string, optional): taxpayer id (e.g. CPF/CNPJ)
first_name, last_name (string, optional): for individuals
additional fields (object, optional): pass-through payload
Returns the created customer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Customer type | |
| Yes | Customer email | ||
| extra | No | Additional pass-through fields | |
| tax_id | No | Taxpayer id (CPF/CNPJ) | |
| country | Yes | Two-letter country code | |
| kyc_type | Yes | KYC tier | |
| last_name | No | Last name (individual) | |
| first_name | No | First name (individual) |