अनुरोध प्रारूपapplication/json
tokenrequired string | टोकन कोड जिसके लिए स्थिर वॉलेट बनाया जाएगा |
networkrequired string | नेटवर्क कोड जहाँ स्थिर वॉलेट बनाया जाएगा |
order_idrequired string | आपके सिस्टम में ऑर्डर ID |
webhook_linkurl | URL जहाँ भुगतान स्थिति भेजी जाएगी डिफ़ॉल्ट: merchant settings |
प्रतिक्रिया प्रारूपdata object
iduuid | स्थिर वॉलेट ID |
order_idstring | आपके सिस्टम में ऑर्डर ID |
addressstring | भुगतान प्राप्त करने का अंतिम पता |
tokenstring | टोकन कोड |
networkstring | नेटवर्क कोड |
अनुरोध उदाहरण
curl --request POST 'https://api.fps.pro/invoices/wallet/' \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: YOUR_CLIENT_ID' \
--header 'X-Timestamp: 1720000000' \
--header 'X-Signature: YOUR_HMAC_SHA256_SIGNATURE' \
--data '{
"token": "tether",
"network": "tron",
"order_id": "ORD-1001",
"webhook_link": "https://merchant.example.com/webhooks/static-wallet"
}'सफल प्रतिक्रिया
{
"status": 200,
"message": "wallet created",
"data": {
"id": "95b97d47-4f0f-4822-8f26-4c3550fd1b7a",
"order_id": "order-1001",
"address": "TQ5x...abc",
"token": "tether",
"network": "tron"
}
}त्रुटियां
प्राधिकरण त्रुटियों की विस्तृत सूची यहां दी गई है: प्राधिकरण - त्रुटियाँ
{
"status": 422,
"message": "Validation Error",
"errors": [
{
"field": "token",
"message": "token is required"
}
]
}{
"status": 404,
"message": "No token/network pairing found"
}{
"status": 500,
"message": "Internal Server Error"
}