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

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

POST

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

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

token

required

string

टोकन कोड जिसके लिए स्थिर वॉलेट बनाया जाएगा

network

required

string

नेटवर्क कोड जहाँ स्थिर वॉलेट बनाया जाएगा

order_id

required

string

आपके सिस्टम में ऑर्डर ID

webhook_link

url

URL जहाँ भुगतान स्थिति भेजी जाएगी

डिफ़ॉल्ट: merchant settings

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

id

uuid

स्थिर वॉलेट ID

order_id

string

आपके सिस्टम में ऑर्डर ID

address

string

भुगतान प्राप्त करने का अंतिम पता

token

string

टोकन कोड

network

string

नेटवर्क कोड

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

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"
}