/

to search

#Create a static QR

The merchant will have to call the create sqr API with the correct set of parameters.

Hosthttps://umap.setu.co/api
MethodPOST
Path/v1/merchants/sqr
HeadermerchantId
Authorization: Bearer <insert_token_here>
Generate an access token ↗

Content-Type—will be application/json
API referenceCreate a static QR ↗



{
"amount": 10000,
"merchantVpa": "fastestupi@pineaxis",
"referenceId": "1240689979139556557",
"metadata": {
"InvoiceNumber": "INV-21-12-009"
},
"transactionNote": "testpay"
}

#Fetch sqr by id (check status)

This API fetches status of the payment-link itself, not the payment done using it


The merchant can also get the payment link status by payment link id by calling fetch sqr by id API which can be used for debugging or knowing if payment link is active, inactive or expired.


Hosthttps://umap.setu.co/api
MethodGET
Path/v1/merchants/sqr/{id}
HeadermerchantId
Authorization: Bearer <insert_token_here>
Generate an access token ↗

Content-Type—will be application/json
API referenceFetch dqr by id ↗


{
"expiryDate": "2023-09-04T12:08:20+0530",
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"intentLink": "upi://pay?pa=test-auto-pgruosncak@pineaxis&pn=merchant-4&am=100.00&tr=SU1240659756905923780&tn=sample%20single%20use%20qr&cu=INR&mc=1234",
"merchantId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"merchantReferenceId": "1240689979139556557",
"merchantVpa": "fastestupi@pineaxis",
"metadata": {
"InvoiceNumber": "INV-21-12-009"
},
"refId": "1240689979139556558",
"shortLink": "upipay.setu.co/Np3KnBCM8Om0",
"status": "active",
"transactionNote": "testpay",
"createdAt": "2023-09-04T12:08:20+0530"
}

Was this page helpful?