Download OpenAPI specification:
Identity API Allowing any person to be uniquely and easily authorized to transparently manage his account, with all necessary credentials and devices, and consents to delegate processing of his/her information and transactions as safely as the user desires within the TrueId ecosystem. JWT is must for all APIs, as soon as account is created (exception = POST /accounts) We add SDK to enforce application level security to reach those services. The account unique identifier (/accounts.id) is typically called SSOID
< Submit OTP codes to request a match check
| id required | string Example: 21990712 or bT0xUV8M/hJ7ABdCk6iDhxxMhtyuuBQS8g/H6rvTmYQ= This can be user identifier (account id) or hashing mobile number |
| oid required | string Example: b9e131f0-941c-4000-b462-493f6a95a681 The user otp unique id |
| status required | string otp status |
required | object |
{- "status": "verifying",
- "inputs": {
- "ref_code": "E5rt",
- "password": "123456"
}
}{- "code": 10001,
- "message": "Success",
- "platform_module": 1109,
- "data": {
- "otp_id": "9eff1606-6ca0-4053-9b35-a3e3df3a18a8",
- "state": "close",
- "status": "verified",
- "inputs": {
- "ref_code": "E5rt",
- "approved": true,
- "counter": 1
}, - "create_at": 1580447379000,
- "update_at": 1580447579000,
- "expire_at": 1580447679000,
- "approve_at": 1580447579000
}
}< Generate a new OTP code from existing otp (same otpid but regenerated code)
| id required | string Example: 21990712 or bT0xUV8M/hJ7ABdCk6iDhxxMhtyuuBQS8g/H6rvTmYQ= This can be user identifier (account id) or hashing mobile number |
| oid required | string Example: b9e131f0-941c-4000-b462-493f6a95a681 The otp unique id |
{- "code": 10001,
- "message": "Success",
- "platform_module": 1109,
- "data": {
- "otp_id": "9eff1606-6ca0-4053-9b35-a3e3df3a18a8",
- "state": "open",
- "status": "send",
- "inputs": {
- "ref_code": "E5rt",
- "counter": 0
}, - "create_at": 1580447379000,
- "update_at": 1580447579000,
- "expire_at": 1580447679000
}
}Confirm the user has the consent you need for your app Query "?names=personalised-marketing" to know if `Personalied Marketing' consent is given.
You can also getting all consents (no query), or multiple Query "?names=personalised-marketing,data-sharing" to get those 2
| id required | string the account unique id |
| names | any Enum: "direct-marketing" "personalised-marketing" "data-sharing" "sharing-mkt" "sharing-rd" "group-consent" "group-consent-true" "group-consent-ascend" "group-consent-cpf" "group-consent-cpall" "group-consent-makro" "group-consent-lotus" select the consent(s) names you want to check |
| client_id | string client id of 3rd party to get idp consent |
{- "code": 10001,
- "platform_module": 1502,
- "message": "Success",
- "content": [
- {
- "Id": "6a2d1fc8-7d6f-46bb-8a7a-4e946f0aea16",
- "Language": null,
- "Identifier": "88123488",
- "LastUpdatedDate": "",
- "DataElements": "[]",
- "Purposes": [
- {
- "Id": "2bf3edba-01d1-4e51-90ed-3efb72346ee0",
- "Name": "direct-marketing",
- "Version": 1,
- "languages": [
- {
- "name": "Deals & promotions",
- "description": "TrueID will offer deals and promotions from True Digital Group via different channels.",
- "language": "en-us",
- "jsonMemberDefault": true
}, - {
- "name": "ดีล & โปรโมชั่น",
- "description": "ทรูไอดีจะส่งข่าวสารอัปเดตดีลและโปรโมชั่นจาก ทรู ดิจิทัล กรุ๊ป ผ่านช่องทางต่างๆ",
- "language": "th",
- "jsonMemberDefault": false
}
], - "Status": "ACTIVE",
- "FirstTransactionDate": "2020-01-29T07:02:44.117",
- "LastTransactionDate": "2020-01-29T07:02:44.117",
- "ConsentDate": "2020-01-29T07:02:44.117",
- "TotalTransactionCount": 1,
- "Topics": "[]",
- "CustomPreferences": "[]",
- "LastTransactionCollectionPointId": "9706237b-dcad-423f-b1bd-465958eaa31d",
- "LastTransactionCollectionPointVersion": 1
}
]
}
]
}Send the list of purposeId the user has allowed.
CAREFUL - the ID to send are provided in response of GET /accounts/{ID}/consents
| id required | integer >= 1 identifier the account |
Array of objects |
{- "purposes": [
- {
- "Id": "8ffa5c2c-90dc-46af-a6fc-72f7db88b668"
}, - {
- "Id": "4fc12791-c1b1-4b0f-aca8-60d3a97ea4ee"
}
]
}{- "code": 10001,
- "message": "Success",
- "platform_module": 1502,
- "report_dashboard": 0
}Provide a list of purposes the user is opting out from
Withdraw the choice(s) of the user (optout)
| id required | integer >= 1 data subject identifier (account id) |
| PurposeId | string Need to expose a purpose_type for frontends |
| withdrawnBy | string Account identifier that request withdraw consent (sso id) |
{- "PurposeId": "8ffa5c2c-90dc-46af-a6fc-72f7db88b668",
- "withdrawnBy": "88123488"
}{- "code": 10001,
- "message": "Success",
- "platform_module": 1502,
- "report_dashboard": 0
}Confirm the user has the consent you need for your app by specific collection point which mapping with client id Query "?names=personalised-marketing" to know if `Personalied Marketing' consent is given.
You can also getting all consents (no query), or multiple Query "?names=personalised-marketing,data-sharing" to get those 2
| names | any Enum: "direct-marketing" "personalised-marketing" "data-sharing" "sharing-mkt" "sharing-rd" "group-consent" "group-consent-true" "group-consent-ascend" "group-consent-cpf" "group-consent-cpall" "group-consent-makro" "group-consent-lotus" select the consent(s) names you want to check for |
{- "code": 10001,
- "platform_module": 1502,
- "message": "Success",
- "purposes": [
- {
- "id": "4ed4f794-79ce-4c94-959f-7638d52e8abf",
- "label": "data-sharing",
- "description": "TDG would like to share customer’s personal data for verifying customer account status.",
- "consentLifeSpan": 0,
- "createdDate": "2021-05-18T01:25:49.807+0000",
- "purposeType": "STANDARD",
- "version": 4,
- "status": "ACTIVE",
- "lastModifiedDate": "2021-05-18T01:27:59.613+0000",
- "languages": [
- {
- "name": "Account verification",
- "description": "Be able to access features on TrueID plus enjoy exclusive privileges. To make this work, I allow True Digital Group, True Group, and selected partners to share my account data with each other for verifying my account status.",
- "language": "en-us",
- "default": true
}, - {
- "name": "ตรวจสอบยืนยันการเป็นลูกค้า",
- "description": "เข้าถึงบริการต่างๆ บนทรูไอดี พร้อมรับสิทธิประโยชน์มากมาย โดยฉันยิมยอมให้ทรู ดิจิทัล กรุ๊ป บริษัทในกลุ่มทรู และพันธมิตรทางธุรกิจ แบ่งปันและเข้าถึงข้อมูลของฉันระหว่างกันได้ เพื่อใช้ตรวจสอบสิทธิ์ และยืนยันการเป็นลูกค้า",
- "language": "th",
- "default": false
}
], - "customPreferences": "[]",
- "topics": "[]"
}, - {
- "id": "362b1f9f-20af-4238-bf61-f279fd4dcdfd",
- "label": "sharing-mkt",
- "description": "The company can disclose the lead to other companies so that the other company can market to the customers themselves. Only after receiving the consent from the customer",
- "consentLifeSpan": 0,
- "createdDate": "2021-05-18T01:25:49.807+0000",
- "purposeType": "STANDARD",
- "version": 2,
- "status": "ACTIVE",
- "lastModifiedDate": "2021-05-18T01:27:59.613+0000",
- "languages": [
- {
- "name": "Data analysis for marketing",
- "description": "Receive offers for products and services, privileges and promotions that match your preference and characteristic from True Group and selected partners. To make this work, I agree for TrueID to share my data for this purpose with such companies and partners.",
- "language": "en-us",
- "default": true
}, - {
- "name": "การศึกษาวิเคราะห์ข้อมูลเพื่อการตลาด",
- "description": "รับข้อเสนอสินค้าและบริการ สิทธิประโยชน์ รายการส่งเสริมการขาย จากบริษัทในกลุ่มทรู และพันธมิตรทางธุรกิจของเรา ที่วิเคราะห์คัดสรรมาเป็นพิเศษอิงตามความชื่นชอบและพฤติกรรมของคุณ โดยฉันยินยอมให้ทรูไอดี เปิดเผยข้อมูลส่วนบุคคลของฉันกับบริษัทและพันธมิตรเพื่อวัตถุประสงค์ดังกล่าว",
- "language": "th",
- "default": false
}
], - "customPreferences": "[]",
- "topics": "[]"
}, - {
- "id": "8aacb65a-3c9d-40ee-b0db-fe736551e2dc",
- "label": "sharing-rd",
- "description": "The company can disclose to other companies so that company researches, develops and improves its products or services. Only after receiving the consent from the customer",
- "consentLifeSpan": 0,
- "createdDate": "2021-05-18T01:25:49.807+0000",
- "purposeType": "STANDARD",
- "version": 2,
- "status": "ACTIVE",
- "lastModifiedDate": "2021-05-18T01:27:59.613+0000",
- "languages": [
- {
- "name": "Data analysis for research and development",
- "description": "Experience quality products and services from True Group and our selected partners by sharing my data for research, development, improvement of products and services as well as marketing planning. To make this work, I agree for TrueID to share my data with such companies and partners.",
- "language": "en-us",
- "default": true
}, - {
- "name": "การศึกษาวิเคราะห์ข้อมูลเพื่อการพัฒนา",
- "description": "ใช้งานผลิตภัณฑ์ และบริการที่ดียิ่งขึ้น เพียงช่วยบริษัทในกลุ่มทรูและพันธมิตรทางธุรกิจของเรา ในการวิจัย พัฒนา ปรับปรุงผลิตภัณฑ์ และวางแผนการตลาด โดยฉันยินยอมให้ทรูไอดีเปิดเผยข้อมูลส่วนบุคคลของฉันกับบริษัทและพันธมิตรดังกล่าว",
- "language": "th",
- "default": false
}
], - "customPreferences": "[]",
- "topics": "[]"
}, - {
- "id": "ff57294e-ba51-4939-a111-f0478b060b1a",
- "label": "direct-marketing",
- "description": "Send TDG direct marketing to customer via SMS. e-mail and push notification on the application without personalisation.",
- "consentLifeSpan": 0,
- "createdDate": "2021-05-18T01:25:49.807+0000",
- "purposeType": "STANDARD",
- "version": 5,
- "status": "ACTIVE",
- "lastModifiedDate": "2021-05-18T01:27:59.613+0000",
- "languages": [
- {
- "name": "Deals & promotions",
- "description": "TrueID will offer deals and promotions from True Digital Group via different channels.",
- "language": "en-us",
- "default": true
}, - {
- "name": "ดีล & โปรโมชั่น",
- "description": "ทรูไอดีจะส่งข่าวสารอัปเดตดีลและโปรโมชั่นจาก ทรู ดิจิทัล กรุ๊ป ผ่านช่องทางต่างๆ",
- "language": "th",
- "default": false
}
], - "customPreferences": "[]",
- "topics": "[]"
}, - {
- "id": "0597d7ee-440b-4df6-8b27-0a8668b9b70f",
- "label": "personalised-marketing",
- "description": "TDG Analyse customer personal data including activity and behavior to create segment and preference and use such information to send Direct Marketing for TDG and partner products to customer via email, SMS and Push notification",
- "consentLifeSpan": 0,
- "createdDate": "2021-05-18T01:25:49.807+0000",
- "purposeType": "STANDARD",
- "version": 5,
- "status": "ACTIVE",
- "lastModifiedDate": "2021-05-18T01:27:59.613+0000",
- "languages": [
- {
- "name": "Relevant deals & promotions and personalised ads",
- "description": "TrueID will offer products and services, privileges, promotions and other offers from True Digital Group and our selected partners and will advertise all contents that match your preference and characteristic via different channels. I agree for TrueID to do so.",
- "language": "en-us",
- "default": true
}, - {
- "name": "ดีล & โปรโมชั่น และโฆษณาเฉพาะคุณ",
- "description": "ทรูไอดีจะนำเสนอสินค้าและบริการ สิทธิประโยชน์ รายการส่งเสริมการขาย และข้อเสนอต่าง ๆ จาก ทรู ดิจิทัล กรุ๊ป และพันธมิตรทางธุรกิจของเรา และโฆษณาคอนเทนต์ต่างๆ ที่วิเคราะห์คัดสรรมาเป็นพิเศษโดยอิงตามความชื่นชอบและพฤติกรรมของคุณผ่านช่องทางต่าง ๆ ฉันยินยอมให้ทรูไอดีดำเนินการดังกล่าว",
- "language": "th",
- "default": false
}
], - "customPreferences": "[]",
- "topics": "[]"
}, - {
- "id": "04d71f16-79d4-43af-8077-93196950cca4",
- "label": "group-consent",
- "description": "Collect consent under CPG to share personal data across CPG for data analysis and marketing.",
- "consentLifeSpan": 0,
- "createdDate": "2021-05-24T03:31:21.427+0000",
- "purposeType": "STANDARD",
- "version": 1,
- "status": "ACTIVE",
- "lastModifiedDate": "2021-05-24T03:35:17.870+0000",
- "languages": [
- {
- "name": "Group consent",
- "description": "I give consent for the affiliated companies, as listed in the URL below, to collect, use and disclose my personal data in order to receive privileges and promotions from such companies and selected partners that are well customised and analysed based on my characteristic and personal preference, and to enable our development, improvement of products as well as planning marketing strategies. https://www3.truecorp.co.th/new/group-privacy-policy",
- "language": "en-us",
- "default": true
}, - {
- "name": "ความยินยอมกลุ่มธุรกิจ",
- "description": "ข้าพเจ้าให้ความยินยอมแก่บริษัทในเครือตามรายชื่อแนบท้ายนี้ ในการเก็บรวบรวม ใช้ และเปิดเผยข้อมูลส่วนบุคคลของข้าพเจ้า เพื่อรับสิทธิประโยชน์ รายการส่งเสริมการขายจากบริษัทและพันธมิตรดังกล่าว ที่วิเคราะห์และคัดสรรอย่างเหมาะสมกับข้าพเจ้าโดยอิงตามพฤติกรรมและความชื่นชอบส่วนตัว และเพื่อพัฒนา ปรับปรุ ผลิตภัณฑ์ และวางแผนการตลาด https://www3.truecorp.co.th/new/group-privacy-policy",
- "language": "th",
- "default": false
}
], - "customPreferences": "[]",
- "topics": "[]"
}
]
}Listing 3rd party apps the user has consented too.
Deletion requires the use of consents Step1 = GET /collectionpoints (to get purposeID for purpose=identity-provider)
Step2 = Add (allow) and Remove (withdraw)
| id required | string the account unique id |
{- "code": 10001,
- "message": "Success",
- "platform_module": 1502,
- "report_dashboard": 0,
- "data": [
- {
- "company_name": "Ascend Commerce Co., Ltd.",
- "consent_date": "2020-03-27T07:41:02.110",
- "purpose_id": "1f6e18b9-eb6b-4bb3-a1c5-e94b7ea3ba14",
- "client_id": "615",
- "collection_point": "9f05652f-0ae8-4c5b-a0d8-aaa5bedcc3b4",
- "application_payload": {
- "collection_point": "9f05652f-0ae8-4c5b-a0d8-aaa5bedcc3b4",
- "languages": {
- "th": {
- "app_name": "วีมอลล์",
- "description": "วีมอลล์แอพพลิเคชัน"
}, - "en": {
- "app_name": "We Mall",
- "description": "We Mall App"
}
}
}
}
]
}There are three methods to verify 2FA
| id required | string The account unique id |
| client_id_requested | integer Example: client_id_requested=213 Application client id requested 2FA |
| ssoid_requested required | integer Example: ssoid_requested=22881234 SSO id requested 2FA |
| device_id required | string Example: device_id=d97fb944ed1abeabf Device id generated from SDK belong to device that approved |
| device_model required | string Example: device_model=iPhone7,2 Device model generated from SDK belong to device that approved |
| device_model_name | string Example: device_model_name=iPhone 7 Device model name of device that approved |
| account_requested required | string Example: account_requested=0818284455' Account requested 2FA |
| device_id_requested required | string Example: device_id_requested=LM-G710 New device id that request to trust |
| device_model_requested required | string Example: device_model_requested=3638ebe3eb4aeb5a New device model that request to trust |
| google_client_id required | string Example: google_client_id=15994588910-ht9p8tds24s Google client id |
| method required | string Enum: "notification" "email" "qr" Example: method=notification Method to verify 2FA |
| trusted_flag required | string Enum: "1" "0" Example: trusted_flag=1 Memorize device requested from user |
| is_approved | string Enum: "1" "0" Example: is_approved=1 User approved from app which is trusted device |
| latlong required | string Example: latlong=16.56523,100.13137 Latitude and Longitude |
| ip_address required | string Example: ip_address=10.110.0.15 Client IP address |
{- "code": 10001,
- "message": "Success",
- "platform_module": 1503,
- "data": {
- "trusted_owner": "1",
- "trusted_device": "1",
- "created_at": "1592331641",
- "is_approved": "1"
}
}< Provides basic information to find and identify the account (e.g. to establish relationships) Coming soon = details currently transmitted by JWT, will be exposed as API
| id required | integer Example: 21990712 A unique identifier the account (aka. SSOID) |
{- "code": 10001,
- "message": "Success",
- "platform_module": 1504,
- "data": {
- "mobile": "+66815557777",
- "email": "abc@gmail.com",
- "verified": true,
- "bindings": {
- "truecorp": {
- "thaiid": "3100633355588",
- "thaiid_verified_method": "billing_system",
- "thaiid_status": "1"
}, - "truemoney": {
- "tmn_id": "tmn.10025441383",
- "updated_at": "1592535055",
- "created_at": "1586885699",
- "status": "1"
}
}, - "contacts": [
- {
- "type": "mobile",
- "identifier": "+66818889999",
- "verified": true,
- "preferred": true,
- "added_date": "1556973792",
- "last_verified": "1576973792"
}
], - "login_by": "mobile",
- "reg_date": "1551973792"
}
}< Provides list of devices based on user login to control concurrent login. Coming soon = first times, last times and location that user have seen those devices.
| id required | integer Example: 21990712 A unique identifier the account (aka. SSOID) |
| google_client_id required | string Example: google_client_id=1758919209.1583986247 Device id of web site which getting google client id from GA. This field is optional if client id in JWT belong to app. |
{- "code": 10001,
- "message": "Success",
- "platform_module": 1505,
- "data": {
- "device_limit": "5",
- "device_info": [
- {
- "current_device": "true",
- "device_id": "63CDB819-1491-409B-9631-CAB12ECD6D42",
- "device_model": "iPhone6,1",
- "device_model_name": "iPhone6",
- "device_type": "mobile",
- "trusted_device": "1",
- "easylogin": "1",
- "biometric": "0",
- "last_verified": "05/06/2020 18:33",
- "google_client_id": "755749044.1600665435",
- "first_seen": {
- "time": "05/05/2020 18:20:06",
- "location": "16.5652,100.1313"
}, - "last_seen": {
- "time": "05/08/202 18:12:22",
- "location": "16.5600,100.1520"
}
}
]
}
}Provide client id of partners that need to integrate with TrueID login. Allow only partner integration team to create client id automation.
Array of objects | |
| redirect_uri | string Endpoint for callback URLs |
| scope | string Scopes define the specific JWT node can be allowed |
object | |
object | |
| country required | string Country name |
{- "applications": [
- {
- "application_type": "web",
- "client_code": "WEB_TRUESMARTLIVING_TRUE",
- "client_description": "True Smart Living"
}
], - "app_name": {
- "th": "ทรูสมาร์ทลิฟวิ่ง",
- "en": "True Smart Living"
}, - "company_name": {
- "th": "ทรู คอร์ปอเรชั่น",
- "en": "True Corporation"
}, - "country": "Thailand"
}{- "code": 10001,
- "message": "Success",
- "platform_module": 1509,
- "report_dashboard": 0,
- "data": [
- {
- "client_id": 3465,
- "client_secret": "Ntk3OnqoNJkkv5kIWAx7yKzVfm2R"
}
]
}Client (TrueID App/OTT) need to exchange token of partner. API will issue new jwt of partner as client requested.
| client_id required | integer Example: 212 Application client id |
| client_secret required | string Example: 607ed94fb933d775beabfd9xx00 Application client secret |
| grant_type | string oauth2 token exchange grant type |
| requested_token_type | string requested token type |
| subject_token | string token that represents the identity of the party on behalf of whom the request is being made (jwt token) |
| audience | integer third party client id |
| request_uri | Array of strings |
{- "grant_type": "token-exchange",
- "requested_token_type": "urn:ietf:params:oauth:token-type:jwt",
- "subject_token": "eyJzdWIiOiIyMTk5MjA0MCIsImRldmljZV9pZCI6IjEyMzQ1Njc4IiwicHJvZmlsZSI6eyJyZWZzIjpudWxsLCJhdmF0YXIiOiJodHRwczpcL1wvc3RnLWF2YXRhci5kbXBjZG4uY29tXC9wMzIweDMyMFwvNDBcLzIxOTkyMDQwLnBuZz9jaGs9MC40MzE3MTE0NTE1MzkyNjEwNSIsImRpc3BsYXlfbmFtZSI6IjA4MSoqKioqKioifSwiaXNzIjoiaHR0cHM6XC9cL3Nkay1hdXRoLnRydWVpZC1kZXYubmV0IiwiYXBpbV9hbiI6IlRJRHdiIiwidmVyc2lvbiI6IjIuMC",
- "audience": 615,
- "request_uri": [
- "wemall.com"
]
}{- "access_token": "eyJhbGciOiJFUzI1NiIsImtpZCI6IjllciJ9.eyJhdWQiOiJodHRwczovL2JhY2tlbmQuZXhhbXBsZS5jb20iLCJpc3MiOiJodHRwczovL2FzLmV4YW1wbGUuY29tIiwiZXhwIjoxNDQxOTE3NTkzLCJpYXQiOjE0NDE5MTc1MzMsInN1YiI6ImJjQGV4YW1wbGUuY29tIiwic2NvcGUiOiJhcGkifQ.K4Ik-igqOKi_4CnBu4dG3-gGUObfgv-rJhgXVDNOWW_MHgVwddhgVLLQf_bm3xlpQM6wHrLbMaZC4LicsQC23g",
- "issued_token_type": "urn:ietf:params:oauth:token-type:jwt",
- "token_type": "Bearer",
- "expires_in": 3600
}<| To get customer information only for MobileID project.
| mobile_number required | string Example: lOgjCfSGrFimL0eml5qV3A== The customer mobile number with encryption and url encode. |
| channel required | string Enum: "MobileApp" "CRM" "Kiosk" Example: channel=MobileApp The channel from requestor. ( CRM = channel CRM , Kiosk = channel Kiosk , MobileApp = channel Mobile Application) |
| x-request_id required | string Example: BBLA927da5c1-0434-4eeb-b96e-fc3ec830e369 The reference request id from requestor. |
| x-client_id required | string Example: 3547 The unique id for each relying party. |
| x-request_datetime required | string Example: 2020-11-11T11:59:54 The request date and time. |
{- "resultResponse": {
- "resultCode": "200",
- "resultMessage": "Success",
- "resultInfo": {
- "processName": "GetCustomerInfo",
- "refRequestId": "4054ec19-e0b0-41e9-8cc5-2deff4937ac9",
- "MSISDN": "bT0xUV8M/hJ7ABdCk6iDhxxMhtyuuBQS8g/H6rvTmYQ=",
- "statusCode": "00",
- "statusDec": "get customer data success",
- "customerInfo": {
- "docType": "<encrypted>",
- "idNumber": "<encrypted>",
- "cardNo": "<encrypted>",
- "cardVersion": "<encrypted>",
- "chipID": "<encrypted>",
- "idCardType": "<encrypted>",
- "thaiTitle": "<encrypted>",
- "thaiFirstName": "<encrypted>",
- "thaiLastName": "<encrypted>",
- "engTitle": "<encrypted>",
- "engFistName": "<encrypted>",
- "engLastName": "<encrypted>",
- "dateOfBirth": "<encrypted>",
- "gender": "<encrypted>",
- "issueDate": "<encrypted>",
- "expiryDate": "<encrypted>",
- "thaiMiddleName": "<encrypted>",
- "engMiddleName": "<encrypted>",
- "issuePlace": "<encrypted>",
- "issuerCode": "<encrypted>",
- "issuerSignature": "<encrypted>",
- "photoCodeNo": "<encrypted>",
- "photoCard": "<encrypted>",
- "addrHno": "<encrypted>",
- "addrMoo": "<encrypted>",
- "addrTrok": "<encrypted>",
- "addrSoi": "<encrypted>",
- "addrRoad": "<encrypted>",
- "addrSubDistrict": "<encrypted>",
- "addrDistrict": "<encrypted>",
- "addrProvince": "<encrypted>"
}, - "timeStamp": "2020-11-11T11:59:54"
}
}
}< Adding an additional credential to an account to enforce security. This should only be done in a session with 2+ factors
| id required | integer A unique identifier the account |
Object containing customer credentials
| value required | string |
| type required | string Enum: "mobile" "email" "password" "facebook_id" "google_id" "device_id" |
| kind required | string Enum: "knowledge" "possession" "inherent" "location" |
| source required | string Enum: "user" "facebook" "google" |
| status required | string Enum: "new" "active" "inactive" "blocked" |
| last_verified | string |
| created_at | string |
| updated_ip | string |
| created_ip required | string |
{- "value": "0818082899",
- "type": "mobile",
- "kind": "knowledge",
- "source": "user",
- "status": "active",
- "last_verified": "29-Aug-19 08:30:22",
- "created_at": "14-Aug-19 15:15:00",
- "updated_ip": "110.170.171.178",
- "created_ip": "110.170.171.178"
}{- "code": 10001,
- "platform_module": 1501,
- "report_dashboard": 0,
- "message": "Success"
}< Listing credentials available to recover an account. Not including the private/encrypted information.
| id required | integer A unique identifier the account |
{- "code": 10001,
- "platform_module": 1501,
- "report_dashboard": 0,
- "message": "Success",
- "data": [
- {
- "id": "5c7326e0-8cd2-442a-b5c8-aebd04529c44",
- "value": "0818082899",
- "type": "mobile",
- "kind": "knowledge",
- "source": "user",
- "status": "active",
- "last_verified": "29-Aug-19 15:20:10",
- "created_at": "10-Aug-19 09:23:45",
- "updated_ip": "110.170.171.178",
- "created_ip": "110.170.171.178"
}, - {
- "id": "e31ae4e7-94c7-4081-9895-ba3ee5c508bc",
- "value": "abc@gmail.com",
- "type": "email",
- "kind": "knowledge",
- "source": "user",
- "status": "new",
- "last_verified": "",
- "created_at": "29-Aug-19 09:19:29",
- "updated_ip": "110.170.171.179",
- "created_ip": "110.170.171.179"
}
]
}< Used to manage the status of credentials, especially set verified after successful OTP exchange
| id required | integer A unique identifier the account |
| cid required | integer Credential ID |
Update credential information
| value required | string |
| type required | string Enum: "mobile" "email" "password" "facebook_id" "google_id" "device_id" |
| kind | string Enum: "knowledge" "possession" "inherent" "location" |
| source | string Enum: "user" "facebook" "google" |
| status | string Enum: "new" "active" "inactive" "blocked" |
| last_verified required | string |
| updated_ip required | string |
{- "value": "abc@gmail.com",
- "type": "email",
- "status": "active",
- "last_verified": "29-Aug-19 15:05:30",
- "updated_ip": "110.170.171.178"
}{- "code": 10001,
- "platform_module": 1501,
- "report_dashboard": 0,
- "message": "Success"
}< Removing this credential from the account
| id required | integer A unique identifier the account |
| cid required | integer Credential ID |
| status required | integer Credentail status |
{- "code": 10001,
- "platform_module": 1501,
- "report_dashboard": 0,
- "message": "Success"
}