Create QR

URL

The relevant endpoint and http method information for the service where the QR code is generated before payment is given below.

(This service is used to generate QR for simulation. In the real world, Metropol QR code is generated at the payment point. The customer completes the transaction by scanning the QR code on the pos screen.)

HTTP Method URL
POST /v1/Transaction/Create3rdPartyQrCode

Request Params

Params Type Mandatory
provider_id string No
data string Yes
MerchantCode string Yes
TerminalCode string Yes
TransactionAmount decimal Yes

Response Params

Params Type
status int
code string
message string
payload Obje[]
qr_code string
short_code string
expire_date string

REQUEST (POST) :

    "provider_id":"testId",  

    "data":{
            "MerchantCode":"0000010111",
            "TerminalCode":"0000020121",
            "TransactionAmount":10
            }

RESPONSE:

{
    "status": 0,
    "code": "100",
    "message": null,
    "payload": {
        "qr_code": "63759467249265485224",
        "short_code": "946216",
        "expire_date": "2022-06-03T15:09:09.9205428+03:00"
    }
}