Get Agent Identity
GET/v2/agents/:agent_id
An endpoint for obtaining the Agent identity data.
Request
Path Parameters
agent_id stringrequired
Flip’s Agent id
Responses
- 200
- 401
- 404
Expected Response
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
id integer
company_id integer
name string
identity_type string
identity_number string
phone_number string
email string
kyc_status string
rejected_reason_code string
rejected_reason string
status string
created_at string
{
"id": 1,
"company_id": 20,
"name": "John Doe",
"identity_type": "ktp",
"identity_number": "1234567890123456",
"phone_number": "+628123456789",
"email": "example@mail.com",
"kyc_status": "APPROVED",
"rejected_reason_code": null,
"rejected_reason": "",
"status": "ACTIVE",
"created_at": "2022-01-01 13:00:00"
}
Sample response when Your Flip api secret key value for Authorization is missing or invalid
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
name string
message string
status integer
{
"name": "Unauthorized",
"message": "Your request was made with invalid credentials.",
"status": 401
}
Response when you put invalid agent id
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
name string
message string
status integer
{
"name": "Not Found",
"message": "Agent not found",
"status": 404
}
Loading...