Skip to main content

Update Agent Identity

PUT 

/v2/agents/:agent_id

Use this endpoint to update data of the Agent.

Request

Path Parameters

    agent_id stringrequired

    Flip’s Agent id

Body

required

    name string

    Agent’s full name.

    identity_type string

    Possible values: [ktp, passport]

    Type of identity.

    identity_number string

    Identity number based on the type chosen.

    birth_date string

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

    birth_place string

    Agent’s birth place.

    country_id string

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

    province_id integer

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

    city_id integer

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

    district_id integer

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

    address string

    Agent’s address based on the identity chosen.

    gender string

    Possible values: [male, female]

    Agent’s gender.

    occupation string

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

    Agent’s job.

    phone_number string

    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...