GET
https://api.fps.pro/invoices/{invoice}
अनुरोध प्रारूपpathParam
invoicerequired uuid | इनवॉइस ID |
प्रतिक्रिया प्रारूपdata object
iduuid | इनवॉइस ID |
info.currencystring | null | इनवॉइस की फिएट मुद्रा का कोड |
info.tokenstring | null | भुगतान टोकन |
info.networkstring | null | भुगतान नेटवर्क |
info.addressstring | null | भुगतान के लिए वॉलेट पता |
amount.starting_pricenumber | फिएट में इनवॉइस की प्रारंभिक राशि |
amount.discount_percentnumber | छूट राशि प्रतिशत में |
amount.merchant_fee_percentnumber | मर्चेंट शुल्क प्रतिशत में |
amount.service_fee_percentnumber | null | प्लेटफ़ॉर्म सेवा शुल्क प्रतिशत में |
amount.totalnumber | छूट और शुल्क के बाद अंतिम राशि |
url.webhookurl | null | मर्चेंट वेबहुक URL |
url.successurl | null | सफल भुगतान के बाद रीडायरेक्ट URL |
url.errorurl | null | असफल भुगतान के बाद रीडायरेक्ट URL |
url.paymenturl | भुगतान पेज लिंक |
options.part_paymentboolean | आंशिक भुगतान की अनुमति है या नहीं |
options.ignore_client_amountboolean | ग्राहक की सटीक राशि को अनदेखा किया जाता है या नहीं |
options.payment_accuracynumber | अनुमत भुगतान सहनशीलता |
additional.order_idstring | null | बाहरी ऑर्डर ID |
additional.infostring | null | ऑर्डर की अतिरिक्त जानकारी |
statusstring | इनवॉइस की वर्तमान स्थिति |
expired_atstring (ISO 8601, UTC) | इनवॉइस समाप्ति तिथि |
created_atstring (ISO 8601, UTC) | इनवॉइस निर्माण तिथि |
payment.transactionsarray | आने वाली ब्लॉकचेन ट्रांज़ैक्शन की सूची |
payment.transactions[].txidstring | null | ट्रांज़ैक्शन हैश |
payment.transactions[].fromstring | null | भेजने वाले का पता |
payment.transactions[].amountstring | null | टोकन की न्यूनतम इकाइयों में आने वाली ट्रांज़ैक्शन राशि |
payment.fiat_payment_amountnumber | भुगतान की गई फिएट राशि |
payment.service_fee_amountnumber | फिएट में संचित सेवा शुल्क |
अनुरोध उदाहरण
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"
}