Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The POST /auth/register/migration body; catalog fields accept a uuid or a code, so the caller needs no per-environment ids. The account is matched by dni + type + type_dni: sending the same customer again updates it (200) instead of duplicating it.

dni
string
required

Chilean RUT of the account, with check digit (12345678-5; dots are accepted).

Maximum string length: 50
Example:

"12345678-5"

type_dni
string
required

CHL_RUT or its uuid. Only CHL_RUT onboards; CHL_PASSPORT answers 422 type-dni-not-supported.

Example:

"CHL_RUT"

country
string
required

ISO 3166-1 alpha-2 code (CL) or the country uuid.

Example:

"CL"

name
string
required

Full name of the person or legal name of the company.

Required string length: 1 - 250
type
enum<string>
required

Business unit of the onboarding (maihue_<type>). home makes a person account; horeca and business make a company account.

Available options:
home,
horeca,
business
users
object[]
required

Logins of the account, created without a password (the customer sets it in the onboarding). The onboarding recipient is the primary_user of a person account or the legal_representative of a company; without one, onboarding.document_id is null with reason: no-eligible-recipient.

Minimum array length: 1
name_fantasy
string

Trade name. Required when type is horeca or business.

Maximum string length: 250
commercial_activity
string

Required when type is horeca or business.

Maximum string length: 250
external_id
string

Identifier of the customer in the source system (e.g. the Odoo res.partner id). Stored as is; when omitted on an update the account keeps its current value.

Maximum string length: 255
gloss
string

Free note about the origin of the account.

Maximum string length: 150
tier
enum<string>
default:free
Available options:
free,
premium,
enterprise

Response

Drip customer updated and onboarding opened

data
object
message
string
meta
object