API Reference

Create Payment Request

Request

[POST] /api/v1/invoice/create-payment
Content-Type: application/json
x-client-id: <client_id>
x-signature: <signature>
x-timestamp: <timestamp>

Body

NameRequiredTypeDescription
invoice_idrequiredstringInvoice ID
payment_method_idoptionalstringPayment method ID

Response

Content-Type: application/json

Body

NameTypeDescription
iduuid.UUIDPayment ID
provider_codestringProvider code
payment_methodstringPayment method
payment_request_codestringPayment request code
ref_typestringRef type
ref_idstringRef ID
linking_bank_accountstruct-parent
account_numberstring
account_namestring
bank_codestring
is_activeboolean
usage_typestring
iduuid.UUID
balance_available_amountfloat64
reference_iduuid.UUID
master_account_namestring
bank_idstring
payment_infostruct
payment_notepayment_info:string
request_amountpayment_info:float64
currency_codepayment_info:string
qr_infostruct-parent: payment_info
qr_codeqr_info:string
account_numberqr_info:string
bank_virtual_account_numberqr_info:string
account_nameqr_info:string
bank_codeqr_info:string
bank_idqr_info:string

Errors

StatusMesssage
200Success
401Unauthorized

Example

Request

[POST] /oapi/v1/banking/virtual-account
{
    "invoice_id": "92890a75-c0d4-4329-90ad-235ee602ce08",
    "payment_method_id": "fcefa968-fe00-4d06-a431-53bd001e7f4b"
}

Response

{
    "message": {
        "content": "Bạn vừa thực hiện tạo thành công %s"
    },
    "code": 102001,
    "request_id": "3f619905-43d5-4d69-b9ec-b541de60959e",
    "data": {
        "id": "33db41bc-2bb3-4243-a113-5c32db331cf8",
        "provider_code": "sobanhang",
        "payment_method": "viet_qr_pro_mb",
        "payment_request_code": "PRTL3VUI",
        "ref_type": "invoice",
        "ref_id": "SOSPMFA3",
        "linking_bank_account": {
            "account_number": "VQRQOPBIE7328",
            "account_name": "NGUYEN VAN A",
            "bank_code": "MB",
            "is_active": false,
            "usage_type": "",
            "id": "cb375200-480c-4c18-8592-e30617f90fc7",
            "balance_available_amount": 0,
            "reference_id": "",
            "master_account_name": "NGUYEN VAN A",
            "bank_id": "311"
        },
        "payment_info": {
            "qr_info": {
                "qr_code": "00020101021238570010A000000727012700069704220113VQRQOQHMM90720208QRIBFTTA530370454063500005802VN62320107NPS68690817TT3LKETR SOSPMFA363045662",
                "account_number": "5729334769767",
                "bank_virtual_account_number": "VQRQOQHMM9072",
                "account_name": "NGUYEN VAN A",
                "bank_code": "MB",
                "bank_id": "311"
            },
            "payment_note": "TT3LKETR SOSPMFA3",
            "request_amount": 350000,
            "currency_code": "VND"
        }
    }
}

QR Check

https://me-qr.com/qr-code-generator/qr -> copy qr -> choose Text then paste it in there