User creation examples

User creation example

In this example, we will create a user.

/users body payload:

{
    "first_name": "John",
    "last_name": "Doe",
    "phone": "098 391 3123",
    "gender": "MALE",
    "dob": "2024-04-01T05:00:00+00:00",
    "address": "Jr Junin 550",
    "document_type": "RUC",
    "document_number": "0931339568",
    "bank_accounts": [
        {
            "account_name": "John Doe",
            "bank_name": "Global Bank",
            "account_number": "2313213123123",
            "bic_swift": "GBL12345",
            "iban": "123123123",
            "routing_number": "011000138",
            "country": "EC",
            "currency": "USD",
            "account_type": "Checking",
            "bank_address": "example",
            "additional_info": "example"
        }
    ],
    "company_name": "Doe Enterprises",
    "company_role": "Founder",
    "company_email": "example@example.com",
    "company_identifier": {
        "type": "RUC",
        "value": "12312321321321"
    },
    "company_address": "Jr Junin 550",
    "company_bank_accounts": [
        {
            "account_name": "Doe Enterprises",
            "bank_name": "Business Bank",
            "account_number": "987654321",
            "bic_swift": "BSNS12345",
            "iban": "GB33BUKB20201555555555",
            "routing_number": "011000015",
            "country": "EC",
            "currency": "USD",
            "account_type": "Savings",
            "bank_address": "Jr Junin 550",
            "additional_info": "Branch: Main"
        }
    ],
    "uid": null,
    "group_id": "8049cfed-c4fb-4114-8c69-457d405eeb10",
    "metadata": {}
}

Group creation example

In this example, we will create a group.

/groups body payload:

{
    "name": "example-5",
    "description": "",
    "bussiness_industry": "CONSUMO MASIVO",
    "company_name": "Doe Enterprises",
    "company_role": "Founder",
    "company_email": "example@example.ec",
    "company_identifier": {
        "type": "CI",
        "value": "sadsad"
    },
    "company_address": "Jr Junin 550",
    "company_bank_accounts": [
        {
            "account_name": "Doe Enterprises",
            "bank_name": "Business Bank",
            "account_number": "987654321",
            "bic_swift": "BSNS12345",
            "iban": "GB33BUKB20201555555555",
            "routing_number": "011000015",
            "country": "PE",
            "currency": "acdd4eb6-46e4-4219-9015-662fe6dfbc89",
            "account_type": "Savings",
            "bank_address": "Jr Junin 550",
            "additional_info": "Branch: Main"
        },
        {
            "account_name": "Doe Enterprises",
            "bank_name": "Business Bank",
            "account_number": "987654321",
            "bic_swift": "BSNS12345",
            "iban": "GB33BUKB20201555555555",
            "routing_number": "011000015",
            "country": "EC",
            "currency": "USD",
            "account_type": "Savings",
            "bank_address": "Jr Junin 550",
            "additional_info": "Branch: Main"
        }
    ],
    "uid": null,
    "metadata": {
        "additional_info": "Branch: Main"
    }
}

Last updated