Skip to main content

Create Agent Identity

POST 

/v2/agents

An endpoint to create company’s user (Agent) in Flip.

Request

Header Parameters

    Content-Type stringrequired

    Request content type application/x-www-form-urlencoded.

Body

required

    name stringrequired

    Agent’s full name.

    identity_type stringrequired

    Possible values: [ktp, passport]

    Type of identity.

    identity_number stringrequired

    Identity number based on the type chosen.

    birth_date stringrequired

    Agent’s birth date. DD-MM-YYYY format

    birth_place stringrequired

    Agent’s birth place.

    country_id stringrequired

    Agent’s country code based on the identity chosen. Available values can be retrieved from the country list API here

    province_id integerrequired

    Agent’s province code based on the identity chosen. Available values can be retrieved from the province list API here.

    city_id integerrequired

    Agent’s city code based on the identity chosen. Available values can be retrieved from the city list API here.

    district_id integerrequired

    Agent’s district code based on the identity chosen. Available values can be retrieved from the district list API here.

    address stringrequired

    Agent’s address based on the identity chosen.

    gender stringrequired

    Possible values: [male, female]

    Agent’s gender.

    occupation stringrequired

    Possible values: [housewife, entrepreneur, private_employee, government_employee, foundation_board, indonesian_migrant_worker, company, others]

    Agent’s job.

    phone_number stringrequired

    Agent’s phone number. It must be the one that has been verified by the company.

    use_identity_address integer

    Possible values: [0, 1]

    A flag to set if the current residential address of the Agent is the same as the identity address. 0 is false, 1 is true.

    residence_country_id integer

    Agent’s current residential address country code. Available values can be retrieved from the country list API here.

    residence_province_id integer

    Agent’s current residential address province code. Available values can be retrieved from the province list API here.

    residence_city_id integer

    Agent’s current residential address city code. Available values can be retrieved from the city list API here.

    residence_district_id integer

    Agent’s current residential address district code. Available values can be retrieved from the district list API here.

    residence_address string

    Agent’s current residential address.

    email string

    Agent’s email.

Responses

Expected Response

Schema

    id integer
    company_id integer
    name string
    identity_type string

    Possible values: [ktp, passport]

    identity_number string
    birth_place string
    birth_date string
    gender string

    Possible values: [male, female]

    country_id integer
    country_name string
    province_id integer
    province_name string
    city_id integer
    city_name string
    district_id integer
    district_name string
    address string
    residence_country_id integer
    residence_country_name string
    residence_province_id integer
    residence_province_name string
    residence_city_id integer
    residence_city_name string
    residence_district_id integer
    residence_district_name string
    residence_address string
    occupation string
    phone_number string
    email string
    kyc_status string
Loading...