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-qrarrow-up-right - Môi trường live

POST https://uat-open-api.tingee.vn/v1/generate-viet-qrarrow-up-right - 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/developersarrow-up-right)

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