भुगतान जानकारी

अपने भुगतान की स्थिति जांचें

GET

https://api.fps.pro/invoices/{invoice}

अनुरोध प्रारूपpathParam

invoice

required

uuid

इनवॉइस ID

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

id

uuid

इनवॉइस ID

info.currency

string | null

इनवॉइस की फिएट मुद्रा का कोड

info.token

string | null

भुगतान टोकन

info.network

string | null

भुगतान नेटवर्क

info.address

string | null

भुगतान के लिए वॉलेट पता

amount.starting_price

number

फिएट में इनवॉइस की प्रारंभिक राशि

amount.discount_percent

number

छूट राशि प्रतिशत में

amount.merchant_fee_percent

number

मर्चेंट शुल्क प्रतिशत में

amount.service_fee_percent

number | null

प्लेटफ़ॉर्म सेवा शुल्क प्रतिशत में

amount.total

number

छूट और शुल्क के बाद अंतिम राशि

url.webhook

url | null

मर्चेंट वेबहुक URL

url.success

url | null

सफल भुगतान के बाद रीडायरेक्ट URL

url.error

url | null

असफल भुगतान के बाद रीडायरेक्ट URL

url.payment

url

भुगतान पेज लिंक

options.part_payment

boolean

आंशिक भुगतान की अनुमति है या नहीं

options.ignore_client_amount

boolean

ग्राहक की सटीक राशि को अनदेखा किया जाता है या नहीं

options.payment_accuracy

number

अनुमत भुगतान सहनशीलता

additional.order_id

string | null

बाहरी ऑर्डर ID

additional.info

string | null

ऑर्डर की अतिरिक्त जानकारी

status

string

इनवॉइस की वर्तमान स्थिति

expired_at

string (ISO 8601, UTC)

इनवॉइस समाप्ति तिथि

created_at

string (ISO 8601, UTC)

इनवॉइस निर्माण तिथि

payment.transactions

array

आने वाली ब्लॉकचेन ट्रांज़ैक्शन की सूची

payment.transactions[].txid

string | null

ट्रांज़ैक्शन हैश

payment.transactions[].from

string | null

भेजने वाले का पता

payment.transactions[].amount

string | null

टोकन की न्यूनतम इकाइयों में आने वाली ट्रांज़ैक्शन राशि

payment.fiat_payment_amount

number

भुगतान की गई फिएट राशि

payment.service_fee_amount

number

फिएट में संचित सेवा शुल्क

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

curl --request GET 'https://api.fps.pro/invoices/0a718b02-131d-495a-9641-39ca52139c07' \

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

{
  "status": 200,
  "message": "success",
  "data": {
    "id": "0a718b02-138d-495a-9661-39ca52139c07",
    "info": {
      "currency": "USD",
      "token": "tether",
      "network": "tron",
      "address": "TQ5x...abc"
    },
    "amount": {
      "starting_price": 1000,
      "discount_percent": 0,
      "merchant_fee_percent": 10,
      "service_fee_percent": 1,
      "total": 1100
    },
    "url": {
      "webhook": "https://merchant.example/webhook",
      "success": "https://merchant.example/success",
      "error": "https://merchant.example/error",
      "payment": "https://frontend.example/0a718b02-138d-495a-9661-39ca52139c07"
    },
    "options": {
      "part_payment": true,
      "ignore_client_amount": false,
      "payment_accuracy": 0
    },
    "additional": {
      "order_id": "1",
      "info": "test order"
    },
    "status": "paid",
    "expired_at": "2026-01-05 14:30:43",
    "created_at": "2026-01-05T13:30:43.000Z",
    "payment": {
      "transactions": [
        {
          "txid": "f4d4f497e6b32b6a4b8e...",
          "from": "TFgN...sender",
          "amount": "1100000000"
        }
      ],
      "fiat_payment_amount": 1100,
      "service_fee_amount": 11
    }
  }
}

त्रुटियां

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

{
  "status": 422,
  "message": "Validation Error",
  "errors": [
    {
      "field": "invoice",
      "message": "The invoice must be UUID."
    }
  ]
}
{
  "status": 404,
  "message": "The invoice is not found"
}
{
  "status": 500,
  "message": "Internal Server Error"
}