Tùy chọn nhà cung cấp

Tạo đơn tùy chọn

POST /order

Headers

Name
Type
Description

Authorization*

String

Bearer token

Request Body

Name
Type
Description

amount*

number

Số tiền

orderId*

String

mã đơn hàng từ đối tác

orderType*

String

DEPOSIT

providerId*

number

Id của nhà cung cấp, tùy chọn để chỉ định trực tiếp. Được lấy ở Lấy danh sách provider

callBackUrl*

String

Url dược gọi từ phía đối tác khi đơn hàng cập nhật

signature*

String

Chữ ký được tạo ở mục Signature & Authorization

returnUrl*

String

Url redirect sau khi thực hiện thanh toán (tùy loại nếu có)

{
    "data": {
        "id": 1,
        "type": "DEPOSIT",
        "payMethod": "BANK_TRANSFER",
        "status": "PENDING",
        "orderId": "orderIdFromClient",
        "callBackUrl": "https://callback.example.com/callack",
        "signature": "7203659612786ca5280ee592c9392b077030c10580b952eac04f7aab51032657",
        "providerId": 1,
        "payData": {
            "qr": "https://img.vietqr.io/image/example.jpg",
            "bankCode": "123000000",
            "bankName": "TCB",
            "accountNo": "123456",
            "accountName": "NGUYEN VAN A"
        },
        "accountId": 1,
        "createdAt": "2024-01-04T07:57:20.871Z",
        "updatedAt": "2024-01-04T07:57:20.871Z",
        "amountNumber": 1000000
    }
}

Last updated