LogoLogo
  • Ứng dụng VinID
  • Giới thiệu chung
    • Dịch vụ thanh toán VinID Pay
    • Dịch vụ loyalty VinID Point
    • Quy trình tích hợp
  • Tài liệu tích hợp
    • Môi trường tích hợp
    • Quy tắc kết nối chung
      • Request Header
      • X-Key-Code
      • Signature - chữ kí điện tử
      • Ví dụ Request / Response
      • Extra Data
    • OneID SSO Integration (PKCE)
      • Auth endpoint
      • Token endpoint
      • Refresh token
      • Logout endpoint
      • Profile endpoint
      • OpenID Configuration
    • Tích hợp với VinID Pay
      • Thanh toán Merchant QR
      • Thanh toán Transaction QR
      • Thanh toán App to App
      • Thanh toán Web Payment
      • Thanh toán Linked Account
      • Dịch vụ chi hộ
      • Callback / IPN
      • Refund giao dịch
    • Tích hợp với VinID Loyalty
      • Dịch vụ lấy hạng thành viên trung thành
      • Dịch vụ VinID Giftcode
        • Deprecated APIs
      • Dịch vụ Topup VinID Point
        • Deprecated APIs
    • Tích hợp với VinID Voucher
      • Dịch vụ E-Voucher
    • Mã lỗi chung
  • Đối soát
    • Đối soát Ví điện tử VinID Pay
  • Khác
    • Thuật ngữ
    • Câu hỏi thường gặp
    • Ứng dụng quản lý
      • Merchant Mobile App
      • Merchant Website
    • Thông tin hỗ trợ
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Tài liệu tích hợp
  2. Quy tắc kết nối chung

Extra Data

Sử dụng trong trường hợp đối tác muốn bổ sung thêm thông tin cho 01 giao dịch.

Hệ thống VinID sẽ đọc theo format sau:

{
    "partner_code": "YOUR-PARTNER-CODE-HERE",
    // thông tin thêm mà đối tác muốn bổ sung cho giao dịch.
    "order_info": "your-json-string"
}

Ví dụ:

// request body với extra data dạng array key-value
{
    "callback_url": "your-callback-url",
    "description": "Mua hàng tại quầy",
    "order_amount": "10000",
    "order_currency": "VND",
    "order_reference_id": "DOITAC-DON-01",
    "pos_code": "POS-CUA-HANG-01",
    "service_type": "PURCHASE",
    "store_code": "CUA-HANG-01",
    "extra_data": {
        "partner_code": "MERCHANT-01",
        "order_info": "[{\"topping\":\"pho mai\",\"ship_method\":\"ship b\u1eb1ng m\u00e1y bay\"}]"
    }
}
// request body với extra data dạng object
{
    "callback_url": "your-callback-url",
    "description": "Mua hàng tại quầy",
    "order_amount": "10000",
    "order_currency": "VND",
    "order_reference_id": "DOITAC-DON-01",
    "pos_code": "POS-CUA-HANG-01",
    "service_type": "PURCHASE",
    "store_code": "CUA-HANG-01",
    "extra_data": {
        "partner_code": "MERCHANT-01",
        "order_info": "{\"customer\":\"joker\",\"sent_to\":\"batman\",\"is_a_bomb\":true}"
    }
}
PreviousVí dụ Request / ResponseNextOneID SSO Integration (PKCE)

Last updated 4 years ago

Was this helpful?