Invoice Object

Invoice

FieldTypeDescription
app_idstringThe unique identifier for the payment application.
payment_method_typestringThe method by which the payment will be made. Options include cryptocurrency, card, skrill, etc.
invoice_idstringThe unique identifier for the generated invoice from UniPayment.
order_idstringA unique identifier for the merchant's order. Using a unique order ID helps in matching it with the invoice ID.
price_amountfloatThe amount to be collected from the buyer, as specified in the request.
price_currencystringThe currency in which the invoice is priced, as specified in the request.
networkstringThe specified blockchain network through which the buyer will send the payment. (Applicable for cryptocurrency payments)
addressstringThe blockchain address to which the buyer will send the payment. (Applicable for cryptocurrency payments)
pay_amountfloatThe amount that the buyer will pay, specified in the pay currency.
pay_currencystringThe currency in which the buyer will make the payment. This can be either a cryptocurrency or a fiat currency.
exchange_ratefloatThe exchange rate between the price currency and the pay currency at the time of the invoice creation.
paid_amountfloatThe amount that has been paid by the buyer so far.
refunded_price_amountfloatThe amount that has been refunded to the buyer, if any.
create_timedatetimeThe timestamp when the invoice was created.
expiration_timedatetimeThe time window during which the invoice can be paid. After this time, the invoice status will change to expired.
confirm_speedstringThe speed at which blockchain confirmations are processed. (Applicable for cryptocurrency payments)
host_to_host_modebooleanIndicates if HostToHost mode is enabled. Returns true if enabled
host_to_host_dataobjectContains payment details when HostToHost mode is enabled. Structure varies by payment method. See Details.
statusstringThe current status of the invoice. See Invoice Status.
error_statusstringThe error status of the invoice, if any. This indicates any issues encountered during the invoice processing.
invoice_urlstringThe URL of the invoice, which can be used by the merchant for checkout or to prepare their own checkout page using the response data.

Invoice Detail

The Invoice Detail Object represents detailed information about a specific invoice in the system. It is returned by the GetInvoice API and includes additional fields such as Refunds and Transactions, offering a complete view of all activities related to the invoice.

For more information about the structure and fields of these objects, refer to their respective documentation sections:

InvoiceRefund Object: Describes the fields and status values associated with a refund, including refund amount, status, fee details, and more.
Transaction Object: Provides details about individual payment transactions, including transaction amount, currency, status, and timestamps.

CardTransaction

FieldTypeDescription
idstringThe unique identifier for the transaction.
asset_typestringThe currency used in the transaction (e.g., EUR, USD).
amountfloatThe transaction amount in the specified currency.
remote_transaction_idstringThe unique identifier for the transaction on the payment provider's side.
holder_namestringThe cardholder's name as it appears on the card.
card_typestringThe type of card used in the transaction (e.g., VI for Visa, MC for MasterCard).
card_binstringThe first six digits of the card number, identifying the issuing bank and card type.
last_digitsstringThe last four digits of the card used for the transaction.
card_categorystringThe category of the card (e.g., DEBIT, CREDIT, PREPAID).
issuing_bankstringThe name of the bank that issued the card. Can be null if the information is not available.
issuing_countrystringThe country where the card was issued, represented by the ISO 3166-1 alpha-2 country code (e.g., US).
customer_ipstringThe IP address of the customer who initiated the transaction.
create_timestringThe timestamp when the transaction was created, in ISO 8601 format.

CryptoTransaction

FieldTypeDescription
idstringThe unique identifier for the transaction.
asset_typestringThe type of cryptocurrency used in the transaction (e.g., BTC, ETH, UTT).
amountfloatThe amount of cryptocurrency transferred in the transaction.
networkstringThe blockchain network through which the transaction was processed (e.g., NETWORK_BSC, NETWORK_ETH).
fromstringThe sender's blockchain address.
tostringThe recipient's blockchain address.
hashstringThe unique hash of the blockchain transaction, used to track the transaction on the blockchain.
is_confirmedbooleanIndicates whether the transaction has been confirmed on the blockchain.
create_timestringThe timestamp when the transaction was created, in ISO 8601 format.

SkrillTransaction

FieldTypeDescription
idstringThe unique identifier for the APM transaction.
symbolstringThe currency symbol used in the transaction (e.g., EUR, USD).
amountfloatThe amount processed in the transaction.
remote_transaction_idstringThe unique identifier for the transaction on the payment provider's side.
create_timestringThe timestamp when the transaction was created, in ISO 8601 format.

.