Informasi pembayaran

Lihat status pembayaran Anda

GET

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

Format requestpathParam

invoice

required

uuid

ID invoice

Format responsdata object

id

uuid

ID invoice

info.currency

string | null

Kode mata uang fiat invoice

info.token

string | null

Token pembayaran

info.network

string | null

Jaringan pembayaran

info.address

string | null

Alamat dompet untuk pembayaran

amount.starting_price

number

Jumlah awal invoice dalam fiat

amount.discount_percent

number

Jumlah diskon dalam persentase

amount.merchant_fee_percent

number

Biaya merchant dalam persentase

amount.service_fee_percent

number | null

Biaya layanan platform dalam persentase

amount.total

number

Jumlah akhir setelah diskon dan biaya

url.webhook

url | null

URL Webhook merchant

url.success

url | null

URL redirect setelah pembayaran berhasil

url.error

url | null

URL redirect setelah pembayaran gagal

url.payment

url

Link halaman pembayaran

options.part_payment

boolean

Apakah pembayaran sebagian diizinkan

options.ignore_client_amount

boolean

Apakah jumlah tepat client diabaikan

options.payment_accuracy

number

Toleransi pembayaran yang diizinkan

additional.order_id

string | null

ID order eksternal

additional.info

string | null

Informasi tambahan order

status

string

Status invoice saat ini

expired_at

string (ISO 8601, UTC)

Tanggal kedaluwarsa invoice

created_at

string (ISO 8601, UTC)

Tanggal pembuatan invoice

payment.transactions

array

Daftar transaksi blockchain masuk

payment.transactions[].txid

string | null

Hash transaksi

payment.transactions[].from

string | null

Alamat pengirim

payment.transactions[].amount

string | null

Jumlah transaksi masuk dalam unit minimum token

payment.fiat_payment_amount

number

Jumlah fiat yang dibayar

payment.service_fee_amount

number

Biaya layanan yang terakumulasi dalam fiat

Contoh permintaan

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

Respons berhasil

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

Error

Daftar detail error otorisasi ada di Otorisasi - Error

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