स्थिर वॉलेट के लिए QR बनाएं

आपके स्थिर वॉलेट के पते वाली base64 छवि बनाता है

POST

https://api.fps.pro/invoices/wallet/qr

अनुरोध प्रारूपapplication/json

wallet_id

required

uuid

स्थिर वॉलेट का ID जिसके लिए QR बनाना है

width

integer

छवि की चौड़ाई (न्यूनतम: 185, अधिकतम: 585)

डिफ़ॉल्ट: 185

प्रतिक्रिया प्रारूपdata object

image

string

डेटा URL प्रारूप में QR कोड (data:image/png;base64,...).

अनुरोध उदाहरण

curl --request POST 'https://api.fps.pro/invoices/wallet/qr' \
  --header 'Content-Type: application/json' \
  --header 'X-Client-Id: YOUR_CLIENT_ID' \
  --header 'X-Timestamp: 1720000000' \
  --header 'X-Signature: YOUR_HMAC_SHA256_SIGNATURE' \
  --data '{
  "wallet_id": "6fd3f87a-c090-4702-82f9-e70c1323ef92",
  "width": 250
}'

सफल प्रतिक्रिया

{
  "status": 200,
  "message": "qr created",
  "data": {
    "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
  }
}

त्रुटियां

प्राधिकरण त्रुटियों की विस्तृत सूची यहां दी गई है: प्राधिकरण - त्रुटियाँ

{
  "status": 422,
  "message": "Validation Error",
  "errors": [
    {
      "field": "wallet_id",
      "message": "wallet_id must be UUID"
    }
  ]
}
{
  "status": 404,
  "message": "Wallet not found"
}
{
  "status": 500,
  "message": "Internal Server Error"
}