Search…
Ví dụ Request / Response
Ví dụ minh họa với hình thức thanh toán Transaction QR

Request

1
POST https://api-merchant-sandbox.vinid.dev/merchant-integration/v1/qr/gen-transaction-qr
2
Accept: 'application/json',
3
Content-Type: 'application/json',
4
X-Key-Code: '28f04867-c6d5-425f-9108-0d90a0c0b09e',
5
X-Nonce: '1583122246',
6
X-Timestamp: 1583122246,
7
X-Signature: 'IrAHA7RAxGVRfu8TyM+VVtuNwzbvSZFQ6BUSHxBZHV1o7m5uJpr4CIuor6Ku2tSvWM5VHGGQkvqHXmpo7uwceVJorpey9v8sJE+pgtanRO8fnHDbXWrW4JNL6MgrNZwXZU5qh8GMnCxNmToXTqFoFrB5vilekyDlFKzWdz/PDIju2HdTeJgNMWm54zqtoq6L1qc8vc5earylaFspWlaI+qDvK93cklDOAaJinxK0m+4EQtjkdAvL1D4LuI4mnvvwXoMo69W3ZUZp/KLCRTKDvvfHCwpNsqJDv7vQLBDKMbzFSNECu+CIG2z9e2lXpLwSxIoDdh+bYS831QPQK4nQnQ==',
8
9
{
10
"callback_url": null,
11
"description": "Test trans QR",
12
"extra_data": "",
13
"order_amount": 10000,
14
"order_currency": "VND",
15
"order_reference_id": "",
16
"pos_code": "POSCODE01",
17
"service_type": "PURCHASE",
18
"store_code": "STORECODE01"
19
}
20
Copied!

Response

1
HTTP/1.1 200 OK
2
Date: Mon, 02 Mar 2020 04:15:43 GMT
3
Content-Type: application/json; charset=utf-8
4
Transfer-Encoding: chunked
5
Connection: close
6
Set-Cookie: __cfduid=d17ef257bc41217c6cc999b06d6f8b8f21583122543; expires=Wed, 01-Apr-20 04:15:43 GMT; path=/; domain=.vinid.dev; HttpOnly; SameSite=Lax; Secure
7
X-Request-ID: eb79bbea-77cd-455a-82ff-a33041671914#1098
8
CF-Cache-Status: DYNAMIC
9
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
10
Alt-Svc: h3-27=":443"; ma=86400, h3-25=":443"; ma=86400, h3-24=":443"; ma=86400, h3-23=":443"; ma=86400
11
Server: cloudflare
12
CF-RAY: 56d84c563ceea366-HKG
13
Content-Encoding: gzip
14
15
{
16
"meta": {
17
"code": 200,
18
"message": "OK"
19
},
20
"data": {
21
"qr_url": "",
22
"qr_data": "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAABlBMVEX///8AAABVwtN+AAACTklEQVR42uyYPW7kOhCES1DAkEfgUXgxQxLhi/EoPAJDBoTqoVp6nrF3Nx5ydzowYOILpqGq/sM73vFPxkKSp2MHXF4LfG6BNeo1TwQ0AJvL8KfTa40Ne40A/FRAYN0cu08kQiJbSDXqYTRAP/pA7OG4ZDQr0KWtjp2cEzBFkRUAy4Y/SO61wGXe3H1qcS2bzJt+4+6xgSuU5kKuPL3MUX8pp8MD5u4Mn5hNUQ3wbNi/0nw9sLCsdWlYVYdMUfoMBD6+etYMQAumKH2LfPv2kDk+ntw9PiAdJWWWGrp5Wr5AOGYC4Mpq7lah6pexk1XToQBKUdF8AXNDILMqPyYCELrMvFYb1fZ7iED4fNh/fEBNzR/u+mctZo79uZAOAZDdn4BmhLgWS+v0ZPmfmgJQctX+7DLvXtE0r7XwUNQMgKPcQFazxCm7b4jyfB4HAFaaovYWVx4+u6LBZy5gabBWa6Oa0lShx/dlcALAelaLd8o76YqmoEcJGgBQeI0HaqyaijUkq7seT2VoeGBhMXOo82YDnB6eh5wZgBbgT0koXdrShiKfH2MB5KGNFaL0GbB998UUgBRl1V4vy32ocTz8XIC525bBHrSchNNnS30m4GtbtELlecdnHQd47N07s/UsdWGYg+cBrhsIIm0q5qnq811RUwB2j9JXSlJUYhbwnOYQwHVlxXVusu1Qk1v5+HGGnQLQVByvs7wKqQa4+YBsirpb2eZ/NLXXA6ao2GH3YC0gpijOBdzmhT8Aluvg5+l+nGEHB97xjr8s/gsAAP//tq28Lpz6etIAAAAASUVORK5CYII=",
23
"qr_code": "https://qr.id.vin/TX.20200302T00100015912",
24
"order_id": "20200302T00100015912",
25
"expiration": 1583123381
26
}
27
}
28
Copied!
Last modified 1yr ago
Export as PDF
Copy link
Contents