Detail Invoice
get detail of invoice
The Detail Invoice endpoint retrieves detailed information about a specific invoice. This includes the invoice's URL, amounts, fees, status, and associated shop and payment details. Use this endpoint to get a comprehensive view of an invoice's current state and its related financial information.
GET
https://api.payhubix.com/v1/payment/invoices/
INV-LUE9K66Q/
Note: you must insert your invoice link
Request Header:
X-Api-Key*
string
Your API key for authentication and authorization.
Response:
Name
Type
Description
invoice_url*
string
URL to view the invoice.
currency_amount*
float
The original amount for the invoice.
remaining_currency_amount*
float
The remaining unpaid amount.
currency_symbol*
string
The symbol of the currency used (USD, e.g.).
link*
string
Unique identifier for the invoice.
transfer_fee_by*
string
Specifies who covers the transfer fee. Either Customer
or Merchant
.
service_fee_by*
string
Specifies who covers the service fee. Either Customer
or Merchant
.
service_fee_percent*
float
The percentage of the service fee.
status*
string
The current status of the invoice (Created
, Pending
, Paid
,Canceled
,Partially
, PartiallyExpired
,Expired
).
customer_email
string
Customer's email address that provided by merchant.
manual_customer_email
string
Email address that provided manually by the customer.
created_at*
string
Timestamp of when the invoice was created.
expire_at*
string
Timestamp of when the invoice will expire.
pure_expire_time*
string
Time duration in HH:MM
before the invoice expires.
order_id
string
Unique identifier for the order (nullable).
order_description
string
Description of the order (nullable).
shop.name*
string
The name of the shop that issued the invoice.
shop.website
string
The website of the shop (nullable).
shop.shop_id*
string
Unique identifier for the shop.
shop.transfer_fee_by*
string
Who covers the transfer fee for the shop. Either Customer
or Merchant
.
shop.service_fee_by*
string
Who covers the service fee for the shop. Either Customer
or Merchant
.
shop.logo_url
string
URL to the logo of the shop (nullable).
currencies[].currency_id*
uint
Unique identifier for the currency.
currencies[].currency_name*
string
Name of the currency (e.g., Bitcoin, Ethereum).
currencies[].currency_status*
string
Status of the currency (Enable
or Disable
).
currencies[].currency_symbol*
string
The symbol of the currency (e.g., BTC, ETH).
currencies[].currency_type*
string
Type of currency (Fiat
or Crypto
).
currencies[].currency_icon_url*
string
URL to the currency's icon.
currencies[].network_id*
uint
Unique identifier for the currency network (e.g., Ethereum, Tron).
currencies[].network_symbol*
string
Symbol of the network.
currencies[].network_status*
string
Status of the network (Enable
or Disable
).
currencies[].network_name*
string
Name of the network (e.g., Ethereum, Tron).
currencies[].network_icon_url*
string
URL to the network's icon.
currencies[].fee_withdraw*
float
Fee for withdrawal in this currency.
currencies[].fee_payment*
float
Fee for payment in this currency.
currencies[].minimum_withdraw*
float
Minimum amount required to withdraw in this currency.
currencies[].precision*
int
Decimal precision for the currency.
currencies[].withdrawable*
bool
Indicates if the currency is withdrawable.
currencies[].paymentable*
bool
Indicates if the currency can be used for payments.
payments
array
Payment details, if available.
selected_payment
object
Details of the selected payment option.
callback_url
string
URL to which the payment result will be sent.
payments[].currency_amount*
float
The original currency amount for the payment.
payments[].remaining_currency_amount*
float
The remaining amount of the currency to be paid.
payments[].transfer_fee
float
Transfer fee, if applicable (nullable).
payments[].service_fee
float
Service fee, if applicable (nullable).
payments[].ratio
float
Exchange rate ratio, if applicable (nullable).
payments[].crypto_amount
float
Original amount of cryptocurrency to be paid.
payments[].final_crypto_amount
float
Final calculated amount of cryptocurrency required.
payments[].received_crypto_amount
float
Amount of cryptocurrency received.
payments[].remaining_crypto_amount
float
Remaining amount of cryptocurrency to be received.
payments[].memo
string
Memo or description for the payment (nullable).
payments[].address
string
Address to which the cryptocurrency should be sent (nullable).
payments[].status*
string
Current status of the payment (Created
, Pending
, etc.).
payments[].created_at*
string
Timestamp when the payment was created.
payments[].expire_time*
string
Expiration time for the payment.
payments[].pure_expire_time*
string
Expiration duration in HH:MM
.
payments[].selected_currency
object
Details of the selected currency.
payments[].transactions
array
List of related payment transactions.
payments[].transactions[].tx_hash*
string
Hash of the transaction on the blockchain.
payments[].transactions[].scaner_link*
string
URL to the transaction on the blockchain explorer (nullable).
An example of response:
Example codes:
Note: Please make sure to replace YOUR_API_KEY
in the code snippets with your actual merchant API key
Last updated