POST
https://api.fps.pro/invoices/wallet/qr
Format requestapplication/json
wallet_idrequired uuid | ID dompet statis yang perlu dibuat QR |
widthinteger | Lebar gambar (min: 185, max: 585) Default: 185 |
Format responsdata object
imagestring | QR code sebagai Data URL (data:image/png;base64,...). |
Contoh permintaan
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
}'Respons berhasil
{
"status": 200,
"message": "qr created",
"data": {
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
}
}Error
Daftar detail error otorisasi ada di Otorisasi - Error
{
"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"
}