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

6.3. API Tạo mã QR Code

Api Gen QR Code

API Tạo mã QR Code

POST https://open-api.tingee.vn/v1/generate-viet-qr - Môi trường live

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

Gửi lệnh tạo mã QR Code tùy chỉnh

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 (OCB, MBB, BIDV, ACB, CTG, PGB, STB)

accountNumber*

string

Số tài khoản

amount

number

Số tiền

content

string

Nội dung giao dịch

{
    "code": "00",
    "message": "Success"
    "data": {
        "qrCode": "string",
        "qrCodeImage": "string",
        "qrAccount": "string",
        "referenceLabelCode": "string"
        }
}

Ví dụ CURL:

Last updated