For the complete documentation index, see llms.txt. This page is also available as Markdown.
Page cover

6.2.2. API xác thực OTP

Api xác thực OTP

API Xác thực OTP

POST https://open-api.tingee.vn/v1/confirm-va - Môi trường live

POST https://uat-open-api.tingee.vn/v1/confirm-va - Môi trường test

Gửi lệnh thêm mới liên kết ngân hàng

Headers

Name
Type
Description

x-client-id

string

Định danh ứng dụng (Lấy trong https://app.tingee.vn/m/developers)

x-request-timestamp

string

Dấu thời gian (yyyyMMddHHmmssSSS)

x-signature

string

Quy tắc kiểm tra tính toàn vẹn dữ liệu: Chuỗi giá trị cần hash = {x-request-timestamp}:{request body convert về string}

Sau đó thực hiện mã hóa chuỗi bên trên với giải thuật: HMAC SHA512 với Key là Secret token lấy tại mục Developers trên Tingee

Request Body

Name
Type
Description

bankName*

enum

Ngân hàng

confirmId*

string

Mã tham chiếu của ngân hàng

otpNumber*

string

Mã OTP

{
    "code": "00",
    "message": "Success"
    "data": {
        "accountType": "personal-account",
        "bankName": "OCB",//OCB MBB BIDV ACB hoặc VPB
        "accountNumber": "string",
        "vaAccountNumber": "string"
        }
}
{
  "message": "Unauthorized.",
  "error": "Unauthorized",
  "statusCode": 401
}
{
  "message": "Not have access.",
  "error": "Bad Request",
  "statusCode": 400
}
{
  "message": "Forbidden.",
  "error": "Forbidden",
  "statusCode": 403
}

Ví dụ CURL:

Last updated