One Card
User API
Version: V1.0.0
API Domain https://api-card.one1pay.asia/index.php/wp-json/user/v1/api
User : Register Otp.
Send Otp to email.
Task
get_register_otp
Headers
Key Value Type Optional Sample Description
Accept multipart/form-data String no multipart/form-data content type to be send to server.
Body
Key Type Optional Sample Description
email String no [email protected] user email.
Sample Response
{
    "status": true,
    "message": "Request Success"
}
User : Register
register new user.
Task
create_user
Headers
Key Value Type Optional Sample Description
Accept multipart/form-data String no multipart/form-data content type to be send to server.
Body
Key Type Optional Sample Description
email String no [email protected] user email.
password String no Abcabc123 user password.
otp String no 123123 user otp get from User : Register Otp.
Sample Response
{
    "status": true,
    "message": "Register Success.",
    "login_user_details": {
        "userid": 16,
        "access_token": "42b0002d1afd1841ae",
        "roles": "user",
        "username": "[email protected]",
        "auth": "create_auth"
    },
    "data": "otpauth%3A%2F%2Ftotp%2FOneCard%3Afoxxyrain09%40gmail.com%3Fsecret%3DEJEAH7NXS5ST4XGHDI2VAPNZ7FNYFLVY%26issuer%3DOneCard"
}
User : Login 1st Step
user login with password.
Task
login
Headers
Key Value Type Optional Sample Description
Accept multipart/form-data String no multipart/form-data content type to be send to server.
Body
Key Type Optional Sample Description
email String no [email protected] user email.
password String no Abcabc123 user password.
Sample Response
{
    "status": true,
    "message": "User login successfully.",
    "login_user_details": {
        "userid": 2,
        "access_token": "11ff35a3e331f3e6e1",
        "roles": "user",
        "username": "[email protected]",
        "auth": "verify_auth"
    }
}
User : Create Google Auth
new user are enforce to create google auth.
Task
create_auth
Headers
Key Value Type Optional Sample Description
Accept multipart/form-data String no multipart/form-data content type to be send to server.
Body
Key Type Optional Sample Description
userid String no 123 User ID during login.
token String no 1sCvJ6qucfPXZiwXYgOwp... token generated during login 1st step.
Sample Response
{
    "status": true,
    "data": "otpauth%3A%2F%2Ftotp%2FOneCard%3Afoxxyrain03%40gmail.com%3Fsecret%3DYEVCXTF42WHILPY3EVQQMBXESWJIRCJW%26issuer%3DOneCard"
}
User : Login 2nd Step
user login with google auth.
Task
login_auth
Headers
Key Value Type Optional Sample Description
Accept multipart/form-data String no multipart/form-data content type to be send to server.
Body
Key Type Optional Sample Description
userid String no 123 User ID during login.
token String no 1sCvJ6qucfPXZiwXYgOwp... auth token generated during login 1st step.
auth String no 123123 google auth code.
Sample Response
{
    "status": true,
    "message": "User login successfully.",
    "login_user_details": {
        "userid": "2",
        "access_token": "955f3bfd35f1961c1c50f00dd",
        "roles": "user",
        "username": "[email protected]"
    }
}
User : Get Profile
user profile list.
Task
get_profile
Headers
Key Value Type Optional Sample Description
Accept multipart/form-data String no multipart/form-data content type to be send to server.
Body
Key Type Optional Sample Description
userid String no 123 User ID during login.
access_token String no 1sCvJ6qucfPXZiwXYgOwp... token generated during login 2nd step.
Sample Response
{
    "status": true,
    "message": "Request successfully.",
    "data": {
        "title": "Mr",
        "firstName": "Test",
        "middleName": "",
        "lastName": "Bug",
        "gender": 1,
        "dateOfBirth": "1990-04-08",
        "nationality": "JP",
        "email": "[email protected]",
        "mobileCountryCode": "81",
        "mobile": "123456789",
        "idType": null,
        "idNumber": "xxx",
        "deliveryCountry": "JPN",
        "deliveryAddress": "xxxx",
        "deliveryAddress2": "xxxx",
        "deliveryCity": "JP",
        "deliveryState": "JP",
        "deliveryZipCode": "1234",
        "billingCountry": "JPN",
        "billingAddress": "xxx",
        "billingAddress2": "xxx",
        "billingState": "JP",
        "billingCity": "JP",
        "billingZipCode": "1234"
    }
}
User : Set Profile
set user profile.
Task
set_profile
Headers
Key Value Type Optional Sample Description
Accept multipart/form-data String no multipart/form-data content type to be send to server.
Body
Key Type Optional Sample Description
userid String no 123 User ID during login.
access_token String no 1sCvJ6qucfPXZiwXYgOwp... token generated during login 2nd step.
title String no Mr title : Mr, Miss, Mrs
firstName String no Koniciwa firstName
middleName String yes king middleName
lastName String no kong lastName
gender String no 1 gender 1:male, 2:female
dateOfBirth String no 1987-08-11 dateOfBirth
nationality String no JP nationality
email String no [email protected] email
mobileCountryCode String no 60 mobileCountryCode
mobile String no 123465455 mobile 8-15 character
idType String no nric Identity Type : nric, passport, drivers_id
idNumber String no abcs idNumber
deliveryCountry String no abcs deliveryCountry
deliveryAddress String no abcs deliveryAddress
deliveryAddress2 String no abcs deliveryAddress2
deliveryCity String no abcs deliveryCity
deliveryState String no abcs deliveryState
deliveryZipCode String no 00000 deliveryZipCode
billingCountry String no abcs billingCountry
billingAddress String no abcs billingAddress
billingAddress2 String no abcs billingAddress2
billingState String no abcs billingState
billingCity String no abcs billingCity
billingZipCode String no 00000 billingZipCode
Sample Response
{
    "status": true,
    "message": "Request successfully."
}
User : Get KYC Link
Get user KYC link to do KYC.
Task
get_kyc_link
Headers
Key Value Type Optional Sample Description
Accept multipart/form-data String no multipart/form-data content type to be send to server.
Body
Key Type Optional Sample Description
userid String no 123 User ID during login.
access_token String no 1sCvJ6qucfPXZiwXYgOwp... token generated during login.
Sample Response
{
    "status": true,
    "message": "Request successfully.",
    "data": {
        "kycStatus": "not_submitted",
        "kycLink": "https:\/\/identity.uat.matchmove-beta.com\/api\/v1\/web\/sdk?id7bb523ecc983de217a9debe82f91c304308b106de4b4361d005462cac8b3927581541b494c2b1bd3aca84d8fff6013a1ab41fe5319981f2233175d9dd844de4de81ff951",
        "documentType": null,
        "complianceStatus": "not_submitted",
        "email": "[email protected]",
        "requestRfi": false,
        "showIframe": false,
        "state": 0
    }
}
User : Dashboard
Get user KYC link to do KYC.
Task
dashboard
Headers
Key Value Type Optional Sample Description
Accept multipart/form-data String no multipart/form-data content type to be send to server.
Body
Key Type Optional Sample Description
userid String no 123 User ID during login.
access_token String no 1sCvJ6qucfPXZiwXYgOwp... token generated during login.
Sample Response
{
    "status": true,
    "message": "Request successfully.",
    "data": {
        "profile_status": true,
        "kyc_status": 0,
        "kyc_link": "https:\/\/identity.uat.matchmove-beta.com\/api\/v1\/web\/sdk?id7bb523ecc983de217a9debe82f90c1013589156feab4361d0d5060cac2bc937080571b454f2d18db60d7c8f9881365bee3a74a47c871f25833175d9dd844de4de81ff951"
    }
}
User : Get Balance
Get user balance.
Task
get_balance
Headers
Key Value Type Optional Sample Description
Accept multipart/form-data String no multipart/form-data content type to be send to server.
Body
Key Type Optional Sample Description
userid String no 123 User ID during login.
access_token String no 1sCvJ6qucfPXZiwXYgOwp... token generated during login.
Sample Response
{
    "status": true,
    "message": "Request successfully.",
    "data": {
        "balance": "0",
        "name": "USD"
    }
}